$intCurrentQ) { $strCurrentLanguage = strtolower (join ('-', $arrLangCode)); $intCurrentQ = $intLangQuality; break; } } if ($boolStrictMode) break; array_pop ($arrLangCode); } } return $strCurrentLanguage; } // accept the following languages, otherwise fall back to "en-us" $browserLang = getBrowserLanguage(array('cs-cz', 'de-de', 'en-us', 'it-it', 'ja-jp', 'nl-nl', 'pt-br'), 'en-us'); $language = @$_POST ['language']? $_POST ['language'] : $browserLang; $lf = "lang.$language.php"; if (!preg_match('|^lang\.[a-z]{2}-[a-z]{2}\.php$|', $lf)) die('Error with lang file'); include('./setup/lang/' . $lf); include('./setup/lib/main.lib.php'); $step = null; $id = getstep($step); $l =& $lang [$step]; include("./setup/tpls/header.tpl.php"); include("./setup/tpls/{$step}.tpl.php"); include("./setup/tpls/footer.tpl.php"); ?>