Advertisement
blivori

index.php

Dec 16th, 2012
553
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.10 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.    
  5.     <title>FileStore - Home</title>
  6.     <link rel="stylesheet" href="./CSS/style.css" type="text/css" media="screen, projection" />
  7. </head>
  8.  
  9. <body>
  10.  
  11. <div id="wrapper">
  12.  
  13.     <header id="header">
  14.    
  15.    
  16.     <div id="header-content">
  17.         <strong><h1>FileStore</h1></strong> Upload multiple files at once!
  18.     </div>
  19.    
  20.  
  21.                     <div class="login-info" align="right">
  22.                    
  23.                     <form action="?op=login" method="POST" action="login.php" >
  24.                             Username: <input name="username" size="15">
  25.                             Password: <input type="password" name="password" size="8">
  26.                                       <input type="submit" value="Login">
  27.                                      
  28.  
  29.                     </form>
  30.                    
  31.                     </div>
  32.                    
  33.                     <?php
  34.  
  35.                             session_start();
  36.  
  37.                             require_once("../TASK2PHP/functions.php");
  38.  
  39.                             if (check_login_status() == false) {
  40.  
  41.                                     echo "<p align='right'>You are not logged in.</p>";
  42.  
  43.  
  44.                             } else {
  45.                            
  46.                            
  47.                                     echo "<p align='right'>Welcome, </p>", $username;
  48.                                     redirect("../TASK2PHP/upload.php");
  49.                             }
  50.  
  51.                     ?>
  52.  
  53.  
  54.     </header><!-- #header-->
  55.  
  56.     <section id="middle" align="center">
  57.  
  58.         <div id="container">
  59.        
  60.         <br><br>
  61.             <div id="content">
  62.                 <strong><h1>Welcome to FileStore!</h1></strong><br><br>
  63.                
  64.                 <h3> Please Login on your top right.</h3>
  65.                                            
  66.             </div><!-- #content-->
  67.         </div><!-- #container-->
  68.  
  69.         <aside id="sideLeft">
  70.            
  71.             <div id="menu-x" align="center"><br>
  72.             <strong>Menu</strong><br><br>
  73.            
  74.                     <div class="menu">
  75.                         <ul>
  76.                         <li><a href="index.php">Home</a></li>
  77.                         <li><a href="upload.php">Upload</a></li>
  78.                         <li><a href="files.php">Files</a></li>
  79.                         <li><a href="about.php">About</a></li>
  80.                         <li><a href="help.php">Help</a></li>
  81.                         <li><a href="#">Logout</a></li>
  82.                         </ul>
  83.                         <br style="clear:left"/>
  84.                     </div>
  85.                    
  86.             </div>
  87.  
  88.            
  89.         </aside><!-- #sideLeft -->
  90.  
  91.     </section><!-- #middle-->
  92.  
  93.     <footer id="footer">
  94.         <strong>FileStore:</strong> A CMT 3315 Project by Brian Livori
  95.     </footer><!-- #footer -->
  96.  
  97. </div><!-- #wrapper -->
  98.  
  99. </body>
  100. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement