View sourcecode

The following files exists in this folder. Click to view.

check_login.php

14 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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!');
}

?>