' . displayMessage($message, true) . ' '; } // Return template return loadTemplate($mode . '_doubler_list', true, $OUT); } // Get total points left in doubler pot function getDoublerTotalPointsLeft() { // Initialize variables $points = '0'; if (getConfig('doubler_own') == 'Y') { // Take points from doubler's own account $points += getConfig('doubler_points') - getConfig('doubler_used'); } // END - if if ((getConfig('doubler_jackpot') == 'Y') && (isExtensionActive('jackpot'))) { // Load jackpot $jackpot = getJackpotPoints(); if (!empty($jackpot)) $points += $jackpot; } // END - if if (isValidUserId(getConfig('doubler_userid'))) { // Get user's points $user = getTotalPoints(getConfig('doubler_userid')); $points += $user; } // END - if // Return value return $points; } //----------------------------------------------------------------------------- // Wrapper functions for ext-doubler //----------------------------------------------------------------------------- // "Getter" for doubler_userid function getDoublerUserid () { // Is it cached? if (!isset($GLOBALS['doubler_userid'])) { // Get it $GLOBALS['doubler_userid'] = getConfig('doubler_userid'); } // END - if // Return cache return $GLOBALS['doubler_userid']; } // "Getter" for doubler_timeout function getDoublerTimeout () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_timeout'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_send_mode function getDoublerSendMode () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_send_mode'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_ref function getDoublerRef () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_ref'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_points function getDoublerPoints () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_points'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_min function getDoublerMin () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_min'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_max function getDoublerMax () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_max'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_counter function getDoublerCounter () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_counter'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_charge function getDoublerCharge () { // Do we have cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_charge'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // [EOF] ?>