X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fconfig-global.php;h=56ae1735bdb53c62279d721f582761f561d55ac6;hb=bc78f4e9fa9a786b6258537c6866106a77e09f54;hp=e67701d0913a17a2dda07fb406270b4eaf142722;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/config-global.php b/inc/config-global.php index e67701d091..56ae1735bd 100644 --- a/inc/config-global.php +++ b/inc/config-global.php @@ -53,21 +53,24 @@ if (function_exists('date_default_timezone_set')) { // CFG: ERROR_REPORTING error_reporting(E_ALL | E_STRICT); -// CFG: REGISTER-GLOBALS -@import_request_variables(''); +// Is the function there? (removed in PHP 5.4.x) +if (function_exists('import_request_variables')) { + // CFG: REGISTER-GLOBALS + @import_request_variables(''); +} // END - if // Detect path (without 'inc') and fix windozer paths $path = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3)); // Some very important function includes -foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'stats', 'http', 'xml', 'callback', 'referal') as $inc) { +foreach (array('config', 'wrapper', 'template', 'module', 'inc', 'stats', 'http', 'xml', 'callback', 'referral') as $inc) { include($path . 'inc/' . $inc . '-functions.php'); } // END - foreach // General functions include($path . 'inc/functions.php'); -// Auto-detection... (patched by "Stelzi" aka. profi-concept, thanks again!) +// Auto-detection of URL $URL = 'http://' . detectServerName() . str_replace("\\", '/', dirname($_SERVER['PHP_SELF'])); while (substr($URL, -1, 1) == '/') { $URL = substr($URL, 0, -1); } @@ -98,11 +101,11 @@ setConfigEntry('COPY', 'Copyright © 2003 - 2009, by Roland Häder,