Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <?php if(isset($_GET['op'])){ require_once("login.php"); }
- ?>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>FileStore - Home</title>
- <link rel="stylesheet" href="./CSS/style.css" type="text/css" media="screen, projection" />
- </head>
- <body>
- <div id="wrapper">
- <header id="header">
- <div id="header-content">
- <strong><h1>FileStore</h1></strong> Upload multiple files at once!
- </div>
- <div class="login-info" align="right">
- <?php
- require_once("logincheck.php");
- if (!isset($_SESSION['username'])) {
- echo ' <form action="?op" method="POST">
- Username: <input name="username" >
- Password: <input type="password" name="password" size="8">
- <input type="submit" name="submit" value="Login">
- </form>';
- } else
- echo $welcomeMsg;
- ?>
- </div>
- <?php
- if(isset($_SESSION['username'])){
- echo "<p align='right'>Welcome, </p>" . $_SESSION['username'];
- //redirect("../TASK2PHP/upload.php");
- } else {
- echo "<p align='right'>You are not logged in.</p>";
- echo "<b><a href='../registration.php'>Register</a></b>";
- }
- ?>
- </header><!-- #header-->
- <section id="middle" align="center">
- <div id="container">
- <br><br>
- <div id="content">
- <strong><h1>Welcome to FileStore!</h1></strong><br><br>
- <h3> Please Login on your top right.</h3>
- </div><!-- #content-->
- </div><!-- #container-->
- <aside id="sideLeft">
- <div id="menu-x" align="center"><br>
- <strong>Menu</strong><br><br>
- <div class="menu">
- <ul>
- <li><a href="index.php">Home</a></li>
- <li><a href="upload.php">Upload</a></li>
- <li><a href="files.php">Files</a></li>
- <li><a href="about.php">About</a></li>
- <li><a href="help.php">Help</a></li>
- <li><a href="logout.php">Logout</a></li>
- </ul>
- <br style="clear:left"/>
- </div>
- </div>
- </aside><!-- #sideLeft -->
- </section><!-- #middle-->
- <footer id="footer">
- <strong>FileStore:</strong> A CMT 3315 Project by Brian Livori
- </footer><!-- #footer -->
- </div><!-- #wrapper -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement