/** * Set if Admin here */ function zbase_url_parse_admin() { $uri = zbase_url_uri(); if (!empty($uri)) { $uriEx = explode('/', $uri); $adminKey = zbase_admin_key(); foreach ($uriEx as $u) { if (!empty($u)) { if ($u == $adminKey) { zbase_in_back(); return; } } } } }
/** * Create a new authentication controller instance. * * @return void */ public function __construct() { zbase_in_back(); zbase_view_pageTitle('Admin'); }