diff --git a/admin/login.php b/admin/login.php index b89fa46..28b484b 100644 --- a/admin/login.php +++ b/admin/login.php @@ -86,9 +86,12 @@ (!isset($fname) || $fname == "") || (!isset($lname) || $lname == "") || (!isset($password) || $password == "") || - (!filter_var($email, FILTER_VALIDATE_EMAIL))) { + (!filter_var($email, FILTER_VALIDATE_EMAIL)) || + (user_sett('signup') == false)) { if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $_ERROR[] = "Please enter a valid email.
"; + } elseif (user_sett('signup') == false) { + $_ERROR[] = "User sign up has been disabled the the site adminsitrator, please try again later.
"; } else { $_ERROR[] = "Please complete the whole form.
"; } @@ -147,6 +150,12 @@

Create an account

+"; + print_errors(); +} else { +?>
+

"; - } elseif (!in_array($form, array('shortcode_type', 'site_url', 'site_title', 'site_slogan', 'api_limit'))) { + } elseif (!in_array($form, array('shortcode_type', 'site_url', 'site_title', 'site_slogan', 'api_limit', 'pr_email', 'user_sett'))) { $_ERROR[] = "The option you tried to edit is unknown.
"; } elseif ($data == $options[$form]) { $_ERROR[] = "No changes were made
"; } elseif ($form == "shortcode_type" && $data != "r" && $data != "c") { $_ERROR[] = "Not a valid shortcode type
"; + } elseif ($form == "pr_email" && !filter_var($data, FILTER_VALIDATE_EMAIL)) { + $_ERROR[] = "Not a valid email!
"; + } elseif ($form == "user_sett" && !in_array($data, array('00', '01', '10', '11'))) { + $_ERROR[] = "Unknown user setting.
"; } if (count($_ERROR) == 0) { $db_result = mysql_query("UPDATE ".DB_PREFIX."options SET value='".$data."' WHERE ".DB_PREFIX."options.option='".$form."'") or die(mysql_error()); @@ -44,7 +48,7 @@

Site admin

It seems you are running a prerelease version of Phurl. Expect Bugs!


"; -} +}*/ print_errors(); ?>
@@ -106,6 +110,43 @@

+
+Password reset From email:
+ + + +Must be a valid email, default is no-reply@ +
+
+ +
+User settings: +
+ + +
+
+ +
diff --git a/password_reset.php b/password_reset.php index 4ed7262..15aea43 100644 --- a/password_reset.php +++ b/password_reset.php @@ -134,7 +134,8 @@ ?>

Step 4:

Your password has been reset.
-You can now login with the password sent to you in the first email. +You can now login with the password sent to you in the first email.
+We recommend that you change your password after you have logged in.