21
21
22
22
#include "php.h"
23
23
#include "info.h"
24
+ #include "SAPI.h"
24
25
25
26
#define CREDIT_LINE (module , authors ) php_info_print_table_row(2, module, authors)
26
27
27
28
/* {{{ php_print_credits
28
29
*/
29
30
PHPAPI void php_print_credits (int flag TSRMLS_DC )
30
31
{
31
- if (flag & PHP_CREDITS_FULLPAGE ) {
32
+ if (! sapi_module . phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE ) {
32
33
php_print_info_htmlhead (TSRMLS_C );
33
34
}
34
35
35
- PUTS ("<h1>PHP Credits</h1>\n" );
36
+ if (!sapi_module .phpinfo_as_text ) {
37
+ PUTS ("<h1>PHP Credits</h1>\n" );
38
+ } else {
39
+ PUTS ("PHP Credits\n" );
40
+ }
36
41
37
42
if (flag & PHP_CREDITS_GROUP ) {
38
43
/* Group */
@@ -46,7 +51,11 @@ PHPAPI void php_print_credits(int flag TSRMLS_DC)
46
51
if (flag & PHP_CREDITS_GENERAL ) {
47
52
/* Design & Concept */
48
53
php_info_print_table_start ();
49
- php_info_print_table_header (1 , "Language Design & Concept" );
54
+ if (!sapi_module .phpinfo_as_text ) {
55
+ php_info_print_table_header (1 , "Language Design & Concept" );
56
+ } else {
57
+ php_info_print_table_header (1 , "Language Design & Concept" );
58
+ }
50
59
php_info_print_table_row (1 , "Andi Gutmans, Rasmus Lerdorf, Zeev Suraski" );
51
60
php_info_print_table_end ();
52
61
@@ -109,7 +118,7 @@ PHPAPI void php_print_credits(int flag TSRMLS_DC)
109
118
php_info_print_table_end ();
110
119
}
111
120
112
- if (flag & PHP_CREDITS_FULLPAGE ) {
121
+ if (! sapi_module . phpinfo_as_text && flag & PHP_CREDITS_FULLPAGE ) {
113
122
PUTS ("</div></body></html>\n" );
114
123
}
115
124
}
0 commit comments