Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <? session_start();
- $version = "Cruel Constrictor";
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>MassiveDeck: <? echo $version; ?></title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="">
- <meta name="author" content="">
- <link href="css/bootstrap.css" rel="stylesheet">
- <style type="text/css">
- body {
- padding-top: 60px;
- padding-bottom: 40px;
- }
- </style>
- <link href="css/bootstrap-responsive.css" rel="stylesheet">
- </head>
- <body>
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="brand" href="#"><? echo $version; ?></a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <li><a href="index.php">Home</a></li>
- <li><a href="index.php?page=cards">Cards</a></li>
- <li><a href="#contact">Contact</a></li>
- <?php
- if(isset($_SESSION['logged_in'])) {
- echo "<li><a href='index.php?page=profile'>Profile</a></li>";
- if($_SESSION["username"] == "admin") {
- echo '<li><a href="index.php?page=addcards">Add Cards</a></li>';
- }
- }
- ?>
- </ul>
- <?php if(isset($_SESSION['logged_in'])) {
- echo "<p class='navbar-text pull-right'>Logged in as <a href='#' class='navbar-link'>" . $_SESSION["username"] . " </a>[ <a href='logout.php'>logout</a> ]";
- }
- else {
- echo '<form class="navbar-form pull-right" name="formlog" method="post" action="auth.php">';
- echo '<input class="span2" type="text" name="username" placeholder="Username"> ';
- echo '<input class="span2" type="password" name="password" placeholder="Password"> ';
- echo '<input type="hidden" name="formlog" value="1">';
- echo '<button type="submit" class="btn">Sign in</button>';
- echo '</form>';
- }
- ?>
- </div>
- </div>
- </div>
- </div>
- <div class="container">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement