Update index.php
This commit is contained in:
parent
c30158ab1c
commit
22e13fe753
17
index.php
17
index.php
|
@ -1,8 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @file index.php
|
* @file index.php
|
||||||
* @date 2018-05-27
|
* @created_on 2018-05-27
|
||||||
* @updated 2019-11-15
|
* @updated_on 2020-01-17
|
||||||
* @author Go Namhyeon <gnh1201@gmail.com>
|
* @author Go Namhyeon <gnh1201@gmail.com>
|
||||||
* @brief ReasonableFramework
|
* @brief ReasonableFramework
|
||||||
* @cvs https://github.com/gnh1201/reasonableframework
|
* @cvs https://github.com/gnh1201/reasonableframework
|
||||||
|
@ -21,12 +21,12 @@ define("PHP_DDOS_PROTECTION", false); // with advanced security
|
||||||
// development mode
|
// development mode
|
||||||
if(APP_DEVELOPMENT == true) {
|
if(APP_DEVELOPMENT == true) {
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
ini_set("log_errors", 1);
|
@ini_set("log_errors", 1);
|
||||||
ini_set("error_log", sprintf("%s/storage/sandbox/logs/error.log", getcwd()));
|
@ini_set("error_log", sprintf("%s/storage/sandbox/logs/error.log", getcwd()));
|
||||||
} else {
|
} else {
|
||||||
error_reporting(E_ERROR | E_PARSE);
|
error_reporting(E_ERROR | E_PARSE);
|
||||||
}
|
}
|
||||||
ini_set("display_errors", 1);
|
@ini_set("display_errors", 1);
|
||||||
|
|
||||||
// CORS Security (https or http)
|
// CORS Security (https or http)
|
||||||
if(CORS_DOMAINS !== false) {
|
if(CORS_DOMAINS !== false) {
|
||||||
|
@ -93,6 +93,13 @@ set_scope("requests", read_requests());
|
||||||
$max_execution_time = get_value_in_array("max_execution_time", $config, 0);
|
$max_execution_time = get_value_in_array("max_execution_time", $config, 0);
|
||||||
@ini_set("max_execution_time", $max_execution_time);
|
@ini_set("max_execution_time", $max_execution_time);
|
||||||
|
|
||||||
|
// set memory limit
|
||||||
|
$memory_limit = get_value_in_array("memory_limit", $config, "");
|
||||||
|
if(!empty($memory_limit)) {
|
||||||
|
@ini_set("memory_limit", $memory_limit);
|
||||||
|
@ini_set("suhosin.memory_limit", $memory_limit);
|
||||||
|
}
|
||||||
|
|
||||||
// start session
|
// start session
|
||||||
start_isolated_session();
|
start_isolated_session();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user