Changeset 1080 for trunk


Ignore:
Timestamp:
2012-07-29T09:01:58+02:00 (2 years ago)
Author:
moo
Message:

htdocs: improve phpinfo looking

Location:
trunk/htdocs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/cacher/index.php

    r1078 r1080  
    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); 
  • trunk/htdocs/common/common.css

    r1075 r1080  
    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.