Update index.php
This commit is contained in:
parent
0b47ec6447
commit
793c238d97
14
index.php
14
index.php
|
@ -95,12 +95,24 @@ $max_execution_time = get_value_in_array("max_execution_time", $config, 0);
|
||||||
//@set_time_limit($max_execution_time);
|
//@set_time_limit($max_execution_time);
|
||||||
|
|
||||||
// set memory limit
|
// set memory limit
|
||||||
$memory_limit = get_value_in_array("memory_limit", $config, "");
|
$memory_limit = get_value_in_array("memory_limit", $config, 0);
|
||||||
if(!empty($memory_limit)) {
|
if(!empty($memory_limit)) {
|
||||||
@ini_set("memory_limit", $memory_limit);
|
@ini_set("memory_limit", $memory_limit);
|
||||||
@ini_set("suhosin.memory_limit", $memory_limit);
|
@ini_set("suhosin.memory_limit", $memory_limit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set upload max filesize
|
||||||
|
$upload_max_filesize = get_value_in_array("upload_max_filesize", $config, 0);
|
||||||
|
if(!empty($upload_max_filesize)) {
|
||||||
|
@ini_set("upload_max_filesize", $upload_max_filesize);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set post max size
|
||||||
|
$post_max_size = get_value_in_array("post_max_size", $config, 0);
|
||||||
|
if(!empty($post_max_size)) {
|
||||||
|
@ini_set("post_max_size", $post_max_size);
|
||||||
|
}
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
start_isolated_session();
|
start_isolated_session();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user