// @TODO Lame description
function DOUBLER_GENERATE_TABLE ($uid="0", $done='N', $ref='N', $sort="ASC") {
if (empty($cnt)) $cnt = 0;
- $add = ""; $DT_MODE = 0;
+ $add = ''; $DT_MODE = 0;
if ($uid > 0) {
// Load entries only from a single user
$add = " AND userid='".bigintval($uid)."'";
- $MODE = "member"; $COLS = "4"; $DT_MODE = "2";
+ $MODE = 'member'; $COLS = "4"; $DT_MODE = "2";
$NOT_FOUND = getMessage('DOUBLER_MEMBER_NO_ENTRIES_FOUND');
} else {
// Guest mode!
- $MODE = "guest"; $COLS = "3"; $DT_MODE = "3";
+ $MODE = 'guest'; $COLS = "3"; $DT_MODE = "3";
$NOT_FOUND = getMessage('DOUBLER_GUEST_NO_ENTRIES_FOUND');
}
- if (($done == "Y") && ($sort == "ASC")) {
+ if (($done == 'Y') && ($sort == "ASC")) {
// Already payed out points (latest payouts first)
$limit = getConfig('doubler_display_old');
} elseif ($sort == "ASC") {
if (SQL_NUMROWS($result) > 0) {
// List entries
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Rewrite userid/refid only if admin is in
if (IS_ADMIN()) {
// List no entries
$OUT = "<tr>
<td colspan=\"".$COLS."\" align=\"center\" class=\"doubler_big_row bottom2\">
- ".LOAD_TEMPLATE("admin_settings_saved", true, $NOT_FOUND)."
+ ".LOAD_TEMPLATE('admin_settings_saved', true, $NOT_FOUND)."
</td>
</tr>\n";
}
// Initialize variables
$points = 0;
- if (getConfig('doubler_own') == "Y") {
+ if (getConfig('doubler_own') == 'Y') {
// Take points from doubler's own account
$points += getConfig('doubler_points') - getConfig('doubler_used');
}
- if (getConfig('doubler_jackpot') == "Y") {
+ if (getConfig('doubler_jackpot') == 'Y') {
// Load jackpot
$result = SQL_QUERY("SELECT points FROM `{!_MYSQL_PREFIX!}_jackpot` WHERE ok='ok' LIMIT 1", __FUNCTION__, __LINE__);
list($jackpot) = SQL_FETCHROW($result);