]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
More improvements:
[mailer.git] / inc / libs / bonus_functions.php
index 7b3e26ddd3fd93455c816111713f6ae67959116d..befed20d39f3ca9c149ce41e8452636fc2067e68 100644 (file)
@@ -496,6 +496,18 @@ function getBonusIncludeOwn () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether bonus_include_own is set to 'Y'
+function isBonusIncludeOwnEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getBonusIncludeOwn() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for bonus_disable_notify
 function getBonusDisableNotify () {
        // Is there cache?
@@ -532,6 +544,18 @@ function getIncludeBonusClick () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether include_bonus_click is set to 'Y'
+function isIncludeBonusClickEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getIncludeBonusClick() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for include_bonus_login
 function getIncludeBonusLogin () {
        // Is there cache?
@@ -544,6 +568,18 @@ function getIncludeBonusLogin () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether include_bonus_login is set to 'Y'
+function isIncludeBonusLoginEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getIncludeBonusLogin() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for include_bonus_order
 function getIncludeBonusOrder () {
        // Is there cache?
@@ -556,6 +592,18 @@ function getIncludeBonusOrder () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether include_bonus_order is set to 'Y'
+function isIncludeBonusOrderEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getIncludeBonusOrder() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for include_bonus_Ref
 function getIncludeBonusRef () {
        // Is there cache?
@@ -568,6 +616,18 @@ function getIncludeBonusRef () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether include_bonus_ref is set to 'Y'
+function isIncludeBonusRefEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getIncludeBonusRef() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // Getter for include_bonus_stats
 function getIncludeBonusStats () {
        // Is there cache?
@@ -580,5 +640,17 @@ function getIncludeBonusStats () {
        return $GLOBALS[__FUNCTION__];
 }
 
+// Checks whether include_bonus_stats is set to 'Y'
+function isIncludeBonusStatsEnabled () {
+       // Is there cache?
+       if (!isset($GLOBALS[__FUNCTION__])) {
+               // Determine it
+               $GLOBALS[__FUNCTION__] = (getIncludeBonusStats() == 'Y');
+       } // END - if
+
+       // Return cache
+       return $GLOBALS[__FUNCTION__];
+}
+
 // [EOF]
 ?>