]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / doubler_functions.php
index a6b0d5159428682c49d90fb0d6340fda4ae84594..f906b9798a811cef776f794f63a133fec1641910 100644 (file)
@@ -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;
 // @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)."'";
        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!
                $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');
        }
 
                $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") {
                // 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
 
        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()) {
                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 = "<tr>
   <td colspan=\"".$COLS."\" align=\"center\" class=\"doubler_big_row bottom2\">
                // 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";
        }
   </td>
 </tr>\n";
        }
@@ -121,12 +121,12 @@ function DOUBLER_GET_TOTAL_POINTS_LEFT() {
        // Initialize variables
        $points = 0;
 
        // 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');
        }
 
                // 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);
                // Load jackpot
                $result = SQL_QUERY("SELECT points FROM `{!_MYSQL_PREFIX!}_jackpot` WHERE ok='ok' LIMIT 1", __FUNCTION__, __LINE__);
                list($jackpot) = SQL_FETCHROW($result);