X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fdoubler_functions.php;h=f906b9798a811cef776f794f63a133fec1641910;hp=a6b0d5159428682c49d90fb0d6340fda4ae84594;hb=a090e351c49fe021fb3064325694da03402332e0;hpb=f212df3d9d1d3c7f8632040130be9e7160980de6 diff --git a/inc/libs/doubler_functions.php b/inc/libs/doubler_functions.php index a6b0d51594..f906b9798a 100644 --- a/inc/libs/doubler_functions.php +++ b/inc/libs/doubler_functions.php @@ -46,19 +46,19 @@ if (!defined('__SECURITY')) { // @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") { @@ -78,7 +78,7 @@ LIMIT ".$limit, __FUNCTION__, __LINE__); 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()) { @@ -107,7 +107,7 @@ LIMIT ".$limit, __FUNCTION__, __LINE__); // List no entries $OUT = " - ".LOAD_TEMPLATE("admin_settings_saved", true, $NOT_FOUND)." + ".LOAD_TEMPLATE('admin_settings_saved', true, $NOT_FOUND)." \n"; } @@ -121,12 +121,12 @@ function DOUBLER_GET_TOTAL_POINTS_LEFT() { // 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);