summaryrefslogtreecommitdiffstats
path: root/admin/inc/auth.inc.php
blob: 1640cb03f773d8b763123e6af521bd5b83e87b42 (plain)
1
2
3
4
5
6
7
8
9
<?php

include dirname(__FILE__).'/pwd.inc.php';

if (!isset($_COOKIE['auth']) || $_COOKIE['auth'] !== $password) {
    setcookie('auth', '', time() - 3600);
    header('Location: login.php');
    die();
}