mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Update index and create is_connected
This commit is contained in:
parent
32ef6b7c90
commit
a99e159b1f
5 changed files with 11 additions and 420 deletions
|
@ -152,6 +152,16 @@ namespace controllers\internals;
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user connected.
|
||||
*
|
||||
* @return bool : True if connected, False else
|
||||
*/
|
||||
public static function is_connected()
|
||||
{
|
||||
return (bool) ($_SESSION['connect'] ?? false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the user is admin.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue