The following files exists in this folder. Click to view.
check_login.php14 lines UTF-8 Unix (LF)
<?php
session_start();
if($_SESSION['Användarnamn'] == 'isak' and $_SESSION['Lösenord'] == '123'){
$_SESSION['admin'] = TRUE;
}
if($_SESSION['admin']){
header('location: admin.php?mess=Välkommen admin!');
} else{
header('location: hemsida.php?mess=Välkommen!');
}
?>