Browse Source

htdocs: improve phpinfo looking

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1080 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 9 years ago
parent
commit
ba403ca12c
  1. 13
      htdocs/cacher/index.php
  2. 4
      htdocs/common/common.css

13
htdocs/cacher/index.php

@ -127,8 +127,17 @@ function getModuleInfo() // {{{
$moduleInfo = array();
foreach ($m[1] as $i => $dummy) {
$moduleInfo[] = '<h3>' . trim($m[1][$i]) . '</h3>';
$moduleInfo[] = str_replace('<br />', '', trim($m[2][$i]));
$caption = trim($m[1][$i]);
$info = str_replace('<br />', '', trim($m[2][$i]));
$regex = '!<table[^>]*>!';
if (preg_match($regex, $info)) {
$moduleInfo[] = preg_replace($regex, "\\0<caption>$caption</caption>", $info, 1);
}
else {
$moduleInfo[] = "<h3>$caption</h3>";
$moduleInfo[] = $info;
}
}
return implode('', $moduleInfo);
}

4
htdocs/common/common.css

@ -147,8 +147,8 @@ h1, h2, h3, h4, h5, h6 {
bottom: 8px;
right: 8px;
}
.phpinfo table { border: 1px solid black; margin-bottom: 1px; }
.phpinfo table th, .phpinfo table td { border: 1px solid black; }
.phpinfo table { border: 1px solid #334C66; margin-bottom: 1px; }
.phpinfo table th, .phpinfo table td { border: 1px solid #334C66; }
.phpinfo table th { font-weight: bold; }
.phpinfo .e {background: #81BBF2; font-weight: bold; color: #000000;}
#main .phpinfo .h th {background: #5084D5; font-weight: bold; color: #000000;}

Loading…
Cancel
Save