]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/doubler_functions.php
Language id renamed, some network query amounts added
[mailer.git] / inc / libs / doubler_functions.php
index fab47f84f7b6a55e29e5a0576fbfab539e35762e..154c2afe982be6a58ac397b33b931e1935339f11 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
 
 // Generates a HTML table based on given data
 // @TODO Lame description
-function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = 'ASC') {
+function generateDoublerTable ($userid = NULL, $done = 'N', $ref = 'N', $sort = 'ASC') {
        $add = ''; $DT_MODE = '0';
        if (isValidUserId($userid)) {
                // Load entries only from a single user
@@ -68,11 +68,13 @@ function generateDoublerTable ($userid = '0', $done = 'N', $ref = 'N', $sort = '
 
        // List entries
        $result = SQL_QUERY_ESC("SELECT
-       `userid`, `refid`, `points`, `timemark`
+       `userid`,`refid`,`points`,`timemark`
 FROM
        `{?_MYSQL_PREFIX?}_doubler`
 WHERE
-       `completed`='%s' AND `is_ref`='%s'" . $add . "
+       `completed`='%s' AND
+       `is_ref`='%s'
+       " . $add . "
 ORDER BY
        `timemark` %s
 LIMIT %s",
@@ -148,9 +150,9 @@ function getDoublerTotalPointsLeft() {
        return $points;
 }
 
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 //                      Wrapper functions for ext-doubler
-// ----------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 
 // "Getter" for doubler_userid
 function getDoublerUserid () {