X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fdoubler_functions.php;h=c29c36b3c47c02972eadd0be7fb802a6c431b6b2;hb=e937b6540b932d537f72e827de76dd5be4aefe48;hp=e9df787f818f461fc47613529df111da2976fa53;hpb=22ba710434fb8b31e8961976ee4a31ae28b4509d;p=mailer.git diff --git a/inc/libs/doubler_functions.php b/inc/libs/doubler_functions.php index e9df787f81..c29c36b3c4 100644 --- a/inc/libs/doubler_functions.php +++ b/inc/libs/doubler_functions.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * 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 () { @@ -166,7 +168,7 @@ function getDoublerUserid () { // "Getter" for doubler_timeout function getDoublerTimeout () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_timeout'); @@ -178,7 +180,7 @@ function getDoublerTimeout () { // "Getter" for doubler_send_mode function getDoublerSendMode () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_send_mode'); @@ -190,7 +192,7 @@ function getDoublerSendMode () { // "Getter" for doubler_ref function getDoublerRef () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_ref'); @@ -202,7 +204,7 @@ function getDoublerRef () { // "Getter" for doubler_points function getDoublerPoints () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_points'); @@ -214,7 +216,7 @@ function getDoublerPoints () { // "Getter" for doubler_min function getDoublerMin () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_min'); @@ -226,7 +228,7 @@ function getDoublerMin () { // "Getter" for doubler_max function getDoublerMax () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_max'); @@ -238,7 +240,7 @@ function getDoublerMax () { // "Getter" for doubler_counter function getDoublerCounter () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_counter'); @@ -250,7 +252,7 @@ function getDoublerCounter () { // "Getter" for doubler_charge function getDoublerCharge () { - // Do we have cache? + // Is there cache? if (!isset($GLOBALS[__FUNCTION__])) { // Determine it $GLOBALS[__FUNCTION__] = getConfig('doubler_charge');