0){ $globals['ocfc'] = octdec($globals['chmod_conf_file']);//Octal $globals['scfc'] = $globals['chmod_conf_file'];//String } // Is there a manual overide for files if(strlen($globals['chmod_files']) > 0){ $globals['ofc'] = octdec($globals['chmod_files']);//Octal $globals['sfc'] = $globals['chmod_files'];//String } // Is there a manual overide for directories if(strlen($globals['chmod_dir']) > 0){ $globals['odc'] = octdec($globals['chmod_dir']);//Octal $globals['sdc'] = $globals['chmod_dir'];//String } // Disable error reporting if not debug mode if(empty($globals['debug_mode'])){ error_reporting(0); if(function_exists('ini_set')){ ini_set('display_errors', 'Off'); ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_DEPRECATED'); } } // Array of Timezone to map with our previous option which were OFFSET only. // This chnages we have made to adjuts the timezone with DST $mapped_timezones = array('-12' => 'Pacific/Kwajalein', '-11' => 'Pacific/Pago_Pago', '-10' => 'Pacific/Tahiti', '-9' => 'Pacific/Gambier', '-8' => 'Pacific/Pitcairn', '-7' => 'America/Whitehorse', '-6' => 'Pacific/Galapagos', '-5' => 'Pacific/Easter', '-4' => 'America/Tortola', '-3.5' => 'America/St_Johns', '-3' => 'Atlantic/Stanley', '-2' => 'Atlantic/South_Georgia', '-1' => 'Atlantic/Cape_Verde', '0' => 'UTC', '1' => 'Europe/London', '2' => 'Europe/Zurich', '3' => 'Indian/Mayotte', '3.5' => 'Asia/Tehran', '4' => 'Indian/Reunion', '4.5' => 'Asia/Kabul', '5' => 'Indian/Maldives', '5.5' => 'Asia/Kolkata', '6' => 'Indian/Chagos', '6.5' => 'Indian/Cocos', '7' => 'Indian/Christmas', '8' => 'Australia/Perth', '9' => 'Pacific/Palau', '9.5' => 'Australia/Darwin', '10' => 'Pacific/Saipan', '11' => 'Pacific/Pohnpei', '12' => 'Pacific/Wallis'); // Possibilities // 1. Timezone selected by admin before upgrade - Should take that timezone using Mapper // 2. Timezone not selected by admin before upgrade i.e. 0 // 2.1 If PHP timezone set - Use that // 2.1 If no PHP timezone set - Use UTC // 3. Timezone selected by admin after upgrade // Update the includes path as per the current PHP version and it respective encoded files if(version_compare(PHP_VERSION, '8.2.0', '>=') && is_dir($globals['path'].'/includes82')){ $includes_path = 'includes82'; }elseif(version_compare(PHP_VERSION, '8.1.0', '>=') && is_dir($globals['path'].'/includes81')){ $includes_path = 'includes81'; }elseif(version_compare(PHP_VERSION, '7.1.0', '>=') && is_dir($globals['path'].'/includes71')){ $includes_path = 'includes71'; }elseif(version_compare(PHP_VERSION, '5.6.0', '>=') && is_dir($globals['path'].'/includes56')){ $includes_path = 'includes56'; }elseif(version_compare(PHP_VERSION, '5.3.0', '>=') && is_dir($globals['path'].'/includes53')){ $includes_path = 'includes53'; }elseif(is_dir($globals['path'].'/includes52')){ $includes_path = 'includes52'; }else{ $includes_path = 'includes'; } $globals['includes_path'] = $globals['path'].'/'.$includes_path; $globals['mainfiles'] = $globals['includes_path'].'/main'; $globals['adminfiles'] = $globals['mainfiles'].'/admin'; $globals['clifiles'] = $globals['includes_path'].'/cli';