public function __construct() { parent::__construct(); if (\Classes\Auth::isLogged()) { header('Location: ' . URL . 'index/'); } }
public function __construct() { parent::__construct(); \Classes\Auth::requireLogin(); }