Changeset 60
- Timestamp:
- 06/03/2006 04:20:18 AM (3 years ago)
- Location:
- trunk/admin
- Files:
-
- 1 added
- 3 modified
-
help.php (added)
-
xcache.css (modified) (1 diff)
-
xcache.php (modified) (1 diff)
-
xcache.tpl.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/xcache.css
r48 r60 15 15 .switcher * { color: blue; } 16 16 .switcher a.active { font-weight: bold; font-size: 130%; color: black; } 17 #help { display: block; float: right; } -
trunk/admin/xcache.php
r34 r60 64 64 65 65 static $seconds = array(1, 60, 3600, 86400, 604800, 2678400, 31536000); 66 static $name = array('s ec', 'min', 'hr', 'day', 'week', 'month', 'year');66 static $name = array('s', 'm', 'h', 'd', 'w', 'M', 'Y'); 67 67 68 68 for ($i = 6; $i >= 0; $i --) { 69 69 if ($delta >= $seconds[$i]) { 70 70 $ret = (int) ($delta / $seconds[$i]); 71 return $ret . ' ' . $name[$i] . ($ret > 1 ? 's' : '');71 return $ret . ' ' . $name[$i]; 72 72 } 73 73 } -
trunk/admin/xcache.tpl.php
r47 r60 16 16 <body> 17 17 <h1>XCache Administration</h1> 18 <a href="help.php" target="_blank" id="help">Help »</a> 18 19 <span class="switcher"><?php echo switcher("type", $types); ?></span> 19 20 <?php … … 21 22 $b = new Cycle('class="col1"', 'class="col2"'); 22 23 ?> 24 Caches: 23 25 <table cellspacing="0" cellpadding="4" class="cycles"> 24 26 <col /> … … 47 49 <th>Hits</th> 48 50 <th>Misses</th> 49 <th>C Logs</th>51 <th>Clogs</th> 50 52 <th>OOMs</th> 51 53 <th>Protected</th> 52 54 <th>Cached</th> 53 55 <th>Deleted</th> 54 <th>Blocks</th>55 56 </tr> 56 57 <?php … … 87 88 <td>{$ci['cached']}</td> 88 89 <td>{$ci['deleted']}</td> 89 <td>90 90 EOS; 91 91 92 92 $b->reset(); 93 93 ?> 94 </td>95 94 </tr> 96 95 <?php } ?> 97 96 </table> 97 Free Blocks: 98 98 <?php 99 99 foreach ($cacheinfos as $i => $ci) {

