- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
if(!$user['email']) {
$err = $this->system_message->getLang('empty_email');
} elseif(strlen($user['email']) < self::MIN_USER_NAME) {
$err = $this->system_message->getLang('small_email');
} elseif(strlen($user['email']) > self::MAX_USER_NAME) {
$err = $this->system_message->getLang('long_email');
} elseif(!filter_var($user['email'], FILTER_VALIDATE_EMAIL)) {
$err = $this->system_message->getLang('incorrect_name');
}
if(!$user['passw']) {
$err = $this->system_message->getLang('empty_passw');
} elseif(strlen($user['passw']) < self::MIN_PASSWORD_NAME) {
$err = $this->system_message->getLang('small_passw');
} elseif(strlen($user['passw']) > self::MAX_PASSWORD_NAME) {
$err = $this->system_message->getLang('long_passw');
}
if($err) {
//!TODO add a exeption
} else {
$find_email = $this->db_users->prepare("SELECT * FROM `users` WHERE `email` = :email");
$find_email->execute(array(':email' => $user['email']));
Arris 12.05.2015 21:04 # 0
Dev_18 13.05.2015 06:12 # 0
Dev_18 13.05.2015 06:14 # 0
Arris 13.05.2015 06:35 # 0
Покажите свой :)
В чужом глазу соринку видим.
Stallman 13.05.2015 11:47 # 0
Arris 13.05.2015 16:11 # 0
А в чем архитектура то говно? :)
Dev_18 13.05.2015 18:18 # 0
Arris 13.05.2015 18:45 # 0
Dev_18 13.05.2015 18:49 # 0
roman-kashitsyn 13.05.2015 18:50 # 0
Dev_18 27.05.2015 20:22 # −1
Stertor 27.05.2015 20:48 # 0
Stallman 27.05.2015 22:41 # −1