improvements streamCSSBigFile
This commit is contained in:
@@ -181,7 +181,7 @@ $_SERVER['SERVER_ADDR'] = isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR
|
||||
|
||||
//to do: make different environments. sys
|
||||
|
||||
//check if it is a installation instance
|
||||
//check if it is a installation instance
|
||||
if (!defined('PATH_C')) { // to do: review
|
||||
// is a intallation instance, so we need to define PATH_C and PATH_LANGUAGECONT constants temporarily
|
||||
define('PATH_C', (rtrim(Bootstrap::sys_get_temp_dir(), PATH_SEP) . PATH_SEP));
|
||||
@@ -380,16 +380,20 @@ if (!defined('PATH_DB') || !file_exists(PATH_DB)) {
|
||||
|
||||
app()->useStoragePath(realpath(PATH_DATA));
|
||||
app()->make(Kernel::class)->bootstrap();
|
||||
|
||||
restore_error_handler();
|
||||
//Overwrite with the Processmaker env.ini configuration used in production environments
|
||||
//@todo: move env.ini configuration to .env
|
||||
ini_set('display_errors', $config['display_errors']);
|
||||
ini_set('error_reporting', $config['error_reporting']);
|
||||
//ini_set('display_errors', $config['display_errors']);
|
||||
//ini_set('error_reporting', $config['error_reporting']);
|
||||
ini_set('display_errors', true);
|
||||
ini_set('error_reporting', true);
|
||||
ini_set('short_open_tag', 'On');
|
||||
ini_set('default_charset', "UTF-8");
|
||||
ini_set('soap.wsdl_cache_enabled', $config['wsdl_cache']);
|
||||
ini_set('date.timezone', TIME_ZONE); //Set Time Zone
|
||||
|
||||
|
||||
date_default_timezone_set(TIME_ZONE);
|
||||
|
||||
config(['app.timezone' => TIME_ZONE]);
|
||||
@@ -745,7 +749,7 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
// Default to 1440 seconds (24 minutes) if lifetime is not set
|
||||
if (is_null($sessionLifetime)) {
|
||||
$sessionLifetime = 1440;
|
||||
}
|
||||
}
|
||||
$cookieOptions = Bootstrap::buildCookieOptions(['expires' => time() + $sessionLifetime, 'httponly' => true]);
|
||||
setcookie(session_name(), session_id(), $cookieOptions);
|
||||
}
|
||||
@@ -795,7 +799,7 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
$noLoginFolders[] = 'services';
|
||||
$noLoginFolders[] = 'tracker';
|
||||
$noLoginFolders[] = 'InstallerModule';
|
||||
|
||||
|
||||
$data = new stdClass();
|
||||
$data->noLoginFiles = &$noLoginFiles;
|
||||
$data->noLoginFolders = &$noLoginFolders;
|
||||
|
||||
Reference in New Issue
Block a user