]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-mydata.php
More fixes, missing js.php added
[mailer.git] / inc / modules / member / what-mydata.php
index 37015ef26a2e695cd7923a0a8cba3a40dacb97a9..848b54f136ea8cc18b47d8bb6f7bf014ba6fe39f 100644 (file)
@@ -201,25 +201,15 @@ case "save": // Save entered data
        $DATA[3] = $DATA[2] + $_CONFIG['profile_lock'];
 
        // How far is last change on his profile away from now?
-       if (($DATA[3] > time()) && (!IS_ADMIN()) && ($_CONFIG['profile_lock'] > 0))
-       {
+       if (($DATA[3] > time()) && (!IS_ADMIN()) && ($_CONFIG['profile_lock'] > 0)) {
                $DATA[3] = MAKE_DATETIME($DATA[3] + $_CONFIG['profile_lock'], "0");
                // You cannot change your account
                LOAD_TEMPLATE("member_mydata_locked");
-       }
-        elseif (!VALIDATE_EMAIL($_POST['addy']))
-       {
+       } elseif (!VALIDATE_EMAIL($_POST['addy'])) {
                // Invalid email address!
                LOAD_TEMPLATE("admin_settings_saved", false, INVALID_EMAIL_ADDRESS_ENTERED);
-       }
-        else
-       {
-               // Secure every submitted variable
-               foreach ($_POST as $key => $value)
-               {
-                       $_POST[$key] = addslashes($value);
-               }
-
+       } else {
+               // Generate hash
                $hash = generateHash($_POST['pass1'], substr($DATA[1], 0, -40));
                if ((($hash == $DATA[1]) || ($_POST['pass1'] == $_POST['pass2'])) && (!empty($_POST['pass1'])))
                {