credits)) { exit(page_renderer::render_main("Error - $settings->$sitename", "
No credits page detected. The credits page is a required module!
")); } // If we're on the CLI, then start it if(!defined("PEPPERMINTY_WIKI_BUILD") && module_exists("feature-cli") && $settings->cli_enabled && php_sapi_name() == "cli") cli(); ////////////////////////////////// /// Final Consistency Measures /// ////////////////////////////////// if(!isset($pageindex->{$env->page}) && isset($pageindex->{ucwords($env->page)})) { http_response_code(307); header("location: ?page=" . ucwords($env->page)); header("content-type: text/plain"); exit("$env->page doesn't exist on $settings->sitename, but " . ucwords($env->page) . " does. You should be redirected there automatically."); } // Redirect to the search page if there isn't a page with the requested name if(!isset($pageindex->{$env->page}) and isset($_GET["search-redirect"])) { http_response_code(307); $url = "?action=search&query=" . rawurlencode($env->page); header("location: $url"); exit(page_renderer::render_minimal("Non existent page - $settings->sitename", "There isn't a page on $settings->sitename with that name. However, you could search for this page name in other pages.
Alternatively, you could create this page.
")); } ////////////////////////////////// // Perform the appropriate action if(isset($actions->{$env->action})) { $req_action_data = $actions->{$env->action}; $req_action_data(); } else { exit(page_renderer::render_main("Error - $settings->sitename", "No action called $env->action has been registered. Perhaps you are missing a module?
")); }