Guest User

Untitled

a guest
Jul 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <!--
  5. To change this template, choose Tools | Templates
  6. and open the template in the editor.
  7. -->
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  10.     <head>
  11.         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12.         <title></title>
  13. <link rel="stylesheet" type="text/css" href="style.css">
  14. </head>
  15. <title>The Jet | D.C. Everest senior high school student newspaper</title>
  16. <body>
  17. <div id="header">
  18.         <img src="images/Flag.png" width="1213" height="241" usemap="homemap">
  19.  
  20.         <map name="homemap">
  21.             <area shape="rect" coords="105,40,510,200" alt="homepage" href="index.html">
  22.  
  23.         </map>
  24.  
  25.         <div class="tabs">
  26.             <table width="300" id="navtabs">
  27.                 <tr>
  28.                     <td height="20" class="leftbuffer"> </td>
  29.                   <td> <a href="news/news.html"> News    </a> </td>
  30.                     <td> <a href="feature/feature.html"> Feature </a> </td>
  31.                     <td> <a href="opinion/opinion.html"> Opinion </a> </td>
  32.                     <td> <a href="entertainment/entertainment.html"> Entertainment </a> </td>
  33.                     <td> <a href="sports/sports.html"> Sports </a> </td>
  34.                     <td class="rightbuffer"> </td>
  35.                 </tr>
  36.             </table>
  37.         </div>
  38.  
  39. </div>
  40. <div id="shell">
  41.     <div id ="adminpanel"
  42.         <?php
  43.         if (!(isset($_SESSION['admin']))) {
  44.             header('location:index.php');
  45.         }
  46.         if ($_SESSION['admin'] == "true") {
  47.             print('<form method="post" action="updatemain.php">
  48.                        Title: <input name="title" type="text" /></br>
  49.                        Text: <textarea name="text" rows="12" cols="40">Story HTML here...</textarea><br />
  50.                        <input type="submit" value="Submit" />
  51.                   </form>
  52.            ');
  53.         }
  54.         ?>
  55.          
  56.     </div>
  57. </div>
  58.     </body>
  59. </html>
Add Comment
Please, Sign In to add comment