loadModel('attend'); $isLogon = $this->loadModel('user')->isLogon(); if($isLogon and empty($this->app->user->signed) and $this->attend->checkSignIn()) { $_SESSION['user']->signed = true; $this->app->user->signed = true; } if($isLogon and isset($_SESSION['user']) and (!isset($this->app->user->mustSignOut) or $this->app->user->mustSignOut != $this->config->attend->mustSignOut)) { $_SESSION['user']->mustSignOut = $this->config->attend->mustSignOut; $this->app->user->mustSignOut = $this->config->attend->mustSignOut; } ?> app->user->signed)) $this->attend->signIn($this->app->user->account);?>