Changeset 147 for trunk/admin/xcache.php


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

show module info in statistics page

File:
1 edited

Legend:

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