- <?php
- require_once("../../config.php");
- if(!$_SESSION['authorized']) {
- header("Location: /");
- }
- $dashboard = new ClientDashboard();
- if(DOMAIN == "admin") {
- $dashboard = new AdminDashboard();
- }
- $urlTree = UrlHelper::getTree();
- echo $dashboard->display($urlTree);
|