require($INC);
}
//
-function DOUBLER_GENERATE_TABLE($uid="0", $done="N", $ref="N", $sort="ASC")
+function DOUBLER_GENERATE_TABLE($uid="0", $done='N', $ref='N', $sort="ASC")
{
global $CONFIG;
if (empty($cnt)) $cnt = "0";
$NOT_FOUND = DOUBLER_GUEST_NO_ENTRIES_FOUND;
}
- if (($done == "Y") && ($sort == "ASC"))
+ if (($done == 'Y') && ($sort == "ASC"))
{
// Already payed out points (latest payouts first)
$limit = $CONFIG['doubler_display_old'];
// Initialize variables
$points = "0";
- if ($CONFIG['doubler_own'] == "Y")
+ if ($CONFIG['doubler_own'] == 'Y')
{
// Take points from doubler's own account
$points += $CONFIG['doubler_points'] - $CONFIG['doubler_used'];
}
- if ($CONFIG['doubler_jackpot'] == "Y")
+ if ($CONFIG['doubler_jackpot'] == 'Y')
{
// Load jackpot
$result = SQL_QUERY("SELECT points FROM "._MYSQL_PREFIX."_jackpot WHERE ok='ok' LIMIT 1", __FILE__, __LINE__);