Logconnexion
This commit is contained in:
@@ -5,16 +5,17 @@ class Logconnexion extends Modele {
|
||||
|
||||
public function ajouter($login, $heureConnexion, $ipConnexion, $idSaisie)
|
||||
{
|
||||
$sql = 'INSERT INTO a_logconnexion (login, heureConnexion, ipConnexion, idSaisie) VALUES (?, ?, ?, ?)';
|
||||
$sql = 'INSERT INTO c_logconnexion (login, heureConnexion, ipConnexion, idSaisie) VALUES (?, ?, ?, ?)';
|
||||
|
||||
$this->executerRequete($sql, array($login, $heureConnexion, $ipConnexion, $idSaisie));
|
||||
|
||||
return $this->dernierId();
|
||||
}
|
||||
|
||||
//
|
||||
public function succesconnexion($idConnexion)
|
||||
{
|
||||
$sql = 'UPDATE a_logconnexion SET success="1" where (id=?)';
|
||||
$sql = 'UPDATE c_logconnexion SET success="1" where (id=?)';
|
||||
|
||||
$this->executerRequete($sql, array($idConnexion));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user