本文整理匯總了PHP中input::getSession方法的典型用法代碼示例。如果您正苦於以下問題:PHP input::getSession方法的具體用法?PHP input::getSession怎麽用?PHP input::getSession使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類input
的用法示例。
在下文中一共展示了input::getSession方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: input
<?php
session_start();
require_once 'function.php';
/*require_once 'Model/input.php';*/
spl_autoload_register(function ($class) {
include "Model/" . $class . ".php";
});
$user = new input();
if (!$user->getSession() && !$user->getID()) {
header("Location:Log_in.php");
exit;
}
$id = $user->getID();
require 'header/profile_header.html';
?>
<a class = "navbar-brand" href = "#"> Profile </a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="log-form"><a href="log_out.php" ><span class="glyphicon glyphicon-log-out licon"></span>Log Out</a></li>
</ul>
</div>
</div>
</nav>
</section>
示例2: input
<?php
/*require_once "Model/input.php";*/
spl_autoload_register(function ($class) {
include "Model/" . $class . ".php";
});
$user = new input();
if ($user->getSession()) {
header('location:profile_page.php');
exit;
}
$message = "";
$fname = "";
$lname = "";
$session = "";
$roll = "";
$error_email = "";
$pwd = "";
//cse11Batch
$users = "user";
$admin = "admin";
$admin_mail = "cseku.palash2011@gmail.com";
$message = '';
require 'header/header.html';
?>
<!--Navbar -->
<section>
<nav class="navbar navbar-style navbar-fixed-top">
<div class="container">
<div class="navbar-header ">
<button type = "button" class = "navbar-toggle navbar-btn-style" data-toggle = "collapse" data-target = "#navbar-collapse">