Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!--
- To change this template, choose Tools | Templates
- and open the template in the editor.
- -->
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title></title>
- <link rel="stylesheet" type="text/css" href="style.css">
- </head>
- <title>The Jet | D.C. Everest senior high school student newspaper</title>
- <body>
- <div id="header">
- <img src="images/Flag.png" width="1213" height="241" usemap="homemap">
- <map name="homemap">
- <area shape="rect" coords="105,40,510,200" alt="homepage" href="index.html">
- </map>
- <div class="tabs">
- <table width="300" id="navtabs">
- <tr>
- <td height="20" class="leftbuffer"> </td>
- <td> <a href="news/news.html"> News </a> </td>
- <td> <a href="feature/feature.html"> Feature </a> </td>
- <td> <a href="opinion/opinion.html"> Opinion </a> </td>
- <td> <a href="entertainment/entertainment.html"> Entertainment </a> </td>
- <td> <a href="sports/sports.html"> Sports </a> </td>
- <td class="rightbuffer"> </td>
- </tr>
- </table>
- </div>
- </div>
- <div id="shell">
- <div id ="adminpanel"
- <?php
- if (!(isset($_SESSION['admin']))) {
- header('location:index.php');
- }
- if ($_SESSION['admin'] == "true") {
- print('<form method="post" action="updatemain.php">
- Title: <input name="title" type="text" /></br>
- Text: <textarea name="text" rows="12" cols="40">Story HTML here...</textarea><br />
- <input type="submit" value="Submit" />
- </form>
- ');
- }
- ?>
- </div>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment