From: Jo R. <jr...@ne...> - 2007-05-22 08:59:03
|
How about we change auth_method to reflect "server" instead of none? Why? Because none really means that its up to server-based auth, and it seems to confuse people. Here's a patch which works... --- config.inc.php_orig Tue May 22 01:53:18 2007 +++ config.inc.php Tue May 22 01:53:48 2007 @@ -53,7 +53,7 @@ // Administration settings (/admin/) $allow_admin = 'yes'; // Set to yes to allow the admin page - remember to change the default password if using 'internal' as the $auth_method -$auth_method = 'internal'; // Valid values are: 'ftp', 'internal', or 'none'. 'ftp' uses the ftp server's username and password as well as ftp commands to delete and copy files. 'internal' uses $auth_internal_username and $auth_internal_password defined below - CHANGE the password. 'none' uses NO authentication - meant to be used with another form of authentication such as http basic. +$auth_method = 'internal'; // Valid values are: 'ftp', 'internal', or 'server'. 'ftp' uses the ftp server's username and password as well as ftp commands to delete and copy files. 'internal' uses $auth_internal_username and $auth_internal_password defined below - CHANGE the password. 'server' requires HTTP authentication $auth_internal_username = 'admin'; // Only used if $auth_method='internal'. The username for the administrator. $auth_internal_password = 'admin'; // Only used if $auth_method='internal'. The password for the administrator. $ftp_server = 'localhost'; // Only used if $auth_method='ftp'. The ftp server name. 'localhost' will work for most servers. --- admin/index.php_orig Tue May 22 01:55:22 2007 +++ admin/index.php Tue May 22 01:55:39 2007 @@ -28,11 +28,11 @@ } -// if $auth_method == 'none', don't do any authentication +// if $auth_method == 'server', don't do any authentication $username = $_POST['username']; $password = $_POST['password']; -if ($auth_method == 'none') { +if ($auth_method == 'server') { $is_loged_in = TRUE; } else { $is_loged_in = FALSE; -- Jo Rhett Network/Software Engineer Net Consonance |