if ($page_id != 'login') { include __DIR__ . '/../api/permissions.php'; } include 'navbar.php'; $path = 'frames/' . $page_id . '.php'; $path = (!file_exists($path)) ? 'error_pages/404.php' : $path; include $path; if ($page_id != 'login') { ?> } ?>