]> git.mxchange.org Git - mailer.git/blobdiff - inc/inc-functions.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / inc-functions.php
index ed3dba2a7cf42d9f57ebc3b658d60889be1a7c5f..19570ae2074d8bdd0e6a56364d7b6ee876133b80 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // Check if our config file is writeable or not
 function isIncludeWriteable ($inc) {
        // Generate FQFN
-       $FQFN = sprintf("%sinc/%s.php", constant('PATH'), $inc);
+       $FQFN = sprintf("%sinc/%s.php", getConfig('PATH'), $inc);
 
        // Abort by simple test
        if ((isFileReadable($FQFN)) && (!is_writeable($FQFN))) {
@@ -101,5 +101,12 @@ function REMOVE_INC_FROM_POOL ($INC) {
        } // END - if
 }
 
+// Load the whole include pool
+function LOAD_INC_POOL () {
+       foreach (GET_INC_POOL() as $inc) {
+               loadIncludeOnce($inc);
+       } // END - foreach
+}
+
 // [EOF]
 ?>