X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Findex.php;h=e5019640be8c23f2fcc7cc2f82c26aa3443ab687;hb=50c8dd9d309dfa0fc52347076f64cb32723f0812;hp=24290647b882c3808ac0c95b833df3e86522620f;hpb=4e56971aed3008cd33f946c17012d0851ac3a18a;p=mailer.git diff --git a/inc/modules/index.php b/inc/modules/index.php index 24290647b8..e5019640be 100644 --- a/inc/modules/index.php +++ b/inc/modules/index.php @@ -37,7 +37,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { require($INC); } elseif (!EXT_IS_ACTIVE("sql_patches", true)) { // The extension "sql_patches" *MUST* be activated or you have lot's of problems! - LOAD_URL(URL."/modules.php?module=admin"); + LOAD_URL("modules.php?module=admin"); } // Load adverstising template @@ -72,7 +72,7 @@ if (!empty($_GET['msg'])) { LOAD_TEMPLATE("guest_menu_td"); // When no what value is provided take the "home" value -if (empty($GLOBALS['what'])) $GLOBALS['what'] = $CONFIG['index_home']; +if (empty($GLOBALS['what'])) $GLOBALS['what'] = $_CONFIG['index_home']; // Adding the main content module here if (empty($GLOBALS['action'])) @@ -87,7 +87,7 @@ if (empty($GLOBALS['action'])) } // Add the guest's menu here... -if (($CONFIG['guest_menu'] == 'Y') || (!EXT_IS_ACTIVE("sql_patches", true))) +if (($_CONFIG['guest_menu'] == "Y") || (!EXT_IS_ACTIVE("sql_patches", true))) { // Show only when guest menu is active ADD_MENU("guest", $act, $GLOBALS['what']); @@ -96,7 +96,7 @@ if (($CONFIG['guest_menu'] == 'Y') || (!EXT_IS_ACTIVE("sql_patches", true))) // TDs between menu and content LOAD_TEMPLATE("guest_menu_content"); -$INC_ACTION = sprintf(PATH."inc/modules/guest/action-%s.php", $act); +$INC_ACTION = sprintf("%sinc/modules/guest/action-%s.php", PATH, $act); if ((file_exists($INC_ACTION)) && (is_readable($INC_ACTION)) && (VALIDATE_MENU_ACTION("guest", $act, $GLOBALS['what']))) { // Requested module is available so we load it @@ -105,10 +105,10 @@ if ((file_exists($INC_ACTION)) && (is_readable($INC_ACTION)) && (VALIDATE_MENU_A else { // Invalid module specified or not found... - LOAD_URL(URL."/modules.php?module=index"); + LOAD_URL("modules.php?module=index"); } -if (($CONFIG['guest_menu'] == 'Y') || (!EXT_IS_ACTIVE("sql_patches", true))) +if (($_CONFIG['guest_menu'] == "Y") || (!EXT_IS_ACTIVE("sql_patches", true))) { // TDs between content and LOAD_TEMPLATE("guest_content_footer");