X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-list_newsletter.php;h=201c52a67e4eb0025c1ce306a94865825fc6d744;hb=7b9f2d4c956e37c4c079c1e612ecd6a7947e7e05;hp=1e7943f7429995b10b35f9d3fcd5451f0ddef9b2;hpb=39172de4ecec2f6ddc597a5ae439e7aef79c75ed;p=mailer.git diff --git a/inc/modules/admin/what-list_newsletter.php b/inc/modules/admin/what-list_newsletter.php index 1e7943f742..201c52a67e 100644 --- a/inc/modules/admin/what-list_newsletter.php +++ b/inc/modules/admin/what-list_newsletter.php @@ -40,12 +40,11 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) { // Add description as navigation point ADD_DESCR("admin", __FILE__); -if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) -{ +if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) { // Update database... // First user's account - $result = SQL_QUERY_ESC("UPDATE `"._MYSQL_PREFIX."_user_data` SET nl_until='".time()."+nl_timespan', nl_receive='N', nl_timespan='0' WHERE userid=%s LIMIT 1", - array(bigintval($_POST['uid'])), __FILE__, __LINE__); + SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_user_data` SET nl_until=(UNIX_TIMESTAMP() + nl_timespan), nl_receive='N', nl_timespan=0 WHERE userid=%s LIMIT 1", + array(bigintval($_POST['uid'])), __FILE__, __LINE__); // Next the task system... RUN_FILTER('solve_task', bigintval($_POST['id'])); @@ -55,12 +54,11 @@ if ((!empty($_POST['uid'])) && (!empty($_POST['id']))) SEND_EMAIL(bigintval($_POST['uid']), NL_MEMBER_DONE_SUBJECT, $msg); // Output message to admin - LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NL_MEMBER_DONE); -} - else -{ - // Currently under construction! - LOAD_TEMPLATE("admin_settings_saved", false, UNDER_CONSTRUCTION); + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('ADMIN_NL_MEMBER_DONE')); +} else { + // @TODO Currently under construction! + LOAD_TEMPLATE("admin_settings_saved", false, getMessage('UNDER_CONSTRUCTION')); } + // ?>