Fix: Compatibility
This commit is contained in:
parent
ba1e9e11ba
commit
3b50d3d28a
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
|
/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net>
|
||||||
* Copyright (C) 2008 Laurent Destailleur <eldy@uers.sourceforge.net>
|
* Copyright (C) 2008-2010 Laurent Destailleur <eldy@uers.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -20,36 +20,37 @@
|
|||||||
|
|
||||||
class Auth {
|
class Auth {
|
||||||
|
|
||||||
protected $db;
|
var $db;
|
||||||
|
|
||||||
protected $login;
|
var $login;
|
||||||
protected $passwd;
|
var $passwd;
|
||||||
|
|
||||||
protected $reponse;
|
var $reponse;
|
||||||
|
|
||||||
protected $sqlQuery;
|
var $sqlQuery;
|
||||||
|
|
||||||
public function __construct ($DB) {
|
|
||||||
|
function Auth ($DB) {
|
||||||
|
|
||||||
$this->db = $DB;
|
$this->db = $DB;
|
||||||
$this->reponse (null);
|
$this->reponse (null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function login ($aLogin) {
|
function login ($aLogin) {
|
||||||
|
|
||||||
$this->login = $aLogin;
|
$this->login = $aLogin;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function passwd ($aPasswd) {
|
function passwd ($aPasswd) {
|
||||||
|
|
||||||
$this->passwd = $aPasswd;
|
$this->passwd = $aPasswd;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function reponse ($aReponse) {
|
function reponse ($aReponse) {
|
||||||
|
|
||||||
$this->reponse = $aReponse;
|
$this->reponse = $aReponse;
|
||||||
|
|
||||||
@ -59,7 +60,7 @@ class Auth {
|
|||||||
* Authentification d'un demandeur
|
* Authentification d'un demandeur
|
||||||
* @return (int) 0 = Ok; -1 = login incorrect; -2 = login ok, mais compte desactive; -10 = aucune entree trouvee dans la base
|
* @return (int) 0 = Ok; -1 = login incorrect; -2 = login ok, mais compte desactive; -10 = aucune entree trouvee dans la base
|
||||||
*/
|
*/
|
||||||
protected function verif_utilisateurs () {
|
function verif_utilisateurs () {
|
||||||
|
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
@ -112,7 +113,7 @@ class Auth {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function verif ($aLogin, $aPasswd) {
|
function verif ($aLogin, $aPasswd) {
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$this->login ($aLogin);
|
$this->login ($aLogin);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user