|
From: Jim Hu <ji...@ta...> - 2007-05-23 00:51:09
|
Doh! I forgot to add this patch to the distribution. Can you go
ahead and put it in cvs? Thanks.
JH
On May 22, 2007, at 4:59 AM, Jo Rhett wrote:
> 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
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Phpicalendar-devel mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpicalendar-devel
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
|