本文整理汇总了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">