Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Admin Control Panel - SVM</title>
- <link type="text/css" rel="stylesheet" href="css/style.css" media="screen" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="keywords" content="" />
- <meta name="description" content="" />
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- </head>
- <body>
- <h1 class="title">Welcome at Admin Control Panel of SVM</h1>
- <?php
- if (!isset($_SESSION["username"]))
- {
- die("<form method=\"POST\" action=\"login.php\" style=\"min-width: 80%; text-align: center;\">
- <input name=\"adminUsername\" type=\"text\" placeholder=\"Enter your username\" /><br />
- <input name=\"adminPassword\" type=\"password\" placeholder=\"Enter your password\" /><br />
- <input name=\"do\" type=\"submit\" value=\"login\" />
- </form>");
- }
- else
- {
- if ($_SESSION["username"] == "")
- {
- echo("<h3 class=\"title\">Invalid login data</h3>
- <form method=\"POST\" action=\"login.php\" style=\"min-width: 80%; text-align: center;\">
- <input name=\"adminUsername\" type=\"text\" placeholder=\"Enter your username\" /><br />
- <input name=\"adminPassword\" type=\"password\" placeholder=\"Enter your password\" /><br />
- <input name=\"do\" type=\"submit\" value=\"login\" />
- </form>");
- session_unset();
- session_destroy();
- exit;
- }
- }
- ?>
- <div style="margin:0 0 10px 50px; padding: 5px 20px; display: inline-block; font-size: 1.33em; font-weight: bold; border: 3px solid #3751A6; color: #3751A6; background-color: #ADD8EC; border-radius: 10px; cursor: default; "><?php echo("Welcome $_SESSION[username].");?></div>
- <a href="logout.php"><div style="float: right; margin:0 50px 10px 0; padding: 5px 20px; display: inline-block; font-size: 1.33em; font-weight: bold; border: 3px solid #3751A6; color: #3751A6; background-color: #ADD8EC; border-radius: 10px; cursor: pointer; ">Logout</div></a>
- <ul>
- <li><a href="home">Home Page Management</a></li>
- <li><a href="#">Honor List Page Management</a></li>
- <li><a href="#">Exam Results Page Management</a></li>
- <li><a href="#">Contact Us Page Management</a></li>
- </ul>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement