From d582054c77b22daeb08d2bff17794b9a69a20dd4 Mon Sep 17 00:00:00 2001 From: mensonge Date: Wed, 12 Dec 2007 16:29:16 +0000 Subject: import of scuttle 0.7.2 git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@1 b3834d28-1941-0410-a4f8-b48e95affb8f --- api/httpauth.inc.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 api/httpauth.inc.php (limited to 'api/httpauth.inc.php') diff --git a/api/httpauth.inc.php b/api/httpauth.inc.php new file mode 100644 index 0000000..bc26582 --- /dev/null +++ b/api/httpauth.inc.php @@ -0,0 +1,22 @@ +login($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']); + if (!$login) { + authenticate(); + } +} +?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf