X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-html_mail.php;h=388104a2e90b883545adbee45da9ae5a690110cf;hp=3b9cb6fe3d00ea9d9247c9b4eed7169e3e85281b;hb=61621983cc6d7195fcc7eab29b5f6080ff283b34;hpb=04b69ac9f33369cbf654396c4a42cb1fff710ff4 diff --git a/inc/modules/member/what-html_mail.php b/inc/modules/member/what-html_mail.php index 3b9cb6fe3d..388104a2e9 100644 --- a/inc/modules/member/what-html_mail.php +++ b/inc/modules/member/what-html_mail.php @@ -14,12 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * 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 - 2016 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 * @@ -39,25 +37,29 @@ // Some security stuff... if (!defined('__SECURITY')) { - die(); + exit(); } elseif (!isMember()) { redirectToIndexMemberOnlyModule(); } // Add description as navigation point -addMenuDescription('member', __FILE__); +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'] = ''; @@ -65,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]