Le choix de la langue utilisait encore les registers globals. Fixed. Fix #1342

Ajout des cookie dans le menu de debug.
This commit is contained in:
Alan Garcia 2012-10-29 15:49:47 +00:00
parent 29d91ac98d
commit c6f2db4933
2 changed files with 5 additions and 1 deletions

View File

@ -15,10 +15,12 @@ function update_locale($langpath) {
return $locales;
}
// setlang is on the link at the login page
if (isset($_REQUEST["setlang"])) {
$lang=$_REQUEST["setlang"];
$setlang=$_REQUEST["setlang"];
} elseif (isset($_COOKIE['lang'])) {
$lang=$_COOKIE['lang'];
}
$langpath = bindtextdomain("alternc", ALTERNC_LOCALES);

View File

@ -67,6 +67,8 @@ class m_debug_alternc {
print_r($_GET);
echo "\n\n--- POST ---\n";
print_r($_POST);
echo "\n\n--- COOKIE ---\n";
print_r($_COOKIE);
echo "\n\n--- SERVER ---\n";
print_r($_SERVER);
echo "\n\n+++ END Debug Mode+++";