diff options
-rw-r--r-- | admin/inc/auth.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/inc/auth.inc.php b/admin/inc/auth.inc.php index d21467b..8704737 100644 --- a/admin/inc/auth.inc.php +++ b/admin/inc/auth.inc.php @@ -1,11 +1,11 @@ <?php include (dirname(__FILE__).'/pwd.inc.php'); -if ( isset($_COOKIE['auth']) && $_COOKIE['auth'] == $password ) { +if ( isset($_COOKIE['auth']) && $_COOKIE['auth'] === $password ) { //ok, cool } else { setcookie('auth','', time()-3600); header('Location: login.php'); die; } -?>
\ No newline at end of file +?> |