View sourcecode

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

check_login.php

8 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
<?php 
session_start
();

if(!isset(
$_SESSION['username'])){
    
header('location: index.php?mess=Du är inte inloggad');
    exit();
} 
#Om username inte är det korrekta username så skickas man till index.php med ett felmedelande