]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-user_contct.php
Fixes loading of network type config
[mailer.git] / inc / modules / admin / what-user_contct.php
index 36c68abe8c0f01e7d669f83025ac137366e975e0..10d53320ab39b2671f8b28981d516e304d94c74d 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 *
@@ -44,25 +44,25 @@ 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'] = 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
                        displayMessage('{--ADMIN_USER_CONTACTED--}');
@@ -72,7 +72,7 @@ if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('user
                }
        } else {
                // Not found?
-               displayMessage(getMaskedMessage('ADMIN_USER_ACCOUNT_404', bigintval(getRequestParameter('userid'))));
+               displayMessage('{%message,ADMIN_USER_ACCOUNT_404=' . bigintval(getRequestElement('userid')) . '%}');
        }
 } else {
        // Display selection box