quickExec1Line("select * from `" . user::$sqlTable . "` where `login` = '" . common::clearInput($login) . "' and `secret` = '" . xcrypt::hash($password) . "' and `active`=1 and `deleted`=0"); if ($res) { return new user($res); } else { return false; } } } ?>