Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once "SecondBiteTeam.class.php";
- if (isset($_SESSION['super'][session_id()])){
- header('Location: admin.php');
- }else{
- if (isset($_POST['user']) && isset($_POST['password']) && ( preg_match("/^(A|U|a|u)\d{6,7}\w{1}$/" ,$_POST['user']) == 1 )){
- $user = $_POST['user'];
- $password = md5($_POST['password'].HASH_STR);
- if (SecondBiteTeam::adminLogin($user, $password)){
- $_SESSION['super'][session_id()] = $user;
- header('Location: admin.php');
- }else{
- header('Location: login.html#error');
- }
- }else{
- header('Location: login.html#error');
- }
- }
- ?>
- <ul id="nav">
- <li><a href="">Home</a></li>
- <li><a href="">Contact</a></li>
- <li><a href="">Star</a></li>
- </ul>
Add Comment
Please, Sign In to add comment