admin) { Router::$controller = "maintenance"; Router::$controller_path = APPPATH . "controllers/maintenance.php"; Router::$method = "index"; } } /** * This function is called when the Gallery is fully initialized. We relay it to modules as the * "gallery_ready" event. Any module that wants to perform an action at the start of every * request should implement the _event::gallery_ready() handler. */ static function ready() { module::event("gallery_ready"); } /** * This function is called right before the Kohana framework shuts down. We relay it to modules * as the "gallery_shutdown" event. Any module that wants to perform an action at the start of * every request should implement the _event::gallery_shutdown() handler. */ static function shutdown() { module::event("gallery_shutdown"); } }