Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $sitemap = "> <a href='./index.php'>Home</a>";
- $title = "E-Cig Primer - Home";
- include("./common/common.php"); //PDO, $_SESSION stuff
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title> <?php
- echo $title;?>
- </title>
- <meta charset="utf-8" />
- <link href="./common/ecigprimer.css" type="text/css" rel="stylesheet" />
- <link href="./images/tinyicon.png" type="image/png" rel="icon" />
- <script src="./common/javafuncts.js"></script>
- </head>
- <body>
- <div id="top">
- <div id="title">
- <a href="./index.php"><img src="./images/banner.png" alt="" /></a>
- </div>
- <div id="topnav">
- <div id="map"> <?php
- echo $sitemap; ?>
- </div>
- <div id="login"> <?php
- if (!isset($_SESSION["username"])) {
- echo "Welcome, Guest ";
- echo "["."<a href='./login.php' title='login'>"."L"."</a>"."] ";
- echo "["."<a href='./register.php' title='register'>"."R"."</a>"."]";
- } else {
- $adminch = $db->prepare("
- SELECT *
- FROM users
- WHERE username = :user
- AND admin = '1'
- ");
- if ($adminch->rowCount() == 1) {
- echo "Signed in as: ".$_SESSION["username"]." ";
- echo "["."<a href='./account.php' title='account'>"."C"."</a>"."] ";
- echo "["."<a href='./admin.php' title='admin'>"."A"."</a>"."] ";
- echo "["."<a href='./logout.php' title='logout'>"."O"."</a>"."]";
- } else {
- echo "Signed in as: ".$_SESSION["username"]." ";
- echo "["."<a href='./account.php' title='account' title='account'>"."C"."</a>"."] ";
- echo "["."<a href='./logout.php' title='logout'>"."O"."</a>"."]";
- }
- } ?>
- </div>
- </div>
- </div>
- <div id="nav">
- <a href="./introduction.php">Introduction</a><br/>
- <a href="./whatecig.php">What is an E-cig?</a><br/>
- <a href="./beginner.php">Beginner Topics</a><br/>
- <a href="./advanced.php">Advanced Topics</a><br/>
- <a href="./expert.php">Expert Topics</a><br/>
- <a href="./about.php">About the Author</a><br/>
- <a href="./helplinks.php">Helpful Links</a><br/>
- <a href="./vendors.php">Suggested Vendors</a><br/>
- <a href="./donate.php">Donate</a>
- </div>
- <div id="container">
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- container<br/>
- </div>
- <div id="bottom">
- Copyright © 2013 SZVapor. All Rights Reserved.<br/>
- Powered by SZT v0.2B
- </div>
- </body> <?php
- $db = null; ?>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement