]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
More usage of EL
[mailer.git] / inc / wrapper-functions.php
index 934e42f5f7cb5f989a7a0e6494a9bb4320d82c17..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?
@@ -1850,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]
 ?>