From 3b50d3d28afb2e4df7b9f3e4f89abee4962fc0ab Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 Dec 2010 17:12:03 +0000 Subject: [PATCH] Fix: Compatibility --- htdocs/cashdesk/class/Auth.class.php | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/htdocs/cashdesk/class/Auth.class.php b/htdocs/cashdesk/class/Auth.class.php index 2ee3f4fbe56..53c3d0cae32 100644 --- a/htdocs/cashdesk/class/Auth.class.php +++ b/htdocs/cashdesk/class/Auth.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2008 Laurent Destailleur + * Copyright (C) 2008-2010 Laurent Destailleur * * 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 @@ -20,36 +20,37 @@ class Auth { - protected $db; + var $db; - protected $login; - protected $passwd; + var $login; + var $passwd; - protected $reponse; + var $reponse; - protected $sqlQuery; + var $sqlQuery; - public function __construct ($DB) { + + function Auth ($DB) { $this->db = $DB; $this->reponse (null); } - public function login ($aLogin) { + function login ($aLogin) { $this->login = $aLogin; } - public function passwd ($aPasswd) { + function passwd ($aPasswd) { $this->passwd = $aPasswd; } - public function reponse ($aReponse) { + function reponse ($aReponse) { $this->reponse = $aReponse; @@ -59,7 +60,7 @@ class Auth { * Authentification d'un demandeur * @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; @@ -112,7 +113,7 @@ class Auth { } - public function verif ($aLogin, $aPasswd) { + function verif ($aLogin, $aPasswd) { global $conf; $this->login ($aLogin);