include_once($path_to_root . "/config.default.php");
+$_SESSION['SysPrefs'] = new sys_prefs();
+$SysPrefs = &$_SESSION['SysPrefs'];
+
$inst_langs = array(
'C' => array ( 'name' => 'English', 'code' => 'C', 'encoding' => 'iso-8859-1'),
'ar_EG' => array ( 'name' => 'Arabic', 'code' => 'ar_EG', 'encoding' => 'utf-8', 'rtl' => true),
$l = array_search_value($i_lang, $inst_langs, 'code');
$_SESSION['language'] = new language($l['name'], $l['code'], $l['encoding'],
isset($l['rtl']) ? 'rtl' : 'ltr');
+
}
if (!isset($installed_languages))
$installed_languages = array();
html_cleanup($_REQUEST);
html_cleanup($_SERVER);
-$SysPrefs = &$_SESSION['SysPrefs'];
-
// POST vars cleanup needed for direct reuse.
// We quote all values later with db_escape() before db update.
$_POST = strip_quotes($_POST);