1 /* 2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2014 The PHP Group | 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 15 | Authors: Rasmus Lerdorf <rasmus@php.net> | 16 | Zeev Suraski <zeev@zend.com> | 17 +----------------------------------------------------------------------+ 18 */ 19 20 /* $Id$ */ 21 22 #ifndef INFO_H 23 #define INFO_H 24 25 #define PHP_ENTRY_NAME_COLOR "#ccccff" 26 #define PHP_CONTENTS_COLOR "#cccccc" 27 #define PHP_HEADER_COLOR "#9999cc" 28 29 #define PHP_INFO_GENERAL (1<<0) 30 #define PHP_INFO_CREDITS (1<<1) 31 #define PHP_INFO_CONFIGURATION (1<<2) 32 #define PHP_INFO_MODULES (1<<3) 33 #define PHP_INFO_ENVIRONMENT (1<<4) 34 #define PHP_INFO_VARIABLES (1<<5) 35 #define PHP_INFO_LICENSE (1<<6) 36 #define PHP_INFO_ALL 0xFFFFFFFF 37 38 #ifndef HAVE_CREDITS_DEFS 39 #define HAVE_CREDITS_DEFS 40 41 #define PHP_CREDITS_GROUP (1<<0) 42 #define PHP_CREDITS_GENERAL (1<<1) 43 #define PHP_CREDITS_SAPI (1<<2) 44 #define PHP_CREDITS_MODULES (1<<3) 45 #define PHP_CREDITS_DOCS (1<<4) 46 #define PHP_CREDITS_FULLPAGE (1<<5) 47 #define PHP_CREDITS_QA (1<<6) 48 #define PHP_CREDITS_WEB (1<<7) 49 #define PHP_CREDITS_ALL 0xFFFFFFFF 50 51 #endif /* HAVE_CREDITS_DEFS */ 52 53 #define PHP_LOGO_GUID "PHPE9568F34-D428-11d2-A769-00AA001ACF42" 54 #define PHP_EGG_LOGO_GUID "PHPE9568F36-D428-11d2-A769-00AA001ACF42" 55 #define ZEND_LOGO_GUID "PHPE9568F35-D428-11d2-A769-00AA001ACF42" 56 #define PHP_CREDITS_GUID "PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000" 57 58 BEGIN_EXTERN_C() 59 PHP_FUNCTION(phpversion); 60 PHP_FUNCTION(phpinfo); 61 PHP_FUNCTION(phpcredits); 62 PHP_FUNCTION(php_logo_guid); 63 PHP_FUNCTION(php_real_logo_guid); 64 PHP_FUNCTION(zend_logo_guid); 65 PHP_FUNCTION(php_egg_logo_guid); 66 PHP_FUNCTION(php_sapi_name); 67 PHP_FUNCTION(php_uname); 68 PHP_FUNCTION(php_ini_scanned_files); 69 PHP_FUNCTION(php_ini_loaded_file); 70 PHPAPI char *php_info_html_esc(char *string TSRMLS_DC); 71 PHPAPI void php_info_html_esc_write(char *string, int str_len TSRMLS_DC); 72 PHPAPI void php_print_info_htmlhead(TSRMLS_D); 73 PHPAPI void php_print_info(int flag TSRMLS_DC); 74 PHPAPI void php_print_style(void); 75 PHPAPI void php_info_print_style(TSRMLS_D); 76 PHPAPI void php_info_print_table_colspan_header(int num_cols, char *header); 77 PHPAPI void php_info_print_table_header(int num_cols, ...); 78 PHPAPI void php_info_print_table_row(int num_cols, ...); 79 PHPAPI void php_info_print_table_row_ex(int num_cols, const char *, ...); 80 PHPAPI void php_info_print_table_start(void); 81 PHPAPI void php_info_print_table_end(void); 82 PHPAPI void php_info_print_box_start(int bg); 83 PHPAPI void php_info_print_box_end(void); 84 PHPAPI void php_info_print_hr(void); 85 PHPAPI void php_info_print_module(zend_module_entry *module TSRMLS_DC); 86 PHPAPI char *php_logo_guid(void); 87 PHPAPI char *php_get_uname(char mode); 88 89 void register_phpinfo_constants(INIT_FUNC_ARGS); 90 END_EXTERN_C() 91 92 #endif /* INFO_H */ 93