From 273109fbcfdbf5b9301c57b706108c7f00bcbb67 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Wed, 1 Nov 2000 12:51:51 +0000 Subject: just a little improvement... :) username: anything password: mOo! --- admin.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'admin.php') diff --git a/admin.php b/admin.php index 937d7db75..18c397471 100644 --- a/admin.php +++ b/admin.php @@ -1,7 +1,21 @@ userid != "Dries") exit(); +// if ($user->userid != "Dries") exit(); + if(!$PHP_AUTH_USER) { + Header("WWW-Authenticate: Basic realm=\"Admin Area\""); + Header("HTTP/1.0 401 Unauthorized"); + echo "The cow says: Moo! You can't come in!\n"; + exit; + } else { + if ($PHP_AUTH_PW != "mOo!") + { + Header("WWW-Authenticate: Basic realm=\"Admin Area\""); + Header("HTTP/1.0 401 Unauthorized"); + echo "The cow says: Moo! You can't come in!\n"; + exit; + } + } /* * Account administration: @@ -688,4 +702,4 @@ switch ($section) { admin_footer(); -?> \ No newline at end of file +?> -- cgit v1.2.3