X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-user_contct.php;h=10d53320ab39b2671f8b28981d516e304d94c74d;hb=99536b45392c43b78029af7eefa176de3cc6cd4e;hp=61fb08a7ccaf1db2769cdd935c3d1c1829876be6;hpb=db1f357f01e1ebb16a31fdcd3e432a1d19b54ae3;p=mailer.git diff --git a/inc/modules/admin/what-user_contct.php b/inc/modules/admin/what-user_contct.php index 61fb08a7cc..10d53320ab 100644 --- a/inc/modules/admin/what-user_contct.php +++ b/inc/modules/admin/what-user_contct.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 - 2011 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 * @@ -44,35 +44,35 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { addYouAreHereLink('admin', __FILE__); // Is a user id given? -if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('userid')) > 0)) { +if ((isGetRequestElementSet('userid')) && (bigintval(getRequestElement('userid')) > 0)) { // Is a user account found? - if (fetchUserData(getRequestParameter('userid'))) { + if (fetchUserData(getRequestElement('userid'))) { // Load the data $content = getUserDataArray(); // Including user id - $content['userid'] = bigintval(getRequestParameter('userid')); + $content['userid'] = bigintval(getRequestElement('userid')); // Shall we send the email? if (isFormSent()) { // Insert text - $content['text'] = trim(secureString(postRequestParameter('text'))); + $content['text'] = postRequestElement('text'); // Load email template - $message = loadEmailTemplate('member_contct', $content, getRequestParameter('userid')); + $message = loadEmailTemplate('member_contct', $content, getRequestElement('userid')); // Send contact form out - sendEmail($content['email'], '{--ADMIN_CONTACT_USER_SUBJECT--}', $message); + sendEmail($content['userid'], '{--ADMIN_CONTACT_USER_SUBJECT--}', $message); // Display message - loadTemplate('admin_settings_saved', false, '{--ADMIN_USER_CONTACTED--}'); + displayMessage('{--ADMIN_USER_CONTACTED--}'); } else { // Load contact form template loadTemplate('admin_contct_user_form', false, $content); } } else { // Not found? - loadTemplate('admin_settings_saved', false, getMaskedMessage('ADMIN_USER_ACCOUNT_404', bigintval(getRequestParameter('userid')))); + displayMessage('{%message,ADMIN_USER_ACCOUNT_404=' . bigintval(getRequestElement('userid')) . '%}'); } } else { // Display selection box