1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
function connexion_compte() {
Application::addRequete('SELECT count(*) as total, activation FROM joueurs WHERE pseudo=? AND mdp=?', array(strtolower($this->_pseudo), sha1(strtolower($this->_mdp))));
Application::doRequetes();
if(Application::fetchRequete()->total == 0) {
$this->_tableau_rendu['global'][] = 'Aucun compte trouvé pour ces identifiants sur l\'univers '.ucfirst($this->_univers).' <br />';
}else if(Application::fetchRequete()->activation !== null) {
$this->_tableau_rendu['global'][] = 'Ce compte n\'est pas encore activé. Veuillez vérifier vos emails <br />';
}else {
// ---
}
} |