|
cvs: pecl /apc apc.php: msg#00253php.pecl.cvs
rasmus Fri Jul 29 11:07:25 2005 EDT Modified files: /pecl/apc apc.php Log: Missing apc.php changes http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.35&r2=3.36&ty=u Index: pecl/apc/apc.php diff -u pecl/apc/apc.php:3.35 pecl/apc/apc.php:3.36 --- pecl/apc/apc.php:3.35 Thu Jul 28 17:25:32 2005 +++ pecl/apc/apc.php Fri Jul 29 11:07:24 2005 @@ -22,13 +22,13 @@ */ -$VERSION='$Id: apc.php,v 3.35 2005/07/28 21:25:32 rasmus Exp $'; +$VERSION='$Id: apc.php,v 3.36 2005/07/29 15:07:24 rasmus Exp $'; ////////// BEGIN OF CONFIG AREA /////////////////////////////////////////////////////////// -define('USE_AUTHENTIFICATION',1); // Use (internal) authentification - best choice if +define('USE_AUTHENTIFICATION',0); // Use (internal) authentification - best choice if // no other authentification is available // If set to 0: // There will be no further authentification. You @@ -77,7 +77,7 @@ 'COUNT' => '/^\d+$/', // number of line displayed in list 'SCOPE' => '/^[AD]$/', // list view scope - 'SORT1' => '/^[AHSMCDT]$/', // first sort key + 'SORT1' => '/^[AHSMCDTZ]$/', // first sort key 'SORT2' => '/^[DA]$/', // second sort key ); @@ -119,7 +119,7 @@ if (empty($MYREQUEST['SORT1'])) $MYREQUEST['SORT1']="H"; if (empty($MYREQUEST['SORT2'])) $MYREQUEST['SORT2']="D"; if (empty($MYREQUEST['OB'])) $MYREQUEST['OB']=OB_HOST_STATS; -if (!isset($MYREQUEST['COUNT'])) $MYREQUEST['COUNT']=10; +if (!isset($MYREQUEST['COUNT'])) $MYREQUEST['COUNT']=20; if (!isset($scope_list[$MYREQUEST['SCOPE']])) $MYREQUEST['SCOPE']='A'; $MY_SELF= @@ -612,7 +612,8 @@ div.sorting { margin:1.5em 0em 1.5em 2em } .center { text-align:center } -.right { position:absolute;right:1em } +.aright { position:absolute;right:1em } +.right { text-align:right } .ok { color:rgb(0,200,0); font-weight:bold} .failed { color:rgb(200,0,0); font-weight:bold} @@ -674,7 +675,7 @@ if ($AUTHENTICATED) { echo <<<EOB - <li><a class="right" href="$MY_SELF&CC=1&OB={$MYREQUEST['OB']}" onClick="javascipt:return confirm('Are you sure?');">Clear Cache</a></li> + <li><a class="aright" href="$MY_SELF&CC=1&OB={$MYREQUEST['OB']}" onClick="javascipt:return confirm('Are you sure?');">Clear Cache</a></li> EOB; } echo <<<EOB @@ -906,6 +907,7 @@ "</select>", ", Sorting:<select name=SORT1>", "<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=M",$MYREQUEST['SORT1']=='M' ? " selected":"",">Last modified</option>", @@ -936,6 +938,7 @@ '<tr>', '<th>',sortheader('S',$fieldheading, "&OB=".$MYREQUEST['OB']),'</th>', '<th>',sortheader('H','Hits', "&OB=".$MYREQUEST['OB']),'</th>', + '<th>',sortheader('Z','Size', "&OB=".$MYREQUEST['OB']),'</th>', '<th>',sortheader('A','Last accessed',"&OB=".$MYREQUEST['OB']),'</th>', '<th>',sortheader('M','Last modified',"&OB=".$MYREQUEST['OB']),'</th>', '<th>',sortheader('C','Created at', "&OB=".$MYREQUEST['OB']),'</th>'; @@ -946,12 +949,13 @@ } echo '<th>',sortheader('D','Deleted at',"&OB=".$MYREQUEST['OB']),'</th></tr>'; - // buils list with alpha numeric sortable keys + // builds list with alpha numeric sortable keys // foreach($cache[$scope_list[$MYREQUEST['SCOPE']]] as $i => $entry) { switch($MYREQUEST['SORT1']) { case 'A': $k=sprintf('%015d-',$entry['access_time']); break; case 'H': $k=sprintf('%015d-',$entry['num_hits']); break; + case 'Z': $k=sprintf('%015d-',$entry['mem_size']); break; case 'M': $k=sprintf('%015d-',$entry['mtime']); break; case 'C': $k=sprintf('%015d-',$entry['creation_time']); break; case 'T': $k=sprintf('%015d-',$entry['ttl']); break; @@ -981,6 +985,7 @@ '<tr class=tr-',$i%2,'>', "<td class=td-0><a href=\"$MY_SELF&OB=",$MYREQUEST['OB'],"&SH=",md5($entry[$fieldkey]),"\">",$entry[$fieldname],'</a></td>', '<td class="td-n center">',$entry['num_hits'],'</td>', + '<td class="td-n right">',$entry['mem_size'],'</td>', '<td class="td-n center">',date(DATE_FORMAT,$entry['access_time']),'</td>', '<td class="td-n center">',date(DATE_FORMAT,$entry['mtime']),'</td>', '<td class="td-n center">',date(DATE_FORMAT,$entry['creation_time']),'</td>'; |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pecl /http KnownIssues.txt http.c http_api.c http_exception_object.c http_functions.c http_headers_api.c http_message_api.c http_message_object.c http_request_api.c http_request_object.c http_request_pool_api.c http_response_object.c http_send_api.c http_url_api.c php_http.h php_http_request_api.h php_http_request_pool_api.h php_http_std_defs.h /http/tests INI_001.phpt run-tests.diff: 00253, Michael Wallner |
|---|---|
| Next by Date: | cvs: pecl /apc apc.php: 00253, Rasmus Lerdorf |
| Previous by Thread: | cvs: pecl /apc apc.phpi: 00253, Rasmus Lerdorf |
| Next by Thread: | cvs: pecl /apc apc.php: 00253, Rasmus Lerdorf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |