]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-user_contct.php
More getModule() used, some SQL rewrites, constant __MODULE rewritten
[mailer.git] / inc / modules / admin / what-user_contct.php
index 14c018a7c138d6552948a670f789a2da071646eb..7e8a56f70d0dde64014f9cbde2d1d62c20404342 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -60,13 +60,13 @@ if ((REQUEST_ISSET_GET('uid')) && (bigintval(REQUEST_GET('uid')) > 0)) {
                $content['uid'] = bigintval(REQUEST_GET('uid'));
 
                // Shall we send the email?
-               if (IS_FORM_SENT()) {
+               if (isFormSent()) {
                        // Insert text
                        $content['text'] = trim(strip_tags(REQUEST_POST('text')));
 
                        // Send contact form out
                        $msg = LOAD_EMAIL_TEMPLATE("member_contct", $content);
-                       SEND_EMAIL($content['email'], getMessage('ADMIN_CONTACT_USER_SUBJECT'), $msg);
+                       sendEmail($content['email'], getMessage('ADMIN_CONTACT_USER_SUBJECT'), $msg);
                        LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_USER_CONTACTED'));
                } else {
                        // Load contact form template
@@ -74,7 +74,7 @@ if ((REQUEST_ISSET_GET('uid')) && (bigintval(REQUEST_GET('uid')) > 0)) {
                }
        } else {
                // Not found?
-               LOAD_TEMPLATE('admin_settings_saved', false, sprintf(USER_ACCOUNT_404, bigintval(REQUEST_GET('uid'))));
+               LOAD_TEMPLATE('admin_settings_saved', false, sprintf(getMessage('USER_ACCOUNT_404'), bigintval(REQUEST_GET('uid'))));
        }
 
        // Free result