]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-user_contct.php
Way more usage of EL code:
[mailer.git] / inc / modules / admin / what-user_contct.php
index d510c511288d2368cdbae1a7625b00d00441a0fb..6e9e43f4cd66dce2d3fc92b4044af352300bd84d 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * 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 *
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
 // Is a user id given?
 if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('userid')) > 0)) {
@@ -56,7 +56,7 @@ if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('user
                // Shall we send the email?
                if (isFormSent()) {
                        // Insert text
-                       $content['text'] = trim(secureString(postRequestParameter('text')));
+                       $content['text'] = postRequestParameter('text');
 
                        // Load email template
                        $message = loadEmailTemplate('member_contct', $content, getRequestParameter('userid'));
@@ -65,14 +65,14 @@ if ((isGetRequestParameterSet('userid')) && (bigintval(getRequestParameter('user
                        sendEmail($content['email'], '{--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(getRequestParameter('userid')) . '%}');
        }
 } else {
        // Display selection box