Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions ext/standard/css.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,19 @@ PHPAPI ZEND_COLD void php_info_print_css(void) /* {{{ */
PUTS("td, th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}\n");
PUTS("th {position: sticky; top: 0; background: inherit;}\n");
PUTS("h1 {font-size: 150%;}\n");
PUTS("h1.p {color: #fff;}\n");
PUTS("h2 {font-size: 125%;}\n");
PUTS("h2 > a {text-decoration: none;}\n");
PUTS("h2 > a:hover {text-decoration: underline;}\n");
PUTS(".p {text-align: left;}\n");
PUTS(".e {background-color: #ccf; width: 300px; font-weight: bold;}\n");
PUTS(".h {background-color: #99c; font-weight: bold;}\n");
PUTS(".h {background-color: #99c; font-weight: bold; position: relative;}\n");
PUTS(".t {background-color: var(--php-dark-blue); font-weight: bold; color: #fff}\n");
PUTS(".v {background-color: #ddd; max-width: 300px; overflow-x: auto; word-wrap: break-word;}\n");
PUTS(".v i {color: #999;}\n");
PUTS("img {float: right; border: 0;}\n");
PUTS("img, svg {float: right; border: 0;}\n");
PUTS("hr {width: 934px; background-color: #ccc; border: 0; height: 1px;}\n");
PUTS(".g {position: absolute;right: -11px;width: 110px;bottom: -6px;}\n");
PUTS(":root {--php-dark-grey: #333; --php-dark-blue: #4F5B93; --php-medium-blue: #8892BF; --php-light-blue: #E2E4EF; --php-accent-purple: #793862}");
PUTS(
"@media (prefers-color-scheme: dark) {\n"
Expand Down
12 changes: 7 additions & 5 deletions ext/standard/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -785,12 +785,14 @@ PHPAPI ZEND_COLD void php_print_info(int flag)
the_time = time(NULL);
ta = php_localtime_r(&the_time, &tmbuf);

php_info_print("<a href=\"https://www.php.net/\"><img src=\"");
php_info_print("<a href=\"https://www.php.net/\">");
if (ta && (ta->tm_mon==3) && (ta->tm_mday==1)) {
php_info_print(PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
} else {
php_info_print(PHP_LOGO_DATA_URI "\" alt=\"PHP logo\" /></a>");
}
php_info_print("<img src=\""PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" class=\"g\"/>");
}
else {
php_info_print("<img src=\""PHP_EGG_LOGO_DATA_URI "\" alt=\"PHP logo\" class=\"g\"/>");
}
php_info_print("</a>");
}

if (!sapi_module.phpinfo_as_text) {
Expand Down
Loading