View sourcecode

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

check_login.php

8 lines ASCII Unix (LF)
1
2
3
4
5
6
7
8
<?php
if (session_status() === PHP_SESSION_NONE) {
    
session_start();
}if(!isset(
$_SESSION['username'])){
  
header('location: index.php?mess=Inloggningen misslyckades');
  exit();
}
?>