X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-admins_contct.php;h=07393bc2012eef7c7cece53f8f1225d8f9732cbf;hp=a84cdcdd4c780f723dd11ddd6f7f2399ccbc1159;hb=e3934352dffa6eb9da59a137ae1a9414e5b4d80b;hpb=adb05fb6876bdca84e73f4ea04998c1400e2cfb7 diff --git a/inc/modules/admin/what-admins_contct.php b/inc/modules/admin/what-admins_contct.php index a84cdcdd4c..07393bc201 100644 --- a/inc/modules/admin/what-admins_contct.php +++ b/inc/modules/admin/what-admins_contct.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -43,26 +43,26 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if ((isFormSent()) && (isGetRequestParameterSet('admin'))) { +if ((isFormSent()) && (isGetRequestElementSet('id'))) { // Send mail or message // Load admin's email address - $email = getAdminEmail(bigintval(getRequestParameter('admin'))); + $email = getAdminEmail(bigintval(getRequestElement('id'))); // Load email template and send the mail to the admin - $message = loadEmailTemplate('admins_mail_contct_admin', postRequestParameter('text'), 0); + $message = loadEmailTemplate('admins_mail_contct_admin', postRequestElement('text'), 0); sendEmail($email, '{--ADMIN_ADMINS_MESSAGE_FROM_ADMIN--}', $message); // Mail / message dropped displayMessage('{--ADMIN_ADMINS_ADMIN_CONTACTED--}'); -} elseif (isGetRequestParameterSet('admin')) { +} elseif (isGetRequestElementSet('id')) { // Load contact form template - $content['admin'] = getRequestParameter('admin'); + $content['id'] = getRequestElement('id'); // Load main form loadTemplate('admin_admins_contct_form', false, $content); } else { // Please select an admin! - displayMessage('{--ADMIN_ADMINS_SELECT_ADMIN--}'); + addAdminSelectionBox(); } // [EOF]