function __construct() { $session = new FESession(); $this->feUser = $session->getUserBySession(); if ($this->feUser) { $this->user = $this->feUser->data; if ($this->user) { $this->uc = unserialize($this->user['uc']); } //debug($this->uc); } }
function run() { $this->initTYPO3(); $feSession = new FESession(); if ($feSession->isLoggedIn()) { $this->initTimeTracking(); $content = $this->renderTimeTracking(); } elseif ($feSession->isLoginAttempt()) { $content = $feSession->tryToLogin(); } else { $content = $feSession->showLoginForm(); //$this->initTimeTracking(); //$content = $this->renderTimeTracking(); } return $content; }