X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-user_contct.php;h=6e9e43f4cd66dce2d3fc92b4044af352300bd84d;hp=51b3000469eb3429e99134e83efa97ed8add7fd2;hb=330dbb3e2b34450cd1665497506455e195a0a166;hpb=039203d5428c9c6a3bed61fb3a9a16958c6fd44c diff --git a/inc/modules/admin/what-user_contct.php b/inc/modules/admin/what-user_contct.php index 51b3000469..6e9e43f4cd 100644 --- a/inc/modules/admin/what-user_contct.php +++ b/inc/modules/admin/what-user_contct.php @@ -14,10 +14,9 @@ * $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 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -42,34 +41,38 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); // Is a user id given? -if ((isGetRequestElementSet('userid')) && (bigintval(getRequestElement('userid')) > 0)) { +if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('userid')) > 0)) { // Is a user account found? - if (fetchUserData(getRequestElement('userid'))) { + if (fetchUserData(getRequestParameter('userid'))) { // Load the data $content = getUserDataArray(); // Including user id - $content['userid'] = bigintval(getRequestElement('userid')); + $content['userid'] = bigintval(getRequestParameter('userid')); // Shall we send the email? if (isFormSent()) { // Insert text - $content['text'] = trim(secureString(postRequestElement('text'))); + $content['text'] = postRequestParameter('text'); + + // Load email template + $message = loadEmailTemplate('member_contct', $content, getRequestParameter('userid')); // Send contact form out - $message = loadEmailTemplate('member_contct', $content); - sendEmail($content['email'], getMessage('ADMIN_CONTACT_USER_SUBJECT'), $message); - loadTemplate('admin_settings_saved', false, getMessage('ADMIN_USER_CONTACTED')); + sendEmail($content['email'], '{--ADMIN_CONTACT_USER_SUBJECT--}', $message); + + // Display message + 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('USER_ACCOUNT_404', bigintval(getRequestElement('userid')))); + displayMessage('{%message,ADMIN_USER_ACCOUNT_404=' . bigintval(getRequestParameter('userid')) . '%}'); } } else { // Display selection box