//// END HANDLE FILE UPLOAD AND PROCESSING /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// //// PRELOAD DISPLAY DATA $upload_max_filesize = ini_get('upload_max_filesize'); $upload_max_filesize_bytes = return_bytes($upload_max_filesize); $fileMaxSize = ''; if (!defined('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES')) { define('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES', 6 * 1024 * 1024); } if ($upload_max_filesize_bytes < constant('SUGARCRM_MIN_UPLOAD_MAX_FILESIZE_BYTES')) { $GLOBALS['log']->debug("detected upload_max_filesize: {$upload_max_filesize}"); $fileMaxSize = '<p class="error">' . $mod_strings['ERR_UPLOAD_MAX_FILESIZE'] . "</p>\n"; } $availablePatches = getLangPacks(true); $installedLanguagePacks = getInstalledLangPacks(); $errs = ''; if (isset($validation_errors)) { if (count($validation_errors) > 0) { $errs = '<div id="errorMsgs">'; $errs .= "<p>{$mod_strings['LBL_SYSOPTS_ERRS_TITLE']}</p>"; $errs .= '<ul>'; foreach ($validation_errors as $error) { $errs .= '<li>' . $error . '</li>'; } $errs .= '</ul>'; $errs .= '</div>'; } } //// PRELOAD DISPLAY DATA ///////////////////////////////////////////////////////////////////////////////
$dbCreate .= $mod_strings['LBL_CONFIRM_NOT']; } $dbCreate .= " {$mod_strings['LBL_CONFIRM_BE_CREATED']})"; $dbUser = "******"; if ($_SESSION['setup_db_create_sugarsales_user'] != 1) { $dbUser .= $mod_strings['LBL_CONFIRM_NOT']; } $dbUser .= " {$mod_strings['LBL_CONFIRM_BE_CREATED']})"; $yesNoDropCreate = $_SESSION['setup_db_drop_tables'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $yesNoDemoData = $_SESSION['setup_db_pop_demo_data'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $yesNoSugarUpdates = $_SESSION['setup_site_sugarbeet'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $yesNoCustomSession = $_SESSION['setup_site_custom_session_path'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $yesNoCustomLog = $_SESSION['setup_site_custom_log_dir'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $yesNoCustomId = $_SESSION['setup_site_specify_guid'] == 1 ? $mod_strings['LBL_YES'] : $mod_strings['LBL_NO']; $nameFormat = $locale->getLocaleFormattedName($mod_strings['LBL_LOCALE_NAME_FIRST'], $mod_strings['LBL_LOCALE_NAME_LAST'], $mod_strings['LBL_LOCALE_NAME_SALUTATION'], $_SESSION['default_locale_name_format']); $languagePacks = getInstalledLangPacks(false); // Populate the default date format, time format, and language for the system $defaultDateFormat = ""; $defaultTimeFormat = ""; $defaultLanguages = ""; // Fixes bug 7810 (Offline Client install) if (isset($sugar_config)) { if (isset($sugar_config['date_formats'])) { $defaultDateFormat = $sugar_config['date_formats'][$_SESSION["default_date_format"]]; } if (isset($sugar_config['time_formats'])) { $defaultTimeFormat = $sugar_config['time_formats'][$_SESSION["default_time_format"]]; } if (isset($sugar_config['languages'])) { $defaultLanguages = $sugar_config['languages'][$_SESSION["default_language"]]; }