* special handling of language parameter to allow locale switching
This commit is contained in:
Jan Dittberner 2007-12-02 21:23:20 +00:00
parent 77cc35dfb4
commit 513a5dcf20
2 changed files with 9 additions and 1 deletions

View file

@ -285,7 +285,11 @@ if ($_GET) {
default: default:
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET))); errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
} }
} else { } if (isset($_GET["language"])) {
header("Content-Type: text/html; charset=UTF-8");
$smarty->assign("directories", getDirectories());
$smarty->display("directories.html");
}else {
invalidCall(); invalidCall();
} }
} elseif ($_POST) { } elseif ($_POST) {

View file

@ -343,6 +343,10 @@ if ($_GET) {
default: default:
errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET))); errorAsXml(sprintf(_("Unexpected values %s!"), serialize($_GET)));
} }
} else if (isset($_GET['language'])) {
header("Content-Type: text/html; charset=UTF-8");
$smarty->assign("users", $namemap);
$smarty->display("users.html");
} else { } else {
invalidCall(); invalidCall();
} }