summaryrefslogtreecommitdiff
path: root/admin.php
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2000-11-01 12:51:51 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2000-11-01 12:51:51 +0000
commit273109fbcfdbf5b9301c57b706108c7f00bcbb67 (patch)
tree34c1052b157a013345e57cf70c62186a6928e0aa /admin.php
parent6c445ef88d5c5f7f2a9c465c0c3b96b65c0f2bed (diff)
downloadbrdo-273109fbcfdbf5b9301c57b706108c7f00bcbb67.tar.gz
brdo-273109fbcfdbf5b9301c57b706108c7f00bcbb67.tar.bz2
just a little improvement... :)
username: anything password: mOo!
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/admin.php b/admin.php
index 937d7db75..18c397471 100644
--- a/admin.php
+++ b/admin.php
@@ -1,7 +1,21 @@
<?
// TEMPORARY SECURITY PATCH:
-if ($user->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
+?>