summaryrefslogtreecommitdiffstats
path: root/common/admin/inc/auth.inc.php
blob: d21467bdd04dd219b1143bc7cb2704d2d987f70f (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php
include (dirname(__FILE__).'/pwd.inc.php');

if ( isset($_COOKIE['auth']) && $_COOKIE['auth'] == $password ) {
    //ok, cool
} else {
    setcookie('auth','', time()-3600);
    header('Location: login.php');
    die;
}
?>