Changeset 60 in svn for trunk/admin/xcache.php


Ignore:
Timestamp:
2006-06-03T04:20:18Z (9 years ago)
Author:
Xuefer
Message:

closes #8, simple docs for admin pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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    }
Note: See TracChangeset for help on using the changeset viewer.