Upgrade JS files
This commit is contained in:
@@ -4,9 +4,7 @@ use Illuminate\Foundation\Http\Kernel;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use ProcessMaker\Core\AppEvent;
|
||||
use ProcessMaker\Core\JobsManager;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
use ProcessMaker\ChangeLog\ChangeLog;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
use ProcessMaker\Validation\ValidationUploadedFiles;
|
||||
|
||||
@@ -307,9 +305,7 @@ if (!(array_key_exists('REMOTE_USER', $_SERVER) && (string) ($_SERVER['REMOTE_US
|
||||
session_start();
|
||||
|
||||
//Set Time Zone
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$_SESSION['__SYSTEM_UTC_TIME_ZONE__'] = (int)($config['system_utc_time_zone']) == 1;
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
// Do not change any of these settings directly, use env.ini instead
|
||||
ini_set('display_errors', $config['display_errors']);
|
||||
@@ -337,11 +333,9 @@ define('LOGS_LOCATION', $config['logs_location']);
|
||||
define('LOGGING_LEVEL', $config['logging_level']);
|
||||
define('EXT_AJAX_TIMEOUT', $config['ext_ajax_timeout']);
|
||||
define('TIME_ZONE', ini_get('date.timezone'));
|
||||
/*----------------------------------********---------------------------------*/
|
||||
define('HIGHLIGHT_HOME_FOLDER_ENABLE', $config['highlight_home_folder_enable'] === "1");
|
||||
define('HIGHLIGHT_HOME_FOLDER_REFRESH_TIME', $config['highlight_home_folder_refresh_time']);
|
||||
define('HIGHLIGHT_HOME_FOLDER_SCOPE', $config['highlight_home_folder_scope']);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
define('DISABLE_TASK_MANAGER_ROUTING_ASYNC', $config['disable_task_manager_routing_async'] === "1");
|
||||
|
||||
// IIS Compatibility, SERVER_ADDR doesn't exist on that env, so we need to define it.
|
||||
@@ -722,11 +716,9 @@ Bootstrap::LoadTranslationPlugins(defined('SYS_LANG') ? SYS_LANG : "en", $attrib
|
||||
// Initialization functions plugins
|
||||
$oPluginRegistry->init();
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
$_GET = \ProcessMaker\Util\DateTime::convertDataToUtc($_GET);
|
||||
$_POST = \ProcessMaker\Util\DateTime::convertDataToUtc($_POST);
|
||||
$_REQUEST = \ProcessMaker\Util\DateTime::convertDataToUtc($_REQUEST);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
Creole::registerDriver('dbarray', 'creole.contrib.DBArrayConnection');
|
||||
|
||||
@@ -1056,7 +1048,6 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
}
|
||||
$_SESSION['phpLastFileFound'] = $_SERVER['REQUEST_URI'];
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
// Check if the timezone for the user is valid
|
||||
if (!empty($_SESSION['USER_LOGGED']) && isset($_SESSION['__TIME_ZONE_FAILED__']) && $_SESSION['__TIME_ZONE_FAILED__'] &&
|
||||
(SYS_COLLECTION != 'login' && SYS_TARGET != 'login')) {
|
||||
@@ -1089,7 +1080,6 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
G::RenderPage('publish');
|
||||
exit(0);
|
||||
}
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
// Initialization functions plugins
|
||||
$oPluginRegistry->init();
|
||||
@@ -1110,13 +1100,13 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
} else {
|
||||
//NewRelic Snippet - By JHL
|
||||
transactionLog($phpFile);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
ChangeLog::getChangeLog()
|
||||
->setSourceId(ChangeLog::FromWeb)
|
||||
->setSkin(SYS_SKIN)
|
||||
->setLanguage(SYS_LANG)
|
||||
->getUsrIdByUsrUid(empty($_SESSION['USER_LOGGED']) ? '' : $_SESSION['USER_LOGGED']);
|
||||
/*----------------------------------********---------------------------------*/
|
||||
|
||||
ValidationUploadedFiles::getValidationUploadedFiles()
|
||||
->runRulesToAllUploadedFiles();
|
||||
require_once $phpFile;
|
||||
|
||||
Reference in New Issue
Block a user