index.php 266 B

12345678910111213
  1. <?php
  2. require_once("../../config.php");
  3. if(!$_SESSION['authorized']) {
  4. header("Location: /");
  5. }
  6. $dashboard = new ClientDashboard();
  7. if(DOMAIN == "admin") {
  8. $dashboard = new AdminDashboard();
  9. }
  10. $urlTree = UrlHelper::getTree();
  11. echo $dashboard->display($urlTree);