Changeset 60 for trunk


Ignore:
Timestamp:
2006-06-03T06:20:18+02:00 (8 years ago)
Author:
moo
Message:

closes #8, simple docs for admin pages

Location:
trunk/admin
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/xcache.css

    r48 r60  
    1515.switcher * { color: blue; } 
    1616.switcher a.active { font-weight: bold; font-size: 130%; color: black; } 
     17#help { display: block; float: right; } 
  • trunk/admin/xcache.php

    r34 r60  
    6464     
    6565    static $seconds = array(1, 60, 3600, 86400, 604800, 2678400, 31536000); 
    66     static $name = array('sec', 'min', 'hr', 'day', 'week', 'month', 'year'); 
     66    static $name = array('s', 'm', 'h', 'd', 'w', 'M', 'Y'); 
    6767 
    6868    for ($i = 6; $i >= 0; $i --) { 
    6969        if ($delta >= $seconds[$i]) { 
    7070            $ret = (int) ($delta / $seconds[$i]); 
    71             return $ret . ' ' . $name[$i] . ($ret > 1 ? 's' : ''); 
     71            return $ret . ' ' . $name[$i]; 
    7272        } 
    7373    } 
  • trunk/admin/xcache.tpl.php

    r47 r60  
    1616<body> 
    1717<h1>XCache Administration</h1> 
     18<a href="help.php" target="_blank" id="help">Help &raquo;</a> 
    1819<span class="switcher"><?php echo switcher("type", $types); ?></span> 
    1920<?php 
     
    2122$b = new Cycle('class="col1"', 'class="col2"'); 
    2223?> 
     24Caches: 
    2325<table cellspacing="0" cellpadding="4" class="cycles"> 
    2426    <col /> 
     
    4749        <th>Hits</th> 
    4850        <th>Misses</th> 
    49         <th>CLogs</th> 
     51        <th>Clogs</th> 
    5052        <th>OOMs</th> 
    5153        <th>Protected</th> 
    5254        <th>Cached</th> 
    5355        <th>Deleted</th> 
    54         <th>Blocks</th> 
    5556    </tr> 
    5657    <?php 
     
    8788        <td>{$ci['cached']}</td> 
    8889        <td>{$ci['deleted']}</td> 
    89         <td> 
    9090EOS; 
    9191 
    9292            $b->reset(); 
    9393            ?> 
    94         </td> 
    9594    </tr> 
    9695    <?php } ?> 
    9796</table> 
     97Free Blocks: 
    9898<?php 
    9999foreach ($cacheinfos as $i => $ci) { 
Note: See TracChangeset for help on using the changeset viewer.