Skip to content

Commit b1a997e

Browse files
OK, bye bye JavaScript, let's just include credits before license
1 parent c7c2fb0 commit b1a997e

File tree

1 file changed

+7
-26
lines changed

1 file changed

+7
-26
lines changed

ext/standard/info.c

Lines changed: 7 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -797,32 +797,6 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
797797
efree(php_uname);
798798
}
799799

800-
if ((flag & PHP_INFO_CREDITS) && !sapi_module.phpinfo_as_text) {
801-
php_info_print_hr();
802-
php_info_print("<script>(function () {\n");
803-
php_info_print(" 'use strict';\n");
804-
php_info_print(" window.onload = function () {\n");
805-
php_info_print(" var credits, reveal;\n");
806-
php_info_print("\n");
807-
php_info_print(" credits = document.getElementById('credits');\n");
808-
php_info_print(" reveal = document.getElementById('revealcredits');\n");
809-
php_info_print("\n");
810-
php_info_print(" credits.style.display = 'none';\n");
811-
php_info_print(" reveal.style.display = 'block';\n");
812-
php_info_print(" reveal.onclick = function () {\n");
813-
php_info_print(" credits.style.display = 'block';\n");
814-
php_info_print(" reveal.style.display = 'none';\n");
815-
php_info_print(" };\n");
816-
php_info_print(" };\n");
817-
php_info_print("}());</script>\n");
818-
php_info_print("<h1><a id=\"revealcredits\" href=\"#credits\" style=\"display: none;\">");
819-
php_info_print("PHP Credits");
820-
php_info_print("</a></h1>\n");
821-
php_info_print("<div id=\"credits\">\n");
822-
php_print_credits(PHP_CREDITS_ALL, TSRMLS_C);
823-
php_info_print("</div>\n");
824-
}
825-
826800
zend_ini_sort_entries(TSRMLS_C);
827801

828802
if (flag & PHP_INFO_CONFIGURATION) {
@@ -904,6 +878,12 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
904878
php_info_print_table_end();
905879
}
906880

881+
882+
if ((flag & PHP_INFO_CREDITS) && !sapi_module.phpinfo_as_text) {
883+
php_info_print_hr();
884+
php_print_credits(PHP_CREDITS_ALL, TSRMLS_C);
885+
}
886+
907887
if (flag & PHP_INFO_LICENSE) {
908888
if (!sapi_module.phpinfo_as_text) {
909889
SECTION("PHP License");
@@ -937,6 +917,7 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
937917
php_info_print("questions about PHP licensing, please contact [email protected].\n");
938918
}
939919
}
920+
940921
if (!sapi_module.phpinfo_as_text) {
941922
php_info_print("</div></body></html>");
942923
}

0 commit comments

Comments
 (0)