' . loadTemplate('admin_settings_saved', true, $message) . ' '; } // 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; } // "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']; } // [EOF] ?>