X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fdoubler_functions.php;h=154c2afe982be6a58ac397b33b931e1935339f11;hb=985561270461045c64719266ca6b3a795f6cd76a;hp=eb3739887738d6ba5519def93e0950034a2e16b2;hpb=2e715eb7f3f8ca8d259aacb4cbbddde7d9d18e01;p=mailer.git diff --git a/inc/libs/doubler_functions.php b/inc/libs/doubler_functions.php index eb37398877..154c2afe98 100644 --- a/inc/libs/doubler_functions.php +++ b/inc/libs/doubler_functions.php @@ -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", @@ -112,7 +114,7 @@ LIMIT %s", // List no entries $OUT = ' - ' . loadTemplate('admin_settings_saved', true, $message) . ' + ' . displayMessage($message, true) . ' '; } @@ -148,9 +150,9 @@ function getDoublerTotalPointsLeft() { return $points; } -// ---------------------------------------------------------------------------- +//----------------------------------------------------------------------------- // Wrapper functions for ext-doubler -// ---------------------------------------------------------------------------- +//----------------------------------------------------------------------------- // "Getter" for doubler_userid function getDoublerUserid () {