]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-admins_contct.php
Bad things are now 'classified' as bad (CSS class 'bad' is being used instead of...
[mailer.git] / inc / modules / admin / what-admins_contct.php
index a84cdcdd4c780f723dd11ddd6f7f2399ccbc1159..07393bc2012eef7c7cece53f8f1225d8f9732cbf 100644 (file)
@@ -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]