Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ob_start();
- session_start();
- require_once("config.php");
- require_once("functions.php");
- $index = "0x125FF";
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <link rel="shortcut icon" href="img/favicon.ico">
- <title>Currency Exchange</title>
- <!-- Bootstrap core CSS -->
- <link href="css/bootstrap.min.css" rel="stylesheet">
- <link href="css/bootstrap-reset.css" rel="stylesheet">
- <!--external css-->
- <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
- <!-- Custom styles for this template -->
- <link href="css/style.css" rel="stylesheet">
- <link href="css/style-responsive.css" rel="stylesheet" />
- <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
- <!--[if lt IE 9]>
- <script src="js/html5shiv.js"></script>
- <script src="js/respond.min.js"></script>
- <![endif]-->
- </head>
- <body>
- <section id="container" class="">
- <!--header start-->
- <header class="header white-bg">
- <div class="sidebar-toggle-box">
- <div data-original-title="Toggle Navigation" data-placement="right" class="icon-reorder tooltips"></div>
- </div>
- <!--logo start-->
- <a href="index.php?site=home" class="logo" >Currency<span> Exchange</span></a>
- <!--logo end-->
- <div class="nav notify-row" id="top_menu">
- <!-- notification start -->
- <ul class="nav top-menu">
- <!-- settings start -->
- </ul>
- </div>
- </header>
- <!--header end-->
- <!--sidebar start-->
- <aside>
- <div id="sidebar" class="nav-collapse ">
- <!-- sidebar menu start-->
- <ul class="sidebar-menu">
- <li>
- <a class="" href="index.php?site=home">
- <i class="icon-home"></i>
- <span>Home</span>
- </a>
- </li>
- <li>
- <a class="" href="index.php?site=orders">
- <i class="icon-shopping-cart"></i>
- <span>Orders</span>
- </a>
- </li>
- <li>
- <a class="" href="index.php?site=faq">
- <i class="icon-comment"></i>
- <span>FAQs</span>
- </a>
- </a>
- </li>
- <li>
- <?php if(!isset($_SESSION['email'])){ echo '<a class="" href="index.php?site=login">
- <i class="icon-key"></i>
- <span>Login</span>
- </a>';} ?>
- </a>
- </li>
- <?php
- if(isset($_SESSION['admin']) AND $_SESSION['admin'] == 1){
- echo'
- <li>
- <a class="" href="admin">
- <i class="icon-dashboard"></i>
- <span>Admin Panel</span>
- </a>
- </li>';
- }
- if(isset($_SESSION['email'])){
- echo'
- <li>
- <a class="" href="logout.php">
- <i class="icon-cogs"></i>
- <span>Logout</span>
- </a>
- </li>';
- }
- ?>
- </ul>
- <!-- sidebar menu end-->
- </div>
- </aside>
- <!--sidebar end-->
- <!--main content start-->
- <section id="main-content">
- <section class=" wrapper">
- <div class="row">
- <div class="col-lg-12">
- <section class="panel">
- <div class="panel-body">
- <?php
- if(isset($_GET['site'])){
- $phpfile = $_GET['site'];
- $phpfile = htmlentities($phpfile);
- $phpfile = $phpfile.'.php';
- if(file_exists('pages/'.$phpfile) && in_array($phpfile,scandir('pages')) && is_file("pages/$phpfile")){
- include('pages/'.$phpfile);
- }else{
- include('pages/home.php');
- }
- }else{
- include('pages/home.php');
- }
- ?>
- </div>
- </section>
- </div>
- </div>
- </section>
- </section>
- <!--main content end-->
- </section>
- <!-- js placed at the end of the document so the pages load faster -->
- <script src="js/jquery.js"></script>
- <script src="js/bootstrap.min.js"></script>
- <script src="js/jquery.scrollTo.min.js"></script>
- <script src="js/jquery.nicescroll.js" type="text/javascript"></script>
- <!--common script for all pages-->
- <script src="js/common-scripts.js"></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement