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 "
"; print_input_hidden('action', 'login'); ?>
  user, __('User'), 10, 20);?>
 
   
     
 
 
  ' . __('Your IP').':' . $this->system->getConfig("remote_addr") . ' ';?>
     
"; /* ?>

' . __('Your IP').':' . $this->system->getConfig("remote_addr"); ?>

"; echo "
" . $pandora_version . "
"; print_input_hidden('action', 'login'); print_input_text('user', $this->user, __('User'), 10, 20); print_input_password('password', '', __('Password'), 10, 20); print_submit_button(__(''), 'login', false, 'onclick="javascript: click();" class="login_button" alt="' . __('Login') . '" title="' . __('Login') . '"'); echo ""; ?>
user; } } ?>