url() . "' method=post>
Username:
Password:
 
"; if (isset($username)) { echo "

votre pseudo, ou votre mot de passe est incorrect.
Veuillez réessayer SVP!
"; } } } function auth_validatelogin() { global $username, $password, $sess; if(isset($username)) { $this->auth["uname"]=$username; ## This provides access for "loginform.ihtml" } $uid = FALSE; $sess->register("uid"); $this->db->query("select * from " . $this->database_table . " where usr_login = '" . addslashes($username) . "'"); if ($this->db->next_record()) { if ( ($this->db->f("usr_password") == "NOPASSWORD") || ($this->db->f("usr_password") == "")) { //logger("User $username créé mais sans password valide :", LOG_NOTICE, "gco"); return(FALSE); } if ($this->db->f("usr_password") == $password) { $this->auth["uname"] = $username; $uid = $this->db->f("usr_id"); $this->auth["uid"] = $this->db->f("usr_id"); $this->auth["civ"] = $this->db->f("usr_civ"); $this->auth["nom"] = $this->db->f("usr_nom"); $this->auth["prenom"] = $this->db->f("usr_prenom"); $this->auth["email"] = $this->db->f("usr_email"); $this->auth["perm"] = $this->db->f("usr_perm"); //logger("User $username authentifié en $uid :", LOG_DEBUG, "gco"); } else { //logger("password (xxxxxx) erroné pour ($username) ", LOG_NOTICE, "gco"); return(FALSE); } } else { //logger("Utilisateur Web ($username) non trouvé dans la base PG_SQL :", LOG_NOTICE, "gco"); return(FALSE); } return ($uid); } } ?> Serge Kirszbaum , partenariat culturel , partenaire financier , mécénat culturel
top image
mid top image
MÉCÉNAT
SPONSORING
PARTENARIAT
ÉTUDES ÉCONOMIQUES
NOTRE VALEUR AJOUTÉE
PROJETS
RÉFÉRENCES
CONTACT