Settings. */ defined('FROM_SETUP') || die("Direct file access is not allowed"); $form = $region_form; $suggested = ['locale' => false, 'currency_code' => false, 'timezone' => false]; $company_country = ''; if ($company_exists && !$localization_done && !$form) { $company_row = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT company_country FROM companies WHERE company_id = 1")); $company_country = (string) ($company_row['company_country'] ?? ''); $company_iso2 = $country_iso2_array[$company_country] ?? ''; $form = [ 'locale' => setupSuggestLocale($company_iso2, (string) ($_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? ''), $locales_array), 'currency_code' => setupSuggestCurrency($company_iso2, $currencies_array), 'timezone' => setupSuggestTimezone($company_iso2), ]; foreach ($form as $key => $value) { $suggested[$key] = $value !== ''; } } $form += ['locale' => '', 'currency_code' => '', 'timezone' => '']; $hint = function ($key, $text) use ($region_errors, $suggested) { if (isset($region_errors[$key])) { return setupFieldError($region_errors, $key); } return $suggested[$key] ? '
The language numbers and dates are written in, the currency you bill in, and your timezone.