|
|
@@ -33,6 +33,8 @@ Class User {
|
|
|
|
|
|
public function login($username, $password) {
|
|
|
global $db;
|
|
|
+ global $CONFIG;
|
|
|
+
|
|
|
$this->username = $username;
|
|
|
$this->password = $password;
|
|
|
|
|
|
@@ -76,6 +78,8 @@ Class User {
|
|
|
}
|
|
|
|
|
|
public function logout() {
|
|
|
+ global $CONFIG;
|
|
|
+
|
|
|
$this->username = "";
|
|
|
$this->password = "";
|
|
|
$this->email = "";
|