cvs: pecl /apc apc.php
| From: | Rasmus Lerdorf | Date: | Wed, 15 Mar 2006 05:32:36 +0000 |
| Subject: | cvs: pecl /apc apc.php | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5475@lists.php.net to get a copy of this message | ||
rasmus Wed Mar 15 05:32:36 2006 UTC
Modified files:
/pecl/apc apc.php
Log:
Minor fixes (closes bug #7125)
http://cvs.php.net/viewcvs.cgi/pecl/apc/apc.php?r1=3.53&r2=3.54&diff_format=u
Index: pecl/apc/apc.php
diff -u pecl/apc/apc.php:3.53 pecl/apc/apc.php:3.54
--- pecl/apc/apc.php:3.53 Sun Mar 12 00:31:45 2006
+++ pecl/apc/apc.php Wed Mar 15 05:32:36 2006
@@ -22,7 +22,7 @@
*/
-$VERSION='$Id: apc.php,v 3.53 2006/03/12 00:31:45 rasmus Exp $';
+$VERSION='$Id: apc.php,v 3.54 2006/03/15 05:32:36 rasmus Exp $';
////////// READ OPTIONAL CONFIGURATION FILE ////////////
if (file_exists("apc.conf.php")) include("apc.conf.php");
@@ -30,10 +30,10 @@
////////// BEGIN OF DEFAULT CONFIG AREA ///////////////////////////////////////////////////////////
-defaults('USE_AUTHENTIFICATION',1); // Use (internal) authentification - best choice if
- // no other authentification is available
+defaults('USE_AUTHENTICATION',1); // Use (internal) authentication - best choice if
+ // no other authentication is available
// If set to 0:
- // There will be no further authentification. You
+ // There will be no further authentication. You
// will have to handle this by yourself!
// If set to 1:
// You need to change ADMIN_PASSWORD to make
@@ -139,7 +139,7 @@
// authentication needed?
//
-if (!USE_AUTHENTIFICATION) {
+if (!USE_AUTHENTICATION) {
$AUTHENTICATED=1;
} else {
$AUTHENTICATED=0;
@@ -460,10 +460,10 @@
function put_login_link($s="Login")
{
- global $MY_SELF,$MYREQUEST,$AUTHENTICATED,$PHP_AUTH_USER;
- // need's ADMIN_PASSWORD to be changed!
+ global $MY_SELF,$MYREQUEST,$AUTHENTICATED;
+ // needs ADMIN_PASSWORD to be changed!
//
- if (!USE_AUTHENTIFICATION) {
+ if (!USE_AUTHENTICATION) {
return;
} else if (ADMIN_PASSWORD=='password')
{
@@ -472,7 +472,7 @@
EOB;
} else if ($AUTHENTICATED) {
print <<<EOB
- '$PHP_AUTH_USER' logged in!
+ '{$_SERVER['PHP_AUTH_USER']}' logged in!
EOB;
} else{
print <<<EOB
@@ -963,7 +963,7 @@
"<option value=H",$MYREQUEST['SORT1']=='H' ? "
selected":"",">Hits</option>",
"<option value=Z",$MYREQUEST['SORT1']=='Z' ? "
selected":"",">Size</option>",
"<option value=S",$MYREQUEST['SORT1']=='S' ? "
selected":"",">$fieldheading</option>",
- "<option value=M",$MYREQUEST['SORT1']=='A' ? "
selected":"",">Last accessed</option>",
+ "<option value=A",$MYREQUEST['SORT1']=='A' ? "
selected":"",">Last accessed</option>",
"<option value=M",$MYREQUEST['SORT1']=='M' ? "
selected":"",">Last modified</option>",
"<option value=C",$MYREQUEST['SORT1']=='C' ? "
selected":"",">Created at</option>",
"<option value=D",$MYREQUEST['SORT1']=='D' ? "
selected":"",">Deleted at</option>";