Example sets admin_lang cookie
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@903 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
197b1ec133
commit
e933baa29b
|
@ -180,8 +180,8 @@ if (file_exists(dirname(__FILE__) . "/" . $_SERVER["argv"][1] . "/index.php")) {
|
||||||
$project = $_SERVER["argv"][1];
|
$project = $_SERVER["argv"][1];
|
||||||
array_shift($_SERVER["argv"]);
|
array_shift($_SERVER["argv"]);
|
||||||
}
|
}
|
||||||
if (isset($_SERVER["argv"][1])) {
|
|
||||||
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
||||||
|
if (isset($_SERVER["argv"][1])) {
|
||||||
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
||||||
if (isset($_SERVER["argv"][2]) || !isset($langs[$_COOKIE["adminer_lang"]])) {
|
if (isset($_SERVER["argv"][2]) || !isset($langs[$_COOKIE["adminer_lang"]])) {
|
||||||
echo "Usage: php compile.php [adminer] [lang]\nPurpose: Compile adminer[-lang].php from adminer/index.php.\n";
|
echo "Usage: php compile.php [adminer] [lang]\nPurpose: Compile adminer[-lang].php from adminer/index.php.\n";
|
||||||
|
|
Loading…
Reference in a new issue