Update index.php

This commit is contained in:
Namhyeon Go 2018-04-13 15:11:47 +09:00 committed by GitHub
parent 564180cb83
commit 6feb370725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,8 +24,8 @@ foreach($load_systems as $system_name) {
} }
} }
// get config
$config = get_config("config"); $config = get_config("config");
$requests = get_requests();
// set max_execution_time // set max_execution_time
$max_execution_time = get_value_in_array("max_execution_time", $config, 0); $max_execution_time = get_value_in_array("max_execution_time", $config, 0);
@ -41,7 +41,7 @@ $default_timezone = get_value_in_array("timezone", $config, "UTC");
date_default_timezone_set($default_timezone); date_default_timezone_set($default_timezone);
// route controller // route controller
$route = get_value_in_array("route", $_REQUEST, ""); $route = get_value_in_array("route", $requests['all'], "");
// load route // load route
if(empty($route)) { if(empty($route)) {