' . displayMessage($message, TRUE) . ' '; } // Return template return loadTemplate($mode . '_doubler_list', TRUE, $OUT); } // Get total points left in doubler pot // @TODO This could be rewritten to a filter function getDoublerTotalPointsLeft() { // Initialize variables $points = '0'; if (getConfig('doubler_own') == 'Y') { // Take points from doubler's own account $points += getDoublerPoints() - getConfig('doubler_used'); } // END - if if ((getConfig('doubler_jackpot') == 'Y') && (isExtensionActive('jackpot'))) { // Get+add jackpot points $points += getJackpotPoints(); } // END - if if (isValidId(getDoublerUserid())) { // Get user's points $points += getTotalPoints(getDoublerUserid()); } // 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 () { // Is there 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 () { // Is there 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 () { // Is there 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 () { // Is there 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 () { // Is there 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 () { // Is there 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 () { // Is there 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 () { // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_charge'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // "Getter" for doubler_max_sent function getDoublerMaxSent () { // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_max_sent'); } // END - if // Return cache return $GLOBALS[__FUNCTION__]; } // [EOF] ?>