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

include_once 'includes/config.php';

$mysqli = new mysqli($location, $username, $password, $database);
include_once $root . 'classes/session.class.php';

$session = new session($mysqli);

?>
<!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($session->getRole() == 1 or $session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>index.php">Home</a></li><?php
                            }
                            if($session->getRole() == 1 or $session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>add.php">Add</a></li><?php
                            }
                            if($session->getRole() == 1 or $session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>overview.php">Overview</a></li><?php
                            }
                            ?>
                        </ul>
                        <ul class="nav pull-right">
                            <?php
                            if($session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>user_management.php">User management</a></li><?php
                            }
                            if($session->getRole() == 1 or $session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>settings.php">My settings</a></li><?php
                            }
                            if($session->getRole() == 1 or $session->getRole() == 2){
                                    ?><li><a href="<?php echo $url; ?>signoff.php">Sign out</a></li><?php
                            }
                            if($session->getRole() != 1 AND $session->getRole() != 2){
                                    ?><li><a href="<?php echo $url; ?>login.php">Sign in</a></li><?php
                            }
                            ?>
                        </ul>
                    </div>
                </div>
            </div>
Return current item: PHP Address book