blob: 8704737b81a5248ad7603f366bd91b62504f1094 (
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;
}
?>
|