BROOKO icon
BROOKO UK NETWORK
Where code meets creativity & adventure
File viewer

index.php

Type
php
Size
354 B
Modified
15 May
index.php 354 B
<?php
require_once __DIR__ . '/bootstrap.php';

if (preg_match('#/index\.php$#', wp_request_path())) {
    app_redirect('', 301);
}

// Root URL should be the main dashboard.
// If not logged in, send to login.
if (!isLoggedIn()) {
    app_redirect('login');
}

// Render the dashboard without changing the URL.
require __DIR__ . '/pages/dashboard.php';