From b5071679364c896f81dc2865da3e386d61766d8d Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 30 Sep 2005 10:53:39 +0000 Subject: [PATCH] Generated list can now be used by 'eval' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1444 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gen_function_list.php | 2 +- include/functions_list.inc | 299 ++++++++++++++++++------------------- 2 files changed, 150 insertions(+), 151 deletions(-) diff --git a/gen_function_list.php b/gen_function_list.php index 874082af9..abf73abd1 100755 --- a/gen_function_list.php +++ b/gen_function_list.php @@ -48,7 +48,7 @@ if(is_writable($file)) { // Open filehandle $fh= fopen($file,'w'); if($fh != null) { - fwrite($fh,""); + fwrite($fh,"return(\n".var_export($array,true).");"); fclose($fh); } } diff --git a/include/functions_list.inc b/include/functions_list.inc index bcf9f15c9..425891956 100644 --- a/include/functions_list.inc +++ b/include/functions_list.inc @@ -1,78 +1,78 @@ - 'print_r', - 1 => 'touch', - 2 => 'fopen', - 3 => 'fwrite', - 4 => 'var_export', - 5 => 'fclose', - 6 => 'session_start', - 7 => 'header', - 8 => 'error_reporting', - 9 => 'putenv', - 10 => 'setlocale', - 11 => 'bindtextdomain', - 12 => 'textdomain', - 13 => 'sprintf', - 14 => 'str_replace', - 15 => 'gmdate', - 16 => 'imageAlphaBlending', - 17 => 'imageSaveAlpha', - 18 => 'imagesx', - 19 => 'imagesy', - 20 => 'imagecopy', - 21 => 'imagePng', - 22 => 'mysql_pconnect', - 23 => 'mysql_select_db', - 24 => 'mysql_query', - 25 => 'mysql_fetch_array', - 26 => 'mysql_result', - 27 => 'mysql_close', - 28 => 'tempnam', - 29 => 'popen', - 30 => 'fread', - 31 => 'pclose', - 32 => 'unlink', - 33 => 'imagick_blob2image', - 34 => 'imagick_image2blob', - 35 => 'preg_match', - 36 => 'base64_decode', - 37 => 'preg_replace', - 38 => 'srand', - 39 => 'strlen', - 40 => 'date', - 41 => 'preg_split', - 42 => 'trim', - 43 => 'chr', - 44 => 'chunk_split', - 45 => 'is_dir', - 46 => 'is_writable', - 47 => 'session_destroy', - 48 => 'substr', - 49 => 'tidy_parse_string', - 50 => 'tidy_clean_repair', - 51 => 'tidy_error_count', - 52 => 'tidy_warning_count', - 53 => 'nl2br', - 54 => 'intval', - 55 => 'ImageFontWidth', - 56 => 'ImageFontHeight', - 57 => 'imagecolorallocate', - 58 => 'imagerectangle', - 59 => 'imagefilledrectangle', - 60 => 'imagestring', - 61 => 'imagepng', - 62 => 'imagedestroy', - 63 => 'is_int', - 64 => 'session_id', - 65 => 'define', - 66 => 'base64_encode', - 67 => 'debug_backtrace', - 68 => 'htmlentities', - 69 => 'flush', - 70 => 'dirname', - 71 => 'set_error_handler', - 72 => 'ini_set', + 0 => 'touch', + 1 => 'fopen', + 2 => 'fwrite', + 3 => 'var_export', + 4 => 'fclose', + 5 => 'print_r', + 6 => 'fread', + 7 => 'filesize', + 8 => 'header', + 9 => 'session_start', + 10 => 'error_reporting', + 11 => 'putenv', + 12 => 'setlocale', + 13 => 'bindtextdomain', + 14 => 'textdomain', + 15 => 'sprintf', + 16 => 'str_replace', + 17 => 'gmdate', + 18 => 'imageAlphaBlending', + 19 => 'imageSaveAlpha', + 20 => 'imagesx', + 21 => 'imagesy', + 22 => 'imagecopy', + 23 => 'imagePng', + 24 => 'mysql_pconnect', + 25 => 'mysql_select_db', + 26 => 'mysql_query', + 27 => 'mysql_fetch_array', + 28 => 'mysql_result', + 29 => 'mysql_close', + 30 => 'tempnam', + 31 => 'popen', + 32 => 'pclose', + 33 => 'unlink', + 34 => 'imagick_blob2image', + 35 => 'imagick_image2blob', + 36 => 'preg_match', + 37 => 'base64_decode', + 38 => 'preg_replace', + 39 => 'srand', + 40 => 'strlen', + 41 => 'date', + 42 => 'preg_split', + 43 => 'trim', + 44 => 'chr', + 45 => 'chunk_split', + 46 => 'is_dir', + 47 => 'is_writable', + 48 => 'session_destroy', + 49 => 'substr', + 50 => 'tidy_parse_string', + 51 => 'tidy_clean_repair', + 52 => 'tidy_error_count', + 53 => 'tidy_warning_count', + 54 => 'nl2br', + 55 => 'intval', + 56 => 'ImageFontWidth', + 57 => 'ImageFontHeight', + 58 => 'imagecolorallocate', + 59 => 'imagerectangle', + 60 => 'imagefilledrectangle', + 61 => 'imagestring', + 62 => 'imagepng', + 63 => 'imagedestroy', + 64 => 'is_int', + 65 => 'session_id', + 66 => 'debug_backtrace', + 67 => 'htmlentities', + 68 => 'flush', + 69 => 'dirname', + 70 => 'set_error_handler', + 71 => 'ini_set', + 72 => 'define', 73 => 'chdir', 74 => 'opendir', 75 => 'readdir', @@ -108,74 +108,74 @@ array ( 105 => 'array_reverse', 106 => 'is_readable', 107 => 'is_file', - 108 => 'filesize', - 109 => 'dechex', - 110 => 'crypt', - 111 => 'imap_close', - 112 => 'is_array', - 113 => 'imap_listmailbox', - 114 => 'imap_utf7_decode', - 115 => 'imap_last_error', - 116 => 'imap_getacl', - 117 => 'imap_setacl', - 118 => 'strpos', - 119 => 'is_integer', - 120 => 'implode', - 121 => 'file', - 122 => 'uniqid', - 123 => 'htmlspecialchars', - 124 => 'serialize', - 125 => 'hexdec', - 126 => 'gettype', - 127 => 'get_object_vars', - 128 => 'is_object', - 129 => 'mysql_num_fields', - 130 => 'mysql_field_name', - 131 => 'mysql_data_seek', - 132 => 'preg_match_all', - 133 => 'stripcslashes', - 134 => 'get_class', - 135 => 'ldap_connect', - 136 => 'ldap_set_option', - 137 => 'ldap_set_rebind_proc', - 138 => 'ldap_get_values_len', - 139 => 'ldap_unbind', - 140 => 'asort', - 141 => 'function_exists', - 142 => 'sha1', - 143 => 'get_declared_classes', - 144 => 'escapeshellarg', - 145 => 'get_class_vars', - 146 => 'array_keys', - 147 => 'ldap_bind', - 148 => 'ldap_read', - 149 => 'ldap_get_entries', - 150 => 'version_compare', - 151 => 'shell_exec', - 152 => 'system', - 153 => 'ini_get', - 154 => 'posix_getgrgid', - 155 => 'xml_parser_create', - 156 => 'xml_set_object', - 157 => 'xml_set_element_handler', - 158 => 'chop', - 159 => 'xml_error_string', - 160 => 'xml_get_current_line_number', - 161 => 'printf', - 162 => 'kadm5_init_with_password', - 163 => 'kadm5_chpass_principal', - 164 => 'kadm5_destroy', - 165 => 'recode', - 166 => 'iconv', - 167 => 'ord', - 168 => 'time', - 169 => 'stat', - 170 => 'array_slice', - 171 => 'ksort', - 172 => 'strip_tags', - 173 => 'getcwd', - 174 => 'fgets', - 175 => 'is_callable', + 108 => 'dechex', + 109 => 'crypt', + 110 => 'imap_close', + 111 => 'is_array', + 112 => 'imap_listmailbox', + 113 => 'imap_utf7_decode', + 114 => 'imap_last_error', + 115 => 'imap_getacl', + 116 => 'imap_setacl', + 117 => 'strpos', + 118 => 'is_integer', + 119 => 'implode', + 120 => 'file', + 121 => 'get_class_vars', + 122 => 'array_keys', + 123 => 'stripcslashes', + 124 => 'get_class', + 125 => 'ldap_connect', + 126 => 'ldap_set_option', + 127 => 'ldap_set_rebind_proc', + 128 => 'ldap_get_values_len', + 129 => 'ldap_unbind', + 130 => 'asort', + 131 => 'xml_parser_create', + 132 => 'xml_set_object', + 133 => 'xml_set_element_handler', + 134 => 'chop', + 135 => 'xml_error_string', + 136 => 'xml_get_current_line_number', + 137 => 'function_exists', + 138 => 'sha1', + 139 => 'base64_encode', + 140 => 'get_declared_classes', + 141 => 'escapeshellarg', + 142 => 'kadm5_init_with_password', + 143 => 'kadm5_chpass_principal', + 144 => 'kadm5_destroy', + 145 => 'printf', + 146 => 'hexdec', + 147 => 'recode', + 148 => 'iconv', + 149 => 'ord', + 150 => 'uniqid', + 151 => 'htmlspecialchars', + 152 => 'serialize', + 153 => 'gettype', + 154 => 'get_object_vars', + 155 => 'is_object', + 156 => 'mysql_num_fields', + 157 => 'mysql_field_name', + 158 => 'mysql_data_seek', + 159 => 'preg_match_all', + 160 => 'ldap_bind', + 161 => 'ldap_read', + 162 => 'ldap_get_entries', + 163 => 'version_compare', + 164 => 'is_callable', + 165 => 'shell_exec', + 166 => 'system', + 167 => 'ini_get', + 168 => 'posix_getgrgid', + 169 => 'time', + 170 => 'stat', + 171 => 'array_slice', + 172 => 'ksort', + 173 => 'strip_tags', + 174 => 'getcwd', + 175 => 'fgets', 176 => 'call_user_func_array', 177 => 'array_unique', 178 => 'usort', @@ -206,9 +206,9 @@ array ( 203 => 'array_unshift', 204 => 'next', 205 => 'round', - 206 => 'rawurlencode', - 207 => 'bin2hex', - 208 => 'preg_grep', + 206 => 'preg_grep', + 207 => 'rawurlencode', + 208 => 'bin2hex', 209 => 'str_repeat', 210 => 'extract', 211 => 'preg_replace_callback', @@ -228,9 +228,9 @@ array ( 225 => 'unserialize', 226 => 'realpath', 227 => 'strncmp', - 228 => 'array_search', - 229 => 'array_key_exists', - 230 => 'mysql_fetch_row', + 228 => 'mysql_fetch_row', + 229 => 'array_search', + 230 => 'array_key_exists', 231 => 'mysql_error', 232 => 'utf8_encode', 233 => 'file_get_contents', @@ -259,5 +259,4 @@ array ( 256 => 'kadm5_delete_principal', 257 => 'kadm5_create_principal', 258 => 'join', -) -?> \ No newline at end of file +)); \ No newline at end of file -- 2.30.2