$token
$token : string
Authorization and current account control
Used to all auth purposes and getting current user info
__construct(string $act = '')
Launch Auth system
| string | $act | Navigator string
|
// If Auth test was requested
if (isset($secure['auth_test'])) {
// Try to auth
Auth();
// If there's no exception - add a key
$ra['auth_test'] = true;
}
User(boolean $r = false) : \User|array
Current user
Recieve current User object
If $r === true: User->get() will be returned, else - class User
| boolean | $r | Return switcher |