From: Roland Häder Date: Mon, 5 Jul 2010 14:38:37 +0000 (+0000) Subject: Moved surfbar-related functions, unnessary array element removed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=46aeda7c31aefbe313f5c4bcf7cdbef4f1826fcc;p=mailer.git Moved surfbar-related functions, unnessary array element removed --- diff --git a/inc/libs/surfbar_functions.php b/inc/libs/surfbar_functions.php index 9feb142f5a..e588ce6508 100644 --- a/inc/libs/surfbar_functions.php +++ b/inc/libs/surfbar_functions.php @@ -1717,6 +1717,58 @@ LIMIT 1", return $nextId; } +// ---------------------------------------------------------------------------- +// Wrapper function +// ---------------------------------------------------------------------------- + +// "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 surfbar_max_order +function getSurfbarMaxOrder () { + // Do we have cache? + if (!isset($GLOBALS['surfbar_max_order'])) { + // Determine it + $GLOBALS['surfbar_max_order'] = getConfig('surfbar_max_order'); + } // END - if + + // Return cache + return $GLOBALS['surfbar_max_order']; +} + // ----------------------------------------------------------------------------- // PLEASE DO NOT ADD ANY OTHER FUNCTIONS BELOW THIS LINE IF THEY DON'T "WRAP" // THE $GLOBALS['surfbar_cache'] ARRAY! diff --git a/inc/modules/admin/what-usr_online.php b/inc/modules/admin/what-usr_online.php index 22c4a00e44..a572112347 100644 --- a/inc/modules/admin/what-usr_online.php +++ b/inc/modules/admin/what-usr_online.php @@ -86,7 +86,6 @@ if (isExtensionActive('online')) { // Remember rows and fancy time in array $content['rows'] = $OUT; - $content['online_timeout'] = '{--ONLINE_TIMEOUT_IS--}'; // Load footer template loadTemplate('admin_list_online', false, $content); diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index a8277d6255..e47587883e 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1742,42 +1742,6 @@ function getRefPayout () { 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? diff --git a/templates/de/html/admin/admin_list_online.tpl b/templates/de/html/admin/admin_list_online.tpl index 93171d0b3d..e1007e4bee 100644 --- a/templates/de/html/admin/admin_list_online.tpl +++ b/templates/de/html/admin/admin_list_online.tpl @@ -17,7 +17,9 @@ $content[rows] - $content[online_timeout] + + {--ONLINE_TIMEOUT_IS--} +