diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-10-16 20:38:27 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-10-16 20:38:27 -0700 |
commit | 36e1afa6ae35890a26910951dec6dda98dcdee8f (patch) | |
tree | 392f4f5536c7558c7754cdaaf384d1fb2a12e175 /mod/settings.php | |
parent | 6d646e9df5ccd5c0b5a70f15e242b0c50a0b877b (diff) | |
download | volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.tar.gz volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.tar.bz2 volse-hubzilla-36e1afa6ae35890a26910951dec6dda98dcdee8f.zip |
allow login by username and multiple unique email addresses on system - this will provide support for group/celebrity pages (coming soon).
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/mod/settings.php b/mod/settings.php index cfd0df024..b76d9ffb9 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -81,28 +81,23 @@ function settings_post(&$a) { if(strlen($username) < 3) $err .= t(' Name too short.'); } + if($email != $a->user['email']) { $email_changed = true; if(!eregi('[A-Za-z0-9._%-]+@[A-Za-z0-9._%-]+\.[A-Za-z]{2,6}',$email)) $err .= t(' Not valid email.'); - $r = q("SELECT `uid` FROM `user` - WHERE `email` = '%s' LIMIT 1", - dbesc($email) - ); - if($r !== NULL && count($r)) - $err .= t(' This email address is already registered.'); } - if(strlen($err)) { - notice($err . EOL); - return; - } + if(strlen($err)) { + notice($err . EOL); + return; + } + if($timezone != $a->user['timezone']) { if(strlen($timezone)) date_default_timezone_set($timezone); } - $str_group_allow = perms2str($_POST['group_allow']); $str_contact_allow = perms2str($_POST['contact_allow']); $str_group_deny = perms2str($_POST['group_deny']); @@ -155,6 +150,7 @@ function settings_post(&$a) { if(! function_exists('settings_content')) { function settings_content(&$a) { + $o .= '<script> $(document).ready(function() { $(\'#nav-settings-link\').addClass(\'nav-selected\'); });</script>'; if(! local_user()) { |