com web/bugs: Attempt at making phpinfo() re-use some of the bug styles: www/admin/index.php www/css/style.css
| From: | Kalle Sommer Nielsen | Date: | Thu, 24 Aug 2017 15:24:13 +0000 |
| Subject: | com web/bugs: Attempt at making phpinfo() re-use some of the bug styles: www/admin/index.php www/css/style.css | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-26345@lists.php.net to get a copy of this message | ||
Commit: 758f037a15e0280d6ba4df7662e402eaba1d6106
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 24 Aug 2017 17:24:13 +0200
Parents: e2f7998bedeae18773936076b1d3f0caa990772b
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=758f037a15e0280d6ba4df7662e402eaba1d6106
Log:
Attempt at making phpinfo() re-use some of the bug styles
Changed paths:
M www/admin/index.php
M www/css/style.css
Diff:
diff --git a/www/admin/index.php b/www/admin/index.php
index efb9b0c..4c89a52 100644
--- a/www/admin/index.php
+++ b/www/admin/index.php
@@ -41,7 +41,11 @@ if ($action === 'phpinfo') {
$m = array();
preg_match('!<body.*?>(.*)</body>!ims', $phpinfo, $m);
- echo preg_replace('!<a href="http://www.php..net/"><img.*?></a>!ims',
'', $m[1]);
+
+ $m[1] = preg_replace('!<a href="http://www.php.net/"><img.*?></a>!ims',
'', $m[1]);
+ $m[1] = str_replace(' width="600"', ' width="80%"',
$m[1]);
+
+ echo $m[1];
} elseif ($action === 'list_lists') {
diff --git a/www/css/style.css b/www/css/style.css
index ccd0521..70d96f2 100644
--- a/www/css/style.css
+++ b/www/css/style.css
@@ -320,17 +320,17 @@ div.success ul {
/* ========= Statistics ========= */
-.bug_bg0 {
+.bug_bg0, .e {
background-color: #DDDDDD;
font-size: 85%;
text-align: center;
}
-.bug_bg1 {
+.bug_bg1, .v {
background-color: #EEEEEE;
font-size: 85%;
text-align: center;
}
-.bug_head {
+.bug_head, .h {
background-color: #aabbcc;
color: #000000;
font-size: 80%;
@@ -828,3 +828,9 @@ td.search-next {
td.tbl-row-message {
text-align: left;
}
+
+// phpinfo()
+div.center {
+ margin: 0px auto;
+ width: 80%;
+}
\ No newline at end of file