if (count(get_included_files()) == 1) {
    exit("Direct access not permitted.");
}
require SYSPATH . "classes" . DIRECTORY_SEPARATOR . "JsonApiApplication" . DIRECTORY_SEPARATOR . "Core" . EXT;
if (is_file(APPPATH . "classes" . DIRECTORY_SEPARATOR . "JsonApiApplication" . EXT)) {
    require APPPATH . "classes" . DIRECTORY_SEPARATOR . "JsonApiApplication" . EXT;
} else {
    require SYSPATH . "classes" . DIRECTORY_SEPARATOR . "JsonApiApplication" . EXT;
}
date_default_timezone_set("australia/brisbane");
setlocale(LC_ALL, "en_AU.utf-8");
spl_autoload_register(array("JsonApiApplication", "auto_load"));
ini_set("unserialize_callback_func", "spl_autoload_call");
mb_substitute_character("none");
if (isset($_SERVER["JSONAPIAPPLICATION_ENV"])) {
    JsonApiApplication::$environment = constant("JsonApiApplication::" . strtoupper($_SERVER["JSONAPIAPPLICATION_ENV"]));
}
I18n::lang("en-au");
JsonApiApplication::init(array("base_url" => "/JsonApiApplication/", "errors" => true, "index_file" => FALSE));
JsonApiApplication::$log->attach(new Log_File(APPPATH . "logs"));
JsonApiApplication::$config->attach(new JsonApiApplication_Config_File());
JsonApiApplication::modules(array("auth" => MODPATH . "auth", "orm" => MODPATH . "orm", "cache" => MODPATH . "cache", "database" => MODPATH . "database", "mailer" => MODPATH . "mailer"));
Cache::$default = "file";
Route::set("home", "home(/<catcher>)", array("catcher" => ".*"))->defaults(array("controller" => "welcome", "action" => "read"));
Route::set("welcome", "")->defaults(array("controller" => "welcome", "action" => "read"));
Route::set("navigation", "navigation/read/<id>")->defaults(array("controller" => "navigation", "action" => "read"));
Route::set("page", "page/read/<id>")->defaults(array("controller" => "page", "action" => "read"));
Route::set("testimonial", "testimonial/read/<limit>/<offset>")->defaults(array("controller" => "testimonial", "action" => "read"));
Route::set("posts", "posts/read/<limit>/<offset>")->defaults(array("controller" => "posts", "action" => "read"));
Route::set("post", "post/read/<id>")->defaults(array("controller" => "post", "action" => "read"));
Route::set("comments", "comments/read/<id>/<limit>/<offset>")->defaults(array("controller" => "comments", "action" => "read"));