Diff of /mambo/branches/4.6/index.php
Parent Directory
|
Revision Log
|
Patch
| revision 190, Thu Jan 26 14:45:16 2006 UTC | revision 191, Thu Jan 26 16:07:51 2006 UTC | |
|---|---|---|
| # | Line 1383 | Line 1383 |
| 1383 | elseif (($this->email == '') OR preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $this->email ) == 0) $this->_error = _REGWARN_MAIL; | elseif (($this->email == '') OR preg_match("/[\w\.\-]+@\w+[\w\.\-]*?\.\w{1,4}/", $this->email ) == 0) $this->_error = _REGWARN_MAIL; |
| 1384 | else { | else { |
| 1385 | // check for existing username | // check for existing username |
| 1386 | $username = strtolower($this->username); | |
| 1387 | $this->_db->setQuery( "SELECT COUNT(id) FROM #__users " | $this->_db->setQuery( "SELECT COUNT(id) FROM #__users " |
| 1388 | . "\nWHERE LOWER(username)=LOWER('$this->username') AND id!='$this->id'" | . "\nWHERE LOWER(username)='$username' AND id!='$this->id'" |
| 1389 | ); | ); |
| 1390 | if ($this->_db->loadResult()) $this->_error = _REGWARN_INUSE; | if ($this->_db->loadResult()) $this->_error = _REGWARN_INUSE; |
| 1391 | elseif (mamboCore::get('mosConfig_uniquemail')) { | elseif (mamboCore::get('mosConfig_uniquemail')) { |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |
Web Hosting provided by Network Redux.

