user = $user; $this->system = &$system; //$this->system->debug($this->system); if (process_user_login($this->user, $password)) { $this->logged = true; } else { $this->logged = false; } } public function hackinjectConfig() { if ($this->logged) { //hack to compatibility with pandora global $config; $config['id_user'] = $this->user; $this->system->setSessionBase('id_usuario', $this->user); } } public function isLogged() { return $this->logged; } public function checkLogin($user = null, $password = null) { if (($user == null) && ($password == null)) { $user = $this->system->getRequest('user', null); $password = $this->system->getRequest('password', null); } if (process_user_login($user, $password) !== false) { $this->logged = true; $this->user = $user; } else { $this->logged = false; } return true; } public function logout() { $this->user = null; $this->logged = false; } public function showLogin($text = '') { global $pandora_version; echo "