Location: PHPKode > scripts > PHP Address book > php-address-book_v_1.00_eng/includes/header.inc.php
<?php
ob_start();
session_start();

$url = "http://demo.php-address-book.com/";
$root = $_SERVER['DOCUMENT_ROOT'] . "/";

include_once $root . 'classes/database.class.php';
include_once $root . 'classes/lang.class.php';

$database = new database();
$lang = new lang();

if(!isset($_SESSION['userid']) AND $doc != "login"){
    header("location: login.php");
}
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Addressbook</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <script type="text/javascript" src="<?php echo $url; ?>js/jquery-1.7.2.min.js"></script>
        <script type="text/javascript" src="<?php echo $url; ?>js/jquery-ui-1.8.21.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo $url; ?>js/bootstrap.js"></script>
        <script type="text/javascript" src="<?php echo $url; ?>js/scripts.js"></script>
        
        <link href="<?php echo $url; ?>css/bootstrap.css" rel="stylesheet" type="text/css">
        <link href="<?php echo $url; ?>css/ui-lightness/jquery-ui-1.8.21.custom.css" rel="stylesheet" type="text/css">
        <link href="<?php echo $url; ?>css/style.css" rel="stylesheet" type="text/css">
    </head>
    <body>
        <div class="container">
            <div class="navbar">
                <div class="navbar-inner">
                    <div class="container">
                        <ul class="nav">
                            <?php
                            if(isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>index.php">Home</a></li><?php
                            }
                            if(isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>add.php">Add</a></li><?php
                            }
                            if(isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>overzicht.php">Overview</a></li><?php
                            }
                            ?>
                        </ul>
                        <ul class="nav pull-right">
                            <?php
                            if(isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>settings.php">My settings</a></li><?php
                            }
                            if(isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>signoff.php">Sign out</a></li><?php
                            }
                            if(!isset($_SESSION['userid'])){
                                    ?><li><a href="<?php echo $url; ?>login.php">Sign in</a></li><?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
            </div>
Return current item: PHP Address book