cvs: pecl /apc apc.php

From: Date: Sun, 12 Sep 2004 07:11:23 +0000
Subject: cvs: pecl /apc apc.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1821@lists.php.net to get a copy of this message
rasmus Sun Sep 12 03:11:23 2004 EDT Modified files: /pecl/apc apc.php Log: A couple of minor fixes http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.1&r2=3.2&ty=u Index: pecl/apc/apc.php diff -u pecl/apc/apc.php:3.1 pecl/apc/apc.php:3.2 --- pecl/apc/apc.php:3.1 Sun Sep 12 02:12:17 2004 +++ pecl/apc/apc.php Sun Sep 12 03:11:22 2004 @@ -22,11 +22,29 @@ apc_clear_cache('user'); redir("action=Switch+to+User+Cache"); break; - case 'Show Top 25': $limit=25; break; - case 'Show Top 100': $limit=100; break; - case 'Show All Files': $limit=0; break; - case 'Switch to User Cache': $limit=0; $mode='user'; $field = 'info'; break; - case 'Switch to Opcode Cache': $limit=0; $mode='opcode'; $field = 'filename'; break; + case 'Show Top 25': + $limit=25; + if(isset($_GET['last_mode']) && $_GET['last_mode']=='user') { $mode='user'; $field = 'info'; } + else { $mode='opcode'; $field = 'filename'; } + break; + case 'Show Top 100': + $limit=100; + if(isset($_GET['last_mode']) && $_GET['last_mode']=='user') { $mode='user'; $field = 'info'; } + else { $mode='opcode'; $field = 'filename'; } + break; + case 'Show All': + $limit=0; + if(isset($_GET['last_mode']) && $_GET['last_mode']=='user') { $mode='user'; $field = 'info'; } + else { $mode='opcode'; $field = 'filename'; } + break; + case 'Switch to User Cache': + $limit=25; + $mode='user'; $field = 'info'; + break; + case 'Switch to Opcode Cache': + $limit=25; + $mode='opcode'; $field = 'filename'; + break; } } else { $limit = 25; @@ -54,14 +72,15 @@ <form action="<?php echo getenv('SCRIPT_NAME')?>" method="GET"> <input type="submit" name="action" value="Show Top 25" /> <input type="submit" name="action" value="Show Top 100" /> +<input type="submit" name="action" value="Show All" /> <?php if($mode=='user'):?> -<input type="submit" name="action" value="Show All User Entries" /> <input type="submit" name="action" value="Switch to Opcode Cache" /> <input type="submit" name="action" value="Clear User Cache" /> +<input type="hidden" name="last_mode" value="user" /> <?php else:?> -<input type="submit" name="action" value="Show All Files" /> <input type="submit" name="action" value="Switch to User Cache" /> <input type="submit" name="action" value="Clear Opcode Cache" /> +<input type="hidden" name="last_mode" value="opcode" /> <?php endif;?> <?php if(isset($_GET['sort'])) { ?> <input type="hidden" name="sort" value="<?php echo $_GET['sort']?>" />

« previous php.pecl.cvs (#1821) next »