File: WIAdmin/WICore/WITemp/header.php

Recommend this page to a friend!
  Classes of Jules Warner  >  WICMS  >  WIAdmin/WICore/WITemp/header.php  >  Download  
File: WIAdmin/WICore/WITemp/header.php
Role: Example script
Content type: text/plain
Description: Example script
Class: WICMS
Database driven content management system with PDO
Author: By
Last change:
Date: 3 years ago
Size: 5,060 bytes



Class file image Download
include dirname(__FILE__) . '/../WIClass/WI.php';

if( !
$login->isLoggedIn() )

$user = new WIUser(WISession::get("user_id"));
$userInfo = $user->getInfo();
<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8">
    <title><?php echo WILang::get('home'); ?> | Advanced Security</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Advanced Security - PHP MySQL Register/Login System">
    <meta name="author" content="Milos Stojanovic">
    <script type="text/javascript" src="WIInc/js/jquery.min.js"></script>
    <?php if(BOOTSTRAP_VERSION == 2): ?>
<link rel='stylesheet' href='WIInc/css/bootstrap.min2.css' type='text/css' media='all' />
        <script type="text/javascript" src="WIInc/js/bootstrap.min2.js"></script>
        <link rel='stylesheet' href='WIInc/css/style2.css' type='text/css' media='all' />
    <?php else: ?>
<link rel='stylesheet' href='WIInc/css/bootstrap.min3.css' type='text/css' media='all' />
        <script type="text/javascript" src="WIInc/js/bootstrap.min3.js"></script>
        <link rel='stylesheet' href='WIInc/css/style3.css' type='text/css' media='all' />
    <?php endif; ?>
<link href="WIInc/css/bootstrap-responsive.min.css" rel="stylesheet">
    <link href="WIInc/css/bootstrap3-glyphicons/bootstrap-glyphicons.css" rel="stylesheet">
    <script type="text/javascript" src="WIInc/js/respond.min.js"></script>
    <script type="text/javascript" charset="utf-8">
        var $_lang = <?php echo WILang::all(); ?>;

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="js/html5shiv.js"></script>


    <div id="wrap">
            <!-- Navbar
            ================================================== -->
            <div class="navbar navbar-fixed-top">
              <div class="navbar-inner">
                <div class="container">
                    <ul class="nav navbar-nav">
                        <a class="brand navbar-brand" href="./index.php"><?php echo WEBSITE_NAME; ?></a>
                    <div class="pull-right">
                        <div class="header-flags-wrapper">
                            <a href="?lang=en">
                                <img src="WIInc/img/lang/en.png" alt="English" title="English"
                                     class="<?php echo WILang::getLanguage() != 'en' ? 'fade' : ''; ?>" />
                            <a href="?lang=rs">
                                <img src="WIInc/img/lang/rs.png" alt="Serbian" title="Serbian (cyrillic)"
                                     class="<?php echo WILang::getLanguage() != 'rs' ? 'fade' : ''; ?>" />
                             <a href="?lang=ru">
                                <img src="WIInc/img/lang/ru.png" alt="Russian" title="Russian"
                                     class="<?php echo WILang::getLanguage() != 'ru' ? 'fade' : ''; ?>" />
                             <a href="?lang=es">
                                <img src="WIInc/img/lang/es.png" alt="Spanish" title="Spanish"
                                     class="<?php echo WILang::getLanguage() != 'es' ? 'fade' : ''; ?>" />
                        <ul class="nav pull-right">
                            <li class="dropdown">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                    <?php echo WILang::get('welcome'); ?>, <?php echo e($userInfo['username']); ?>
<b class="caret"></b>
                                <ul class="dropdown-menu">
                                        <a href="profile.php">
                                            <i class="icon-user glyphicon glyphicon-user"></i>
                                            <?php echo WILang::get('my_profile'); ?>
                                    <li class="divider"></li>
                                        <a href="logout.php" id="logout">
                                            <i class="icon-off glyphicon glyphicon-off"></i>
                                            <?php echo WILang::get('logout'); ?>
          <div class="container">

For more information send a message to info at phpclasses dot org.