Update cil.php

This commit is contained in:
Namhyeon Go 2018-07-22 17:42:43 +09:00 committed by GitHub
parent 71114b8f62
commit 05a444ac7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
cil.php
View File

@ -32,7 +32,7 @@ $config = get_config();
// set max_execution_time
$max_execution_time = get_value_in_array("max_execution_time", $config, 0);
@ini_set("max_execution_time", $max_execution_time);
@set_time_limit($max_execution_time);
//@set_time_limit($max_execution_time);
// autoload module
if(!array_key_empty("enable_autoload", $config)) {
@ -59,6 +59,15 @@ if($num_of_args > 1) {
show_errors();
}
break;
case "--static-ip":
if($k < ($num_of_args - 1)) {
$host = $argv[$k + 1];
set_scope("static_ip", $host);
} else {
set_error("invaild argument");
show_errors();
}
break;
}
}
} else {