Changeset 47e7def in git


Ignore:
Timestamp:
2006-09-04T12:03:18Z (13 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
adfe2d2
Parents:
27795d9
Message:

admin-page: more friendly if XCache isn't loaded

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@133 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/xcache.php

    r52ec514 r47e7def  
    8383}
    8484
     85if (!extension_loaded('XCache')) {
     86    echo '<h1>XCache is not loaded</h1>';
     87    ob_start();
     88    phpinfo();
     89    $info = ob_get_clean();
     90    if (preg_match('!<td class="v">(.*\\.ini)!', $info, $m)) {
     91        echo "Please check $m[1]";
     92    }
     93    else {
     94        echo "You don't even have a php.in yet?";
     95    }
     96    exit;
     97}
    8598$pcnt = xcache_count(XC_TYPE_PHP);
    8699$vcnt = xcache_count(XC_TYPE_VAR);
Note: See TracChangeset for help on using the changeset viewer.