Changeset 147 in svn


Ignore:
Timestamp:
2006-09-09T02:56:19+02:00 (9 years ago)
Author:
Xuefer
Message:

show module info in statistics page

Location:
trunk/admin
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/common-zh-simplified-utf-8.lang.php

    r123 r147  
    9191        'offset'
    9292        => '位置',
    93         ''
    94         => '',
     93        'Module Info'
     94        => '模块信息',
    9595        ''
    9696        => '',
  • trunk/admin/common-zh-traditional-utf-8.lang.php

    r135 r147  
    9191        'offset'
    9292        => '位置',
    93         ''
    94         => '',
     93        'Module Info'
     94        => '組元訊息',
    9595        ''
    9696        => '',
  • trunk/admin/xcache.css

    r145 r147  
    77table.cycles th { background-color: #9999cc; color: black; font-weight: bold; height: 20px; line-height: 20px; font-family: serif; }
    88th a { color: black; font-weight: bold; display: block; width: 100%; height: 100%; }
     9.moduleinfo table { border: 1px solid black; }
     10.moduleinfo table th, .moduleinfo table td { border: 1px solid black; }
     11.moduleinfo table th { font-weight: bold; }
     12.moduleinfo .e {background-color: #ccccff; font-weight: bold; color: #000000;}
     13.moduleinfo .h {background-color: #9999cc; font-weight: bold; color: #000000;}
     14.moduleinfo .v {background-color: #cccccc; color: #000000;}
    915.button { }
    1016span.sortarrow { color: white; text-decoration: none; }
  • trunk/admin/xcache.php

    r144 r147  
    9999$vcnt = xcache_count(XC_TYPE_VAR);
    100100
     101$moduleinfo = null;
    101102$type_none = -1;
    102103if (!isset($_GET['type'])) {
     
    189190    $_GET['type'] = $type_none;
    190191    $cachelist = array();
     192    ob_start();
     193    phpinfo(INFO_MODULES);
     194    $moduleinfo = ob_get_clean();
     195    if (preg_match('!XCache</a></h2>(.*?)<h2><a name="module_!is', $moduleinfo, $m)) {
     196        $moduleinfo = $m[1];
     197    }
     198    else {
     199        $moduleinfo = null;
     200    }
    191201    break;
    192202}
  • trunk/admin/xcache.tpl.php

    r146 r147  
    246246    }
    247247}
     248if ($moduleinfo) {
     249    $t_moduleinfo = _T("Module Info");
     250    echo <<<HTML
     251<h2>$t_moduleinfo</h2>
     252<div class="moduleinfo">$moduleinfo</div>
     253HTML;
     254}
    248255?>
    249256<div class="footnote">
Note: See TracChangeset for help on using the changeset viewer.