]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
More usage of EL
[mailer.git] / inc / wrapper-functions.php
index 56620b901933277a19059475f389d7a1043d05f5..036a89b0046f9efa308bd4f9142d422816e752b6 100644 (file)
@@ -1514,6 +1514,18 @@ function getMtWord () {
        return $GLOBALS['mt_word'];
 }
 
+// "Getter" for mt_word2
+function getMtWord2 () {
+       // Do we have cache?
+       if (!isset($GLOBALS['mt_word2'])) {
+               // Determine it
+               $GLOBALS['mt_word2'] = getConfig('mt_word2');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS['mt_word2'];
+}
+
 // "Getter" for main_title
 function getMainTitle () {
        // Do we have cache?
@@ -1790,6 +1802,18 @@ function getOnlineTimeout () {
        return $GLOBALS['online_timeout'];
 }
 
+// "Getter" for index_home
+function getIndexHome () {
+       // Do we have cache?
+       if (!isset($GLOBALS['index_home'])) {
+               // Determine it
+               $GLOBALS['index_home'] = getConfig('index_home');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS['index_home'];
+}
+
 // Checks wether proxy configuration is used
 function isProxyUsed () {
        // Do we have cache?
@@ -1838,5 +1862,17 @@ function getTotalPoints ($userid) {
        return $GLOBALS['total_points'][$userid];
 }
 
+// Wrapper to check if url_blacklist is enabled
+function isUrlBlacklistEnabled () {
+       // Do we have cache?
+       if (!isset($GLOBALS['is_url_blacklist_enabled'])) {
+               // Determine it
+               $GLOBALS['is_url_blacklist_enabled'] = (getConfig('url_blacklist') == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS['is_url_blacklist_enabled'];
+}
+
 // [EOF]
 ?>