X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-html_mail.php;h=9ebc05feb02a7251adac03453979269d780d5e89;hp=aec4b2c5f91c8bd5a1d8cb24941df177ca9de9bf;hb=49acdb7a7adbcf25a8e8683b5581bfcec72b23bd;hpb=c6017cf76200e2a5e68bd1984fa2d31f0e3be9d8 diff --git a/inc/modules/member/what-html_mail.php b/inc/modules/member/what-html_mail.php index aec4b2c5f9..9ebc05feb0 100644 --- a/inc/modules/member/what-html_mail.php +++ b/inc/modules/member/what-html_mail.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2015 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 * @@ -37,7 +37,7 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isMember()) { redirectToIndexMemberOnlyModule(); } @@ -53,8 +53,12 @@ if ((!isExtensionActive('html_mail')) && (!isAdmin())) { // Class was found and loaded if (isFormSent()) { // Save settings - SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1", - array(postRequestParameter('html'), getMemberId()), __FILE__, __LINE__); + sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `html`='%s' WHERE `userid`=%s LIMIT 1", + array( + postRequestElement('html'), + getMemberId() + ), __FILE__, __LINE__ + ); displayMessage('{--MEMBER_SETTINGS_SAVED--}'); } else { // Prepare it @@ -63,7 +67,7 @@ if (isFormSent()) { $content['html_' . strtolower(getUserData('html'))] = ' checked="checked"'; // Load main template - loadTemplate('member_html_mail_settings', false, $content); + loadTemplate('member_html_mail_settings', FALSE, $content); } // [EOF]