X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=a8277d6255d0d1eee25d24acd807062ec4461fd2;hp=770c266ebafeadc11b491abe1ff4fdddf9c16410;hb=c479909b28b58c8d3ade7b46c1343d07d77b3f8d;hpb=0f9bc55be42f9851cc87a06f3971c853a83425a7 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 770c266eba..a8277d6255 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1730,6 +1730,66 @@ function getPointsRef () { return $GLOBALS['points_ref']; } +// "Getter" for ref_payout +function getRefPayout () { + // Do we have cache? + if (!isset($GLOBALS['ref_payout'])) { + // Determine it + $GLOBALS['ref_payout'] = getConfig('ref_payout'); + } // END - if + + // Return cache + return $GLOBALS['ref_payout']; +} + +// "Getter" for surfbar_dynamic_percent +function getSurfbarDynamicPercent () { + // Do we have cache? + if (!isset($GLOBALS['surfbar_dynamic_percent'])) { + // Determine it + $GLOBALS['surfbar_dynamic_percent'] = getConfig('surfbar_dynamic_percent'); + } // END - if + + // Return cache + return $GLOBALS['surfbar_dynamic_percent']; +} + +// "Getter" for surfbar_static_reward +function getSurfbarStaticReward () { + // Do we have cache? + if (!isset($GLOBALS['surfbar_static_reward'])) { + // Determine it + $GLOBALS['surfbar_static_reward'] = getConfig('surfbar_static_reward'); + } // END - if + + // Return cache + return $GLOBALS['surfbar_static_reward']; +} + +// "Getter" for surfbar_static_time +function getSurfbarStaticTime () { + // Do we have cache? + if (!isset($GLOBALS['surfbar_static_time'])) { + // Determine it + $GLOBALS['surfbar_static_time'] = getConfig('surfbar_static_time'); + } // END - if + + // Return cache + return $GLOBALS['surfbar_static_time']; +} + +// "Getter" for online_timeout +function getOnlineTimeout () { + // Do we have cache? + if (!isset($GLOBALS['online_timeout'])) { + // Determine it + $GLOBALS['online_timeout'] = getConfig('online_timeout'); + } // END - if + + // Return cache + return $GLOBALS['online_timeout']; +} + // Checks wether proxy configuration is used function isProxyUsed () { // Do we have cache?