X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fload_extensions.php;h=f77b7c7242f2b590674393d20b435db4c8eea32d;hp=c033051562e8d1ea0cdbf7136c0cb7143599f676;hb=397eb5dee2611cfaa1ff494d73e6785b88109cd6;hpb=5bdeaf8b452206598b6c6cd4f941145b11a0eccc diff --git a/inc/load_extensions.php b/inc/load_extensions.php index c033051562..f77b7c7242 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -95,7 +95,7 @@ if ($cacheMode == "load") { $cacheInstance->destroyCacheFile(); // Retry it - require(__FILE__); + LOAD_INC(__FILE__); return; } // END - if @@ -163,7 +163,7 @@ if ($cacheMode == "load") { INIT_FILTER_SYSTEM(); // Load more cache files (like admins) - require_once(PATH."inc/load_cache.php"); + LOAD_INC_ONCE("inc/load_cache.php"); // Remove array unset($EXT_POOL); @@ -192,7 +192,7 @@ $DEL = array(); // At least one found? if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") && ($CSS != "-1")) || ($cacheMode == "no"))) { // Load session management - require_once(PATH."inc/session.php"); + LOAD_INC_ONCE("inc/session.php"); // Extensions are registered so we load them while ($content = SQL_FETCHARRAY($res_ext_crt)) { @@ -203,7 +203,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") } // END - if // Load extensions - $file1 = sprintf("%sinc/extensions/ext-%s.php", PATH, $content['ext_name']); + $file1 = sprintf("%sinc/extensions/ext-%s.php", constant('PATH'), $content['ext_name']); // Does the extension file exists? if (FILE_READABLE($file1)) { @@ -225,7 +225,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") // CSS file handling: if ((!isset($content['ext_css'])) || ($content['ext_css'] == "Y")) { // Create FQFN for the CSS file - $CSS_FILE = sprintf("%stheme/%s/css/%s.css", PATH, GET_CURR_THEME(), $content['ext_name']); + $CSS_FILE = sprintf("%stheme/%s/css/%s.css", constant('PATH'), GET_CURR_THEME(), $content['ext_name']); // Is the file there? if (FILE_READABLE($CSS_FILE)) { @@ -260,7 +260,7 @@ if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") $cacheInstance->finalize(); // Load more cache files (like admins) - require_once(PATH."inc/load_cache.php"); + LOAD_INC_ONCE("inc/load_cache.php"); } // END - if // Free memory