diff options
Diffstat (limited to 'common/admin/inc')
-rw-r--r-- | common/admin/inc/auth.inc.php | 11 | ||||
-rw-r--r-- | common/admin/inc/pwd.inc.php | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/common/admin/inc/auth.inc.php b/common/admin/inc/auth.inc.php new file mode 100644 index 0000000..d21467b --- /dev/null +++ b/common/admin/inc/auth.inc.php @@ -0,0 +1,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; +} +?>
\ No newline at end of file diff --git a/common/admin/inc/pwd.inc.php b/common/admin/inc/pwd.inc.php new file mode 100644 index 0000000..10d9225 --- /dev/null +++ b/common/admin/inc/pwd.inc.php @@ -0,0 +1 @@ +<?php $login="admin"; $password=md5("admin"); ?>
\ No newline at end of file |