root/ip/tags/release_1_3_0_53/common.php
| 111 | 163 | ||
|---|---|---|---|
132 | } | 132 | } |
133 | else | 133 | else |
134 | { | 134 | { |
135 | set_magic_quotes_runtime(0); // Disable magic_quotes_runtime | 135 | @set_magic_quotes_runtime(0); // Disable magic_quotes_runtime |
136 | if (@ini_get('register_globals') == '1' || strtolower(@ini_get('register_globals')) == 'on' || !function_exists('ini_get')) | 136 | if (@ini_get('register_globals') == '1' || (strtolower(@ini_get('register_globals')) == 'on') || !function_exists('ini_get')) |
137 | { | 137 | { |
138 | deregister_globals(); | 138 | deregister_globals(); |
139 | } | 139 | } |
140 | define('STRIP', (get_magic_quotes_gpc()) ? true : false); | 140 | define('STRIP', (get_magic_quotes_gpc()) ? true : false); |
141 | } | 141 | } |
142 | 142 | ||
143 | // Is this safe? | ||
144 | //@date_default_timezone_set(@date_default_timezone_get()); | ||
145 | |||
143 | // CrackerTracker v5.x | 146 | // CrackerTracker v5.x |
144 | // Uncomment the following define to disable CT GET and POST parsing. | 147 | // Uncomment the following define to disable CT GET and POST parsing. |
145 | //define('MG_KILL_CTRACK', true); | 148 | //define('MG_KILL_CTRACK', true); |
... | ... | ||
273 | include_once(IP_ROOT_PATH . 'includes/functions_extra.' . PHP_EXT); | 276 | include_once(IP_ROOT_PATH . 'includes/functions_extra.' . PHP_EXT); |
274 | } | 277 | } |
275 | include(IP_ROOT_PATH . 'includes/db.' . PHP_EXT); | 278 | include(IP_ROOT_PATH . 'includes/db.' . PHP_EXT); |
276 | // We do not need this any longer, unset for safety purposes | 279 | // We do not need these any longer, unset for safety purpose |
277 | unset($dbuser); | 280 | unset($dbuser); |
278 | unset($dbpasswd); | 281 | unset($dbpasswd); |
279 | unset($db->password); | 282 | unset($db->password); |
... | ... | ||
374 | } | 377 | } |
375 | // CMS Pages Config - END | 378 | // CMS Pages Config - END |
376 | 379 | ||
377 | // Time Management - BEGIN | ||
378 | // PARSE DATEFORMAT TO GET TIME FORMAT | ||
379 | $time_reg = '([gh][[:punct:][:space:]]{1,2}[i][[:punct:][:space:]]{0,2}[a]?[[:punct:][:space:]]{0,2}[S]?)'; | ||
380 | eregi($time_reg, $board_config['default_dateformat'], $regs); | ||
381 | $board_config['default_timeformat'] = $regs[1]; | ||
382 | unset($time_reg); | ||
383 | unset($regs); | ||
384 | // Time Management - END | ||
385 | |||
386 | include(IP_ROOT_PATH . ATTACH_MOD_PATH . 'attachment_mod.' . PHP_EXT); | 380 | include(IP_ROOT_PATH . ATTACH_MOD_PATH . 'attachment_mod.' . PHP_EXT); |
387 | 381 | ||
388 | //<!-- BEGIN Unread Post Information to Database Mod --> | 382 | //<!-- BEGIN Unread Post Information to Database Mod --> |
Download diff