Update index.php

This commit is contained in:
Namhyeon Go 2020-02-18 12:37:03 +09:00 committed by GitHub
parent 94e0aa6066
commit 1460b0021e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,8 +86,12 @@ foreach($load_systems as $system_name) {
$config = get_config(); $config = get_config();
$requests = get_requests(); $requests = get_requests();
// set shared vars // set database connection
set_shared_var("dbc", get_db_connect()); // variable _unset_dbc: will not connect to database
$_unset_dbc = get_requested_value("_unset_dbc");
if(!empty($_unset_dbc)) {
set_shared_var("dbc", get_db_connect());
}
// set max_execution_time // set max_execution_time
$max_execution_time = get_value_in_array("max_execution_time", $config, -1); $max_execution_time = get_value_in_array("max_execution_time", $config, -1);