OSDN Git Service

PKWK_READONLY prohibits basic_auth
authorhenoheno <henoheno>
Mon, 31 Jan 2005 14:32:38 +0000 (23:32 +0900)
committerhenoheno <henoheno>
Mon, 31 Jan 2005 14:32:38 +0000 (23:32 +0900)
lib/auth.php

index a0d3eed..6e791be 100644 (file)
@@ -1,6 +1,6 @@
 <?php
-// PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: auth.php,v 1.6 2004/12/31 10:51:47 henoheno Exp $
+// PukiWiki - Yet another WikiWikiWeb clone
+// $Id: auth.php,v 1.7 2005/01/31 14:32:38 henoheno Exp $
 //
 // Basic authentication related functions
 
@@ -87,7 +87,8 @@ function basic_auth($page, $auth_flag, $exit_flag, $auth_pages, $title_cannot)
        }
 
        // ¥æ¡¼¥¶¥ê¥¹¥È¤Ë´Þ¤Þ¤ì¤ë¤¤¤º¤ì¤«¤Î¥æ¡¼¥¶¤Èǧ¾Ú¤µ¤ì¤ì¤ÐOK
-       if (! isset($_SERVER['PHP_AUTH_USER'])
+       if (PKWK_READONLY
+               || ! isset($_SERVER['PHP_AUTH_USER'])
                || ! in_array($_SERVER['PHP_AUTH_USER'], $user_list)
                || ! isset($_SERVER['PHP_AUTH_USER'], $auth_users)
                || $auth_users[$_SERVER['PHP_AUTH_USER']] != $_SERVER['PHP_AUTH_PW'])