View sourcecode

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

check_login.php

6 lines UTF-8 Unix (LF)
1
2
3
4
5
6
<?php 
session_start
();
if(!isset(
$_SESSION['username'])){
    
header('location: index.php?mess=Du är inte inloggad');
}
//Om username inte är samma som det korrekta username så skickas man till index.php med ett felmedelande