Changeset ba403ca in git


Ignore:
Timestamp:
2012-07-29T07:01:58Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
24c8b75
Parents:
5ccd176
Message:

htdocs: improve phpinfo looking

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

Location:
htdocs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • htdocs/cacher/index.php

    rc780bef rba403ca  
    128128    $moduleInfo = array();
    129129    foreach ($m[1] as $i => $dummy) {
    130         $moduleInfo[] = '<h3>' . trim($m[1][$i]) . '</h3>';
    131         $moduleInfo[] = str_replace('<br />', '', trim($m[2][$i]));
     130        $caption = trim($m[1][$i]);
     131        $info = str_replace('<br />', '', trim($m[2][$i]));
     132
     133        $regex = '!<table[^>]*>!';
     134        if (preg_match($regex, $info)) {
     135            $moduleInfo[] = preg_replace($regex, "\\0<caption>$caption</caption>", $info, 1);
     136        }
     137        else {
     138            $moduleInfo[] = "<h3>$caption</h3>";
     139            $moduleInfo[] = $info;
     140        }
    132141    }
    133142    return implode('', $moduleInfo);
  • htdocs/common/common.css

    r388b3cf rba403ca  
    148148    right: 8px;
    149149}
    150 .phpinfo table { border: 1px solid black; margin-bottom: 1px; }
    151 .phpinfo table th, .phpinfo table td { border: 1px solid black; }
     150.phpinfo table { border: 1px solid #334C66; margin-bottom: 1px; }
     151.phpinfo table th, .phpinfo table td { border: 1px solid #334C66; }
    152152.phpinfo table th { font-weight: bold; }
    153153.phpinfo .e {background: #81BBF2; font-weight: bold; color: #000000;}
Note: See TracChangeset for help on using the changeset viewer.