| @@ 328-331 (lines=4) @@ | ||
| 325 | } |
|
| 326 | ||
| 327 | // Override the language file? |
|
| 328 | if (isset($_GET['lang_file'])) |
|
| 329 | $_SESSION['installer_temp_lang'] = $_GET['lang_file']; |
|
| 330 | elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file'])) |
|
| 331 | $_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file']; |
|
| 332 | ||
| 333 | // Make sure it exists, if it doesn't reset it. |
|
| 334 | if (!isset($_SESSION['installer_temp_lang']) || preg_match('~[^\\w_\\-.]~', $_SESSION['installer_temp_lang']) === 1 || !file_exists(dirname(__FILE__) . '/Themes/default/languages/' . $_SESSION['installer_temp_lang'])) |
|
| @@ 477-480 (lines=4) @@ | ||
| 474 | } |
|
| 475 | ||
| 476 | // Override the language file? |
|
| 477 | if (isset($_GET['lang_file'])) |
|
| 478 | $_SESSION['installer_temp_lang'] = $_GET['lang_file']; |
|
| 479 | elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file'])) |
|
| 480 | $_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file']; |
|
| 481 | ||
| 482 | // Make sure it exists, if it doesn't reset it. |
|
| 483 | if (!isset($_SESSION['installer_temp_lang']) || preg_match('~[^\\w_\\-.]~', $_SESSION['installer_temp_lang']) === 1 || !file_exists(dirname(__FILE__) . '/Themes/default/languages/' . $_SESSION['installer_temp_lang'])) |
|