X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_unconfirmed.php;h=02479af987dbec95d27837c48284c8d0b90cac3c;hp=5c137d098cd5c03741ce1ac4aeb2fba42755cd98;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hpb=8fad776382e63b3f73f8dbe289f229d79cfc2c22 diff --git a/inc/modules/admin/what-list_unconfirmed.php b/inc/modules/admin/what-list_unconfirmed.php index 5c137d098c..02479af987 100644 --- a/inc/modules/admin/what-list_unconfirmed.php +++ b/inc/modules/admin/what-list_unconfirmed.php @@ -49,7 +49,7 @@ if (!isExtensionActive('mailid')) { } // END - if // Don't load the admin_list_unconfirmed template by default -$listed = false; +$listed = FALSE; // Init query $sql = ''; @@ -77,15 +77,22 @@ LIMIT 1", $ID = -1; // Load admin_list_unconfirmed template - $listed = true; + $listed = TRUE; $DATA = getRequestElement('mid'); $mailType = 'mailid'; } elseif ((isGetRequestElementSet('bid')) && (isExtensionActive('bonus'))) { // @TODO This constant might be unused? define('__LIST_UNCON_TITLE', '{--ADMIN_LIST_UNCONFIRMED_BONUS_LINKS--}'); // SQL query for mail data (both ids are required for compatiblity to above normal mail + // @TODO `id` has been used two times??? $sql = sprintf("SELECT - `id`,`id` AS `sender`,`subject`,`text`,`url`,`timestamp`,`mails_sent` AS `max_rec` + `id`, + `id` AS `sender`, + `subject`, + `text`, + `url`, + `timestamp`, + `mails_sent` AS `max_rec` FROM `{?_MYSQL_PREFIX?}_bonus` WHERE @@ -100,7 +107,7 @@ LIMIT 1", $ID = getRequestElement('bid'); // Load admin_list_unconfirmed template - $listed = true; + $listed = TRUE; $DATA = $ID; $mailType = 'bonusid'; } else { @@ -109,7 +116,7 @@ LIMIT 1", } // Shall I display links or not? -if (($listed === true) && (!empty($sql))) { +if (($listed === TRUE) && (!empty($sql))) { // Load mail data $result_master = SQL_QUERY($sql, __FILE__, __LINE__); @@ -172,18 +179,18 @@ LIMIT %s", ); // Load row template and switch colors - $OUT .= loadTemplate('admin_list_unconfirmed_row', true, $row); + $OUT .= loadTemplate('admin_list_unconfirmed_row', TRUE, $row); } else { // No user data found - $OUT .= loadTemplate('admin_list_unconfirmed_row_404', true, $row); + $OUT .= loadTemplate('admin_list_unconfirmed_row_404', TRUE, $row); } } // END - while // Render it in our new listing - $OUT = loadTemplate('admin_list_unconfirmed_list', true, $OUT); + $OUT = loadTemplate('admin_list_unconfirmed_list', TRUE, $OUT); } else { // All links are confirmed... strange, you shall normally not get a link to this place in this scenario... hmmm. - $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', true); + $OUT = displayMessage('{--ADMIN_UNCONFIRMED_NO_LINK_LEFT--}', TRUE); } // Prepare content @@ -196,13 +203,13 @@ LIMIT %s", SQL_FREERESULT($result); // Load final template - loadTemplate('admin_list_unconfirmed', false, $content); + loadTemplate('admin_list_unconfirmed', FALSE, $content); } elseif (getRequestElement('mid') > 0) { // Data in pool or in user_stats not found, so let's find out where data is missing - if (countSumTotalData(bigintval($ID), 'pool', 'id', 'id', true) == 1) { + if (countSumTotalData(bigintval($ID), 'pool', 'id', 'id', TRUE) == 1) { // pool table displayMessage('{%message,ADMIN_UNCONFIRMED_POOL_MISSING=' . $ID . '%}'); - } elseif (countSumTotalData(bigintval($ID), 'user_stats', 'id', 'pool_id', true) == 1) { + } elseif (countSumTotalData(bigintval($ID), 'user_stats', 'id', 'pool_id', TRUE) == 1) { // user_stats table displayMessage('{%message,ADMIN_UNCONFIRMED_STATS_MISSING=' . $ID . '%}'); } else {