View sourcecode

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

auth.php

10 lines ASCII Windows (CRLF)
1
2
3
4
5
6
7
8
9
10
<?php
session_start
();

function 
requireLogin() {
    if (!isset(
$_SESSION['player_id'])) {
        
header("Location: login.php");
        exit;
    }
}