Update uri.php

This commit is contained in:
Namhyeon Go 2019-02-22 23:34:56 +09:00 committed by GitHub
parent 196664d529
commit c8f38cf499
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,23 @@ if(!function_exists("get_uri")) {
}
}
if(!function_exists("read_route")) {
function read_route($route=false) {
$config = get_config();
$requests = get_requests();
// get requested route
$route = get_requested_value("route");
// if empty route
if(empty($route)) {
$route = get_value_in_array("default_route", $config, "welcome");
}
return $route;
}
}
if(!function_exists("read_requests")) {
function read_requests($options=array()) {
// process http encryption