logo       

cvs: pecl /apc apc.php: msg#00275

php.pecl.cvs

Subject: cvs: pecl /apc apc.php

iliaa Sun Jul 31 13:16:34 2005 EDT

Modified files:
/pecl/apc apc.php
Log:
Only show per-directory stats to authenticated users.


http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.40&r2=3.41&ty=u
Index: pecl/apc/apc.php
diff -u pecl/apc/apc.php:3.40 pecl/apc/apc.php:3.41
--- pecl/apc/apc.php:3.40 Sun Jul 31 13:10:11 2005
+++ pecl/apc/apc.php Sun Jul 31 13:16:33 2005
@@ -22,7 +22,7 @@

*/

-$VERSION='$Id: apc.php,v 3.40 2005/07/31 17:10:11 iliaa Exp $';
+$VERSION='$Id: apc.php,v 3.41 2005/07/31 17:16:33 iliaa Exp $';



@@ -676,8 +676,11 @@
EOB;
echo
menu_entry(1,'View Host Stats'),
- menu_entry(2,'System Cache Entries'),
- menu_entry(4,'Per-Directory System Cache Entries'),
+ menu_entry(2,'System Cache Entries');
+if ($AUTHENTICATED) {
+ echo menu_entry(4,'Per-Directory System Cache Entries');
+}
+echo
menu_entry(3,'User Cache Entries'),
menu_entry(9,'Version Check');

@@ -1035,6 +1038,10 @@
// System Cache Entries
// -----------------------------------------------
case OB_SYS_CACHE_DIR:
+ if (!$AUTHENTICATED) {
+ break;
+ }
+
echo <<<EOB
<div class=sorting><form>Scope:
<input type=hidden name=OB value={$MYREQUEST['OB']}>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise