mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
set max_execution_time only if not php-cli
This commit is contained in:
parent
4f9f5cb3a9
commit
2bac73f4c8
|
@ -35,8 +35,11 @@ if(isset($settings->_extraPath))
|
|||
/* composer is installed in pear directory */
|
||||
require_once 'vendor/autoload.php';
|
||||
|
||||
if(isset($settings->_maxExecutionTime))
|
||||
ini_set('max_execution_time', $settings->_maxExecutionTime);
|
||||
if(isset($settings->_maxExecutionTime)) {
|
||||
if (php_sapi_name() !== "cli") {
|
||||
ini_set('max_execution_time', $settings->_maxExecutionTime);
|
||||
}
|
||||
}
|
||||
|
||||
if (get_magic_quotes_gpc()) {
|
||||
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
|
||||
|
|
Loading…
Reference in New Issue
Block a user