| @@ 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'])) |
|
| @@ 483-486 (lines=4) @@ | ||
| 480 | } |
|
| 481 | ||
| 482 | // Override the language file? |
|
| 483 | if (isset($_GET['lang_file'])) |
|
| 484 | $_SESSION['installer_temp_lang'] = $_GET['lang_file']; |
|
| 485 | elseif (isset($GLOBALS['HTTP_GET_VARS']['lang_file'])) |
|
| 486 | $_SESSION['installer_temp_lang'] = $GLOBALS['HTTP_GET_VARS']['lang_file']; |
|
| 487 | ||
| 488 | // Make sure it exists, if it doesn't reset it. |
|
| 489 | 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'])) |
|