/** * Schaut nach, ob sich ein User rechtmaessig eingeloggt hat, und prüft auf deren Rechmaessigkeit * * @param array $get_array $_GET-Daten * @return boolean * @uses Smarty Als Template-System */ public function check4user($get_array) { if ($this->_session->watch4session($get_array) == false) { $this->_smarty->assign('file', ""); $this->_smarty->display('login.tpl'); return false; } if ($this->_session->checksession() == false) { $this->_session->delete(); $this->_smarty->assign('error_text', $this->_textes['sessioncorupt']); $this->_smarty->display('error_alone.tpl'); return false; } if ($this->_session->activ(SESSION_TIMEOUT) == false) { $this->_session->delete(); $this->_smarty->assign('error_text', $this->_textes['nonactiv']); $this->_smarty->display('error_alone.tpl'); return false; } $this->_smarty->assign('SID', $this->_session->get_sessionstring()); return true; }