KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 785B

9 years ago
123456789101112131415161718192021222324252627
  1. <?php
  2. define('ADMIN', true);
  3. require_once "../includes/common.php";
  4. # Prepare the controller.
  5. $admin = AdminController::current();
  6. # Parse the route.
  7. $route = Route::current($admin);
  8. # Check if the user can view the site.
  9. if (!$visitor->group->can("view_site"))
  10. if ($trigger->exists("can_not_view_site"))
  11. $trigger->call("can_not_view_site");
  12. else
  13. show_403(__("Access Denied"), __("You are not allowed to view this site."));
  14. # Execute the appropriate Controller responder.
  15. $route->init();
  16. if (!$route->success and !$admin->displayed)
  17. $admin->display($route->action); # Attempt to display it; it'll go through Modules and Feathers.
  18. $trigger->call("end", $route);
  19. ob_end_flush();