Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(isset($_GET['control']))
- {
- $adminname = $_POST['adminname'];
- $password = $_POST['password'];
- if($adminname == "eivert" && $password == "qwerty")
- {
- $_SESSION['adminstatus'] = "loggedin";
- header('Location: index.php?admin');
- }
- if($adminname != "eivert" || $password != "qwerty")
- {
- echo"<b style='background-color:red'>Fel Användard-ID eller Lösenord</b>";
- }
- }
- if(isset($_SESSION['adminstatus']) == "loggedin")
- {
- include('control.php');
- }
Advertisement
Add Comment
Please, Sign In to add comment