X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-html_mail.php;h=0f0b21de63cafcf274442142e7b9afbb61b0d531;hb=6d08952d672c5a5de7d8522f894a5665599a2a4a;hp=bf9e6daa5220b0f1132372ef8a82c1a87532dd13;hpb=e8ca54fe91872ab95a6ffdc4f1268bf18889021d;p=mailer.git diff --git a/inc/modules/member/what-html_mail.php b/inc/modules/member/what-html_mail.php index bf9e6daa52..0f0b21de63 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, 2010 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 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(); } @@ -46,16 +46,20 @@ if (!defined('__SECURITY')) { addYouAreHereLink('member', __FILE__); if ((!isExtensionActive('html_mail')) && (!isAdmin())) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('html_mail')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=html_mail%}'); return; } // END - if // 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__); - loadTemplate('admin_settings_saved', false, '{--MEMBER_SETTINGS_SAVED--}'); + 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 $content['html_y'] = ''; @@ -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]