Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. <?php
  2. session_start();
  3. $check = ($_SESSION['username']=="admin1" || $_SESSION['username']=="test" || $_SESSION['username']=="yy");
  4. if (!$check)
  5. {
  6. echo '<script type="text/javascript">';
  7. echo 'alert("Access Denied. Press OK to return to homepage");';
  8. echo 'window.location.href = "index.php";';
  9. echo '</script>';
  10. }
  11. ?>
  12.  
  13. <html>
  14. <head>
  15. <title>Capheus</title>
  16. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  17. <meta name="description" content="" />
  18. <meta name="keywords" content="" />
  19. <meta http-equiv="refresh" content="5" >
  20. <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
  21. <script src="js/jquery.min.js"></script>
  22. <script src="js/jquery.dropotron.min.js"></script>
  23. <script src="js/skel.min.js"></script>
  24. <script src="js/skel-layers.min.js"></script>
  25. <script src="js/init.js"></script>
  26. <noscript>
  27. <link rel="stylesheet" href="css/skel.css" />
  28. <link rel="stylesheet" href="css/style.css" />
  29. </noscript>
  30. <!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
  31. <!--[if lte IE 9]><link rel="stylesheet" href="css/ie/v9.css" /><![endif]-->
  32. </head>
  33. <body class="index loading">
  34.  
  35. <!-- Header -->
  36. <header id="header" class="alt">
  37. <h1 id="logo"><font size ="15"><a href="index.php">Capheus</a></font><h1>
  38. <nav id="nav">
  39. <ul>
  40. <?php if($check) { ?> <?php echo 'Welcome ' . $_SESSION ['username'];?>
  41. <?php } else { ?><li id="logo">Welcome Guest</li><?php } ?>
  42. <li class="submenu">
  43. <a href="">MENU</a>
  44. <ul>
  45. <li><a href="orders.php">Orders</a></li>
  46. <?php if(!$check) { ?><li><a href="login.php">Sign In / Register</a></li><?php } else { ?><li><a href="logout.php">Logout</a></li><?php } ?>
  47. <li><a href="monitor.php">Monitor</a></li>
  48. <li><a href="contact.php">Contact Us</a></li>
  49. <li><a href="credits.php">Credits</a></li>
  50.  
  51. <li class="submenu">
  52. </li>
  53. </ul>
  54. </li>
  55. <li><a href="cart.php"><img src="images/cart.png" style="width:25px;height:22px;">
  56. </a></li>
  57. <li><a href="store.php" class="button special">Store</a></li>
  58. </ul>
  59. </nav>
  60. </header>
  61.  
  62. <!-- Banner -->
  63. <section id="banner">
  64.  
  65. <!--
  66. ".inner" is set up as an inline-block so it automatically expands
  67. in both directions to fit whatever's inside it. This means it won't
  68. automatically wrap lines, so be sure to use line breaks where
  69. appropriate (<br />).
  70. -->
  71. <div class="inner">
  72.  
  73. <header>
  74. <h2>CAPHEUS</h2>
  75. </header>
  76. <p>Welcome to <strong>Capheus</strong>, feel free<br />
  77. to enjoy the warmth of our security.<br /></p>
  78. </div>
  79.  
  80. </section>
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87. <!-- One -->
  88. <article>
  89. <section class="wrapper style3 container special">
  90.  
  91. <header class="major">
  92. <h2><u><strong>Live Monitoring!</strong></u></h2>
  93. </header>
  94.  
  95.  
  96. <title>ChartJS - LineGraph</title>
  97. <style>
  98. .chart-container {
  99. width: 50%;
  100. height: 300px;
  101. margin: 0 auto;
  102.  
  103. }
  104. </style>
  105.  
  106.  
  107. <header class ="major">
  108. <canvas id="mycanvas"></canvas>
  109. </div>
  110.  
  111. <!-- javascript -->
  112.  
  113.  
  114. <script type="text/javascript" src="jquery.min.js"></script>
  115. <script type="text/javascript" src="Chart.min.js"></script>
  116. <script type="text/javascript" src="linegraph.js"></script>
  117.  
  118. <a href="http://127.0.0.1/bothdata.php?format=json" download>
  119. <button>Download Raw Json</button>
  120.  
  121.  
  122.  
  123. </script>
  124. </section>
  125.  
  126. </article>
  127.  
  128.  
  129. <!-- Footer -->
  130. <footer id="footer">
  131.  
  132. <ul class="icons">
  133. <li><a href="https://twitter.com/boiijek" class="icon circle fa-twitter"><span class="label">Twitter</span></a></li>
  134. <li><a href="#" class="icon circle fa-facebook"><span class="label">Facebook</span></a></li>
  135. <li><a href="#" class="icon circle fa-google-plus"><span class="label">Google+</span></a></li>
  136.  
  137. </ul>
  138.  
  139. <span class="copyright">&copy; Capheus. All rights reserved. Design: <a href="http://html5up.net">HTML5UP</a>.</span>
  140.  
  141. </footer>
  142.  
  143. </body>
  144. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement