Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- $check = ($_SESSION['username']=="admin1" || $_SESSION['username']=="test" || $_SESSION['username']=="yy");
- if (!$check)
- {
- echo '<script type="text/javascript">';
- echo 'alert("Access Denied. Press OK to return to homepage");';
- echo 'window.location.href = "index.php";';
- echo '</script>';
- }
- ?>
- <html>
- <head>
- <title>Capheus</title>
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
- <meta name="description" content="" />
- <meta name="keywords" content="" />
- <meta http-equiv="refresh" content="5" >
- <!--[if lte IE 8]><script src="css/ie/html5shiv.js"></script><![endif]-->
- <script src="js/jquery.min.js"></script>
- <script src="js/jquery.dropotron.min.js"></script>
- <script src="js/skel.min.js"></script>
- <script src="js/skel-layers.min.js"></script>
- <script src="js/init.js"></script>
- <noscript>
- <link rel="stylesheet" href="css/skel.css" />
- <link rel="stylesheet" href="css/style.css" />
- </noscript>
- <!--[if lte IE 8]><link rel="stylesheet" href="css/ie/v8.css" /><![endif]-->
- <!--[if lte IE 9]><link rel="stylesheet" href="css/ie/v9.css" /><![endif]-->
- </head>
- <body class="index loading">
- <!-- Header -->
- <header id="header" class="alt">
- <h1 id="logo"><font size ="15"><a href="index.php">Capheus</a></font><h1>
- <nav id="nav">
- <ul>
- <?php if($check) { ?> <?php echo 'Welcome ' . $_SESSION ['username'];?>
- <?php } else { ?><li id="logo">Welcome Guest</li><?php } ?>
- <li class="submenu">
- <a href="">MENU</a>
- <ul>
- <li><a href="orders.php">Orders</a></li>
- <?php if(!$check) { ?><li><a href="login.php">Sign In / Register</a></li><?php } else { ?><li><a href="logout.php">Logout</a></li><?php } ?>
- <li><a href="monitor.php">Monitor</a></li>
- <li><a href="contact.php">Contact Us</a></li>
- <li><a href="credits.php">Credits</a></li>
- <li class="submenu">
- </li>
- </ul>
- </li>
- <li><a href="cart.php"><img src="images/cart.png" style="width:25px;height:22px;">
- </a></li>
- <li><a href="store.php" class="button special">Store</a></li>
- </ul>
- </nav>
- </header>
- <!-- Banner -->
- <section id="banner">
- <!--
- ".inner" is set up as an inline-block so it automatically expands
- in both directions to fit whatever's inside it. This means it won't
- automatically wrap lines, so be sure to use line breaks where
- appropriate (<br />).
- -->
- <div class="inner">
- <header>
- <h2>CAPHEUS</h2>
- </header>
- <p>Welcome to <strong>Capheus</strong>, feel free<br />
- to enjoy the warmth of our security.<br /></p>
- </div>
- </section>
- <!-- One -->
- <article>
- <section class="wrapper style3 container special">
- <header class="major">
- <h2><u><strong>Live Monitoring!</strong></u></h2>
- </header>
- <title>ChartJS - LineGraph</title>
- <style>
- .chart-container {
- width: 50%;
- height: 300px;
- margin: 0 auto;
- }
- </style>
- <header class ="major">
- <canvas id="mycanvas"></canvas>
- </div>
- <!-- javascript -->
- <script type="text/javascript" src="jquery.min.js"></script>
- <script type="text/javascript" src="Chart.min.js"></script>
- <script type="text/javascript" src="linegraph.js"></script>
- <a href="http://127.0.0.1/bothdata.php?format=json" download>
- <button>Download Raw Json</button>
- </script>
- </section>
- </article>
- <!-- Footer -->
- <footer id="footer">
- <ul class="icons">
- <li><a href="https://twitter.com/boiijek" class="icon circle fa-twitter"><span class="label">Twitter</span></a></li>
- <li><a href="#" class="icon circle fa-facebook"><span class="label">Facebook</span></a></li>
- <li><a href="#" class="icon circle fa-google-plus"><span class="label">Google+</span></a></li>
- </ul>
- <span class="copyright">© Capheus. All rights reserved. Design: <a href="http://html5up.net">HTML5UP</a>.</span>
- </footer>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement