Advertisement
Guest User

index.php

a guest
Aug 29th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. <?php
  2. ob_start();
  3. session_start();
  4. require_once("config.php");
  5. require_once("functions.php");
  6.  
  7. $index = "0x125FF";
  8. ?>
  9. <!DOCTYPE html>
  10. <html lang="en">
  11. <head>
  12. <meta charset="utf-8">
  13. <link rel="shortcut icon" href="img/favicon.ico">
  14.  
  15. <title>Currency Exchange</title>
  16.  
  17. <!-- Bootstrap core CSS -->
  18. <link href="css/bootstrap.min.css" rel="stylesheet">
  19. <link href="css/bootstrap-reset.css" rel="stylesheet">
  20. <!--external css-->
  21.  
  22. <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  23.  
  24. <!-- Custom styles for this template -->
  25. <link href="css/style.css" rel="stylesheet">
  26. <link href="css/style-responsive.css" rel="stylesheet" />
  27.  
  28. <!-- HTML5 shim and Respond.js IE8 support of HTML5 tooltipss and media queries -->
  29. <!--[if lt IE 9]>
  30. <script src="js/html5shiv.js"></script>
  31. <script src="js/respond.min.js"></script>
  32. <![endif]-->
  33. </head>
  34.  
  35. <body>
  36.  
  37. <section id="container" class="">
  38. <!--header start-->
  39. <header class="header white-bg">
  40. <div class="sidebar-toggle-box">
  41. <div data-original-title="Toggle Navigation" data-placement="right" class="icon-reorder tooltips"></div>
  42. </div>
  43. <!--logo start-->
  44. <a href="index.php?site=home" class="logo" >Currency<span> Exchange</span></a>
  45. <!--logo end-->
  46. <div class="nav notify-row" id="top_menu">
  47. <!-- notification start -->
  48. <ul class="nav top-menu">
  49. <!-- settings start -->
  50.  
  51.  
  52. </ul>
  53. </div>
  54.  
  55. </header>
  56. <!--header end-->
  57. <!--sidebar start-->
  58. <aside>
  59. <div id="sidebar" class="nav-collapse ">
  60. <!-- sidebar menu start-->
  61. <ul class="sidebar-menu">
  62. <li>
  63. <a class="" href="index.php?site=home">
  64. <i class="icon-home"></i>
  65. <span>Home</span>
  66. </a>
  67. </li>
  68. <li>
  69. <a class="" href="index.php?site=orders">
  70. <i class="icon-shopping-cart"></i>
  71. <span>Orders</span>
  72. </a>
  73. </li>
  74. <li>
  75. <a class="" href="index.php?site=faq">
  76. <i class="icon-comment"></i>
  77. <span>FAQs</span>
  78. </a>
  79. </a>
  80. </li>
  81. <li>
  82. <?php if(!isset($_SESSION['email'])){ echo '<a class="" href="index.php?site=login">
  83. <i class="icon-key"></i>
  84. <span>Login</span>
  85. </a>';} ?>
  86.  
  87. </a>
  88. </li>
  89. <?php
  90. if(isset($_SESSION['admin']) AND $_SESSION['admin'] == 1){
  91. echo'
  92. <li>
  93. <a class="" href="admin">
  94. <i class="icon-dashboard"></i>
  95. <span>Admin Panel</span>
  96. </a>
  97. </li>';
  98. }
  99. if(isset($_SESSION['email'])){
  100. echo'
  101. <li>
  102. <a class="" href="logout.php">
  103. <i class="icon-cogs"></i>
  104. <span>Logout</span>
  105. </a>
  106. </li>';
  107. }
  108. ?>
  109. </ul>
  110. <!-- sidebar menu end-->
  111. </div>
  112. </aside>
  113. <!--sidebar end-->
  114. <!--main content start-->
  115. <section id="main-content">
  116. <section class=" wrapper">
  117. <div class="row">
  118. <div class="col-lg-12">
  119. <section class="panel">
  120. <div class="panel-body">
  121. <?php
  122. if(isset($_GET['site'])){
  123. $phpfile = $_GET['site'];
  124. $phpfile = htmlentities($phpfile);
  125. $phpfile = $phpfile.'.php';
  126. if(file_exists('pages/'.$phpfile) && in_array($phpfile,scandir('pages')) && is_file("pages/$phpfile")){
  127. include('pages/'.$phpfile);
  128. }else{
  129. include('pages/home.php');
  130. }
  131. }else{
  132. include('pages/home.php');
  133. }
  134. ?>
  135.  
  136. </div>
  137.  
  138. </section>
  139. </div>
  140. </div>
  141.  
  142. </section>
  143. </section>
  144. <!--main content end-->
  145. </section>
  146.  
  147. <!-- js placed at the end of the document so the pages load faster -->
  148. <script src="js/jquery.js"></script>
  149. <script src="js/bootstrap.min.js"></script>
  150. <script src="js/jquery.scrollTo.min.js"></script>
  151. <script src="js/jquery.nicescroll.js" type="text/javascript"></script>
  152.  
  153.  
  154. <!--common script for all pages-->
  155. <script src="js/common-scripts.js"></script>
  156.  
  157.  
  158. </body>
  159. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement