NULL, 'success' => NULL, 'notice' => NULL]; /** * Returns the current login status * * The login status is stored in the session cookie. If it is not even set it means the login is invalid. * * @return The login status or false if none is set so far */ static public function isLoginValid(){ return ($_SESSION['login'] ?? false); } /** * A little Box with the login status as html entity * * @return string htmlEntity showing the login status */ static public function htmlLoginStatus(){ return "
".$this->description."
". "| userName | lastLogins |
|---|---|
| ".$userName." | ".$lastLogins['lastLogins'][0]." |