summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6155d80)
raw | patch | inline | side by side (parent: 6155d80)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Jan 2008 14:37:20 +0000 (14:37 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 18 Jan 2008 14:37:20 +0000 (14:37 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8501 594d385d-05f5-0310-b6e9-bd551577e9d8
index fed1414feb768dcfc50d6b890917a1952173e934..8107ef4e659dd87c4c282ac370ed5f9beb35da8c 100644 (file)
$GLOBALS['t_gettext_message_dir'] = $BASE_DIR.'/locale/';
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to");
index ee95d68af5de509c1e68d94f089c166ab05633fe..94a4fb3458692bdfdbaa323086d567158d44435a 100644 (file)
--- a/gosa-core/html/index.php
+++ b/gosa-core/html/index.php
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
$smarty->assign ('nextfield', 'username');
index 1268cbfc0ec46c45c2da887c7037b9ee72e6f79a..3c60db50bfd9bf4b2efaa3f8c39ae8ae6444cac6 100644 (file)
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
/* Create smarty & Set template compile directory */
index dcdd935ad2344ec3a2fd51c79fe2b68300e9d365..2b7f3a4a777c4599d13de67f70856572a9c77eaa 100644 (file)
--- a/gosa-core/html/main.php
+++ b/gosa-core/html/main.php
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
/* Remember everything we did after the last click */
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
@DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to");
index d830a837466679bd762aaa72c2789b9fcd2ae253..7ae17215482ce4e337e8931d158c6f5df985f8f4 100644 (file)
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
/* Generate server list */
index 5bf7f92ebdae6d11b1a5e24b9810b46480a6db6b..77454483a136098816abe55d9170efefd668fc5b 100644 (file)
--- a/gosa-core/html/setup.php
+++ b/gosa-core/html/setup.php
/* Set the text domain as 'messages' */
$domain = 'messages';
-bindtextdomain($domain, "$BASE_DIR/locale");
+bindtextdomain($domain, LOCALE_DIR);
textdomain($domain);
diff --git a/gosa-core/include/functions_list.inc b/gosa-core/include/functions_list.inc
+++ /dev/null
@@ -1,264 +0,0 @@
-return(
-array (
- 0 => 'touch',
- 1 => 'fopen',
- 2 => 'fwrite',
- 3 => 'var_export',
- 4 => 'fclose',
- 5 => 'header',
- 6 => 'session_start',
- 7 => 'error_reporting',
- 8 => 'putenv',
- 9 => 'setlocale',
- 10 => 'bindtextdomain',
- 11 => 'textdomain',
- 12 => 'sprintf',
- 13 => 'str_replace',
- 14 => 'gmdate',
- 15 => 'imageAlphaBlending',
- 16 => 'imageSaveAlpha',
- 17 => 'imagesx',
- 18 => 'imagesy',
- 19 => 'imagecopy',
- 20 => 'imagePng',
- 21 => 'mysql_pconnect',
- 22 => 'mysql_select_db',
- 23 => 'mysql_query',
- 24 => 'mysql_fetch_array',
- 25 => 'mysql_result',
- 26 => 'mysql_close',
- 27 => 'tempnam',
- 28 => 'popen',
- 29 => 'fread',
- 30 => 'pclose',
- 31 => 'unlink',
- 32 => 'imagick_blob2image',
- 33 => 'imagick_image2blob',
- 34 => 'preg_match',
- 35 => 'base64_decode',
- 36 => 'preg_replace',
- 37 => 'srand',
- 38 => 'strlen',
- 39 => 'date',
- 40 => 'preg_split',
- 41 => 'trim',
- 42 => 'chr',
- 43 => 'chunk_split',
- 44 => 'is_dir',
- 45 => 'is_writable',
- 46 => 'session_destroy',
- 47 => 'substr',
- 48 => 'tidy_parse_string',
- 49 => 'tidy_clean_repair',
- 50 => 'tidy_error_count',
- 51 => 'tidy_warning_count',
- 52 => 'nl2br',
- 53 => 'intval',
- 54 => 'ImageFontWidth',
- 55 => 'ImageFontHeight',
- 56 => 'imagecolorallocate',
- 57 => 'imagerectangle',
- 58 => 'imagefilledrectangle',
- 59 => 'imagestring',
- 60 => 'imagepng',
- 61 => 'imagedestroy',
- 62 => 'is_int',
- 63 => 'session_id',
- 64 => 'imap_close',
- 65 => 'is_array',
- 66 => 'imap_listmailbox',
- 67 => 'imap_utf7_decode',
- 68 => 'imap_last_error',
- 69 => 'imap_getacl',
- 70 => 'imap_setacl',
- 71 => 'rtrim',
- 72 => 'strpos',
- 73 => 'is_integer',
- 74 => 'implode',
- 75 => 'file',
- 76 => 'opendir',
- 77 => 'time',
- 78 => 'readdir',
- 79 => 'strstr',
- 80 => 'filesize',
- 81 => 'stat',
- 82 => 'asort',
- 83 => 'closedir',
- 84 => 'split',
- 85 => 'preg_match_all',
- 86 => 'array_reverse',
- 87 => 'array_slice',
- 88 => 'ksort',
- 89 => 'dechex',
- 90 => 'htmlentities',
- 91 => 'strip_tags',
- 92 => 'stripcslashes',
- 93 => 'get_class',
- 94 => 'exec',
- 95 => 'ldap_connect',
- 96 => 'ldap_set_option',
- 97 => 'ldap_set_rebind_proc',
- 98 => 'ldap_get_values_len',
- 99 => 'ldap_unbind',
- 100 => 'reset',
- 101 => 'ldap_bind',
- 102 => 'ldap_read',
- 103 => 'ldap_get_entries',
- 104 => 'array_flip',
- 105 => 'version_compare',
- 106 => 'is_callable',
- 107 => 'shell_exec',
- 108 => 'function_exists',
- 109 => 'system',
- 110 => 'ini_get',
- 111 => 'posix_getgrgid',
- 112 => 'crypt',
- 113 => 'strtolower',
- 114 => 'get_declared_classes',
- 115 => 'mt_srand',
- 116 => 'microtime',
- 117 => 'escapeshellarg',
- 118 => 'flush',
- 119 => 'current',
- 120 => 'printf',
- 121 => 'print_r',
- 122 => 'kadm5_init_with_password',
- 123 => 'kadm5_chpass_principal',
- 124 => 'kadm5_destroy',
- 125 => 'base64_encode',
- 126 => 'sha1',
- 127 => 'define',
- 128 => 'getcwd',
- 129 => 'array_merge',
- 130 => 'chdir',
- 131 => 'fgets',
- 132 => 'debug_backtrace',
- 133 => 'dirname',
- 134 => 'set_error_handler',
- 135 => 'ini_set',
- 136 => 'uniqid',
- 137 => 'htmlspecialchars',
- 138 => 'serialize',
- 139 => 'hexdec',
- 140 => 'gettype',
- 141 => 'get_object_vars',
- 142 => 'is_object',
- 143 => 'mysql_num_fields',
- 144 => 'mysql_field_name',
- 145 => 'mysql_data_seek',
- 146 => 'explode',
- 147 => 'strtoupper',
- 148 => 'syslog',
- 149 => 'md5',
- 150 => 'arsort',
- 151 => 'ltrim',
- 152 => 'preg_quote',
- 153 => 'func_get_args',
- 154 => 'cups_get_dest_list',
- 155 => 'cups_get_printer_attributes',
- 156 => 'session_unregister',
- 157 => 'pow',
- 158 => 'key',
- 159 => 'mt_rand',
- 160 => 'mb_substr',
- 161 => 'is_link',
- 162 => 'sort',
- 163 => 'is_readable',
- 164 => 'is_file',
- 165 => 'get_class_vars',
- 166 => 'array_keys',
- 167 => 'xml_parser_create',
- 168 => 'xml_set_object',
- 169 => 'xml_set_element_handler',
- 170 => 'chop',
- 171 => 'xml_error_string',
- 172 => 'xml_get_current_line_number',
- 173 => 'recode',
- 174 => 'iconv',
- 175 => 'ord',
- 176 => 'call_user_func_array',
- 177 => 'array_unique',
- 178 => 'usort',
- 179 => 'substr_count',
- 180 => 'end',
- 181 => 'strtr',
- 182 => 'strftime',
- 183 => 'each',
- 184 => 'array_values',
- 185 => 'array_pop',
- 186 => 'array_count_values',
- 187 => 'array_push',
- 188 => 'array_splice',
- 189 => 'in_array',
- 190 => 'array_shift',
- 191 => 'addslashes',
- 192 => 'rsort',
- 193 => 'is_numeric',
- 194 => 'settype',
- 195 => 'ob_start',
- 196 => 'ob_get_contents',
- 197 => 'ob_end_clean',
- 198 => 'file_exists',
- 199 => 'filemtime',
- 200 => 'urlencode',
- 201 => 'crc32',
- 202 => 'basename',
- 203 => 'array_unshift',
- 204 => 'next',
- 205 => 'round',
- 206 => 'preg_grep',
- 207 => 'rawurlencode',
- 208 => 'bin2hex',
- 209 => 'str_repeat',
- 210 => 'extract',
- 211 => 'preg_replace_callback',
- 212 => 'ucfirst',
- 213 => 'wordwrap',
- 214 => 'substr_replace',
- 215 => 'ceil',
- 216 => 'floor',
- 217 => 'array_map',
- 218 => 'range',
- 219 => 'strtotime',
- 220 => 'mktime',
- 221 => 'parse_url',
- 222 => 'fsockopen',
- 223 => 'fputs',
- 224 => 'token_get_all',
- 225 => 'unserialize',
- 226 => 'realpath',
- 227 => 'strncmp',
- 228 => 'mysql_fetch_row',
- 229 => 'array_search',
- 230 => 'array_key_exists',
- 231 => 'mysql_error',
- 232 => 'stripslashes',
- 233 => 'ldap_start_tls',
- 234 => 'utf8_encode',
- 235 => 'is_string',
- 236 => 'natcasesort',
- 237 => 'rand',
- 238 => 'uasort',
- 239 => 'strcasecmp',
- 240 => 'strrpos',
- 241 => 'file_get_contents',
- 242 => 'imagick_ReadImage',
- 243 => 'imagick_free',
- 244 => 'strrchr',
- 245 => 'sleep',
- 246 => 'array_chunk',
- 247 => 'natsort',
- 248 => 'pg_connect',
- 249 => 'pg_exec',
- 250 => 'pg_close',
- 251 => 'pg_set_client_encoding',
- 252 => 'pg_freeresult',
- 253 => 'getdate',
- 254 => 'is_uploaded_file',
- 255 => 'ldap_mod_del',
- 256 => 'ldap_close',
- 257 => 'kadm5_get_principals',
- 258 => 'kadm5_delete_principal',
- 259 => 'kadm5_create_principal',
- 260 => 'join',
-));
\ No newline at end of file
index 62ffba9bd6f30715b5c3a73dd193c6a3cd7d8c76..6e1b51b5fa4bcca2ecbdfd887f536d46fd216d25 100644 (file)
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+define ("LOCALE_DIR", dirname(dirname(__FILE__))."/locale/compiled");
+
function gosaRaiseError($errno, $errstr, $errfile, $errline)
{
global $error_collector,$config, $error_collector_mailto;
diff --git a/gosa-core/update-gosa b/gosa-core/update-gosa
index d7f249d202afa3611a42a4fdce914c2d61b9d941..b67072b78a090bf3b081e52b582134390409b7aa 100755 (executable)
--- a/gosa-core/update-gosa
+++ b/gosa-core/update-gosa
#!/usr/bin/php5
<?php
+
/* Function to include all class_ files starting at a given directory base */
function get_classes($folder= ".")
{
return ($result);
}
+
+##############################################################################
+## M A I N - G O S A - U P D A T E ##
+##############################################################################
+
+/* Reload class list */
$class_mapping= get_classes();
$filename= "include/class_location.inc";
fclose($handle);
+
+
?>