示例#1
0
<?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
0
<?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 = "*****@*****.**";
$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">