Unobtrusive cookies
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
4c1bf36e0b
commit
a9b0320c38
|
@ -32,7 +32,7 @@ function switch_lang() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["lang"])) {
|
if (isset($_GET["lang"])) {
|
||||||
setcookie("lang", $_GET["lang"], strtotime("+1 month"));
|
setcookie("lang", $_GET["lang"], strtotime("+1 month"), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||||
$_COOKIE["lang"] = $_GET["lang"];
|
$_COOKIE["lang"] = $_GET["lang"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
if (isset($_POST["query"])) {
|
if (isset($_POST["query"])) {
|
||||||
setcookie("highlight", $_POST["highlight"], strtotime("+1 month"));
|
setcookie("highlight", $_POST["highlight"], strtotime("+1 month"), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
|
||||||
$_COOKIE["highlight"] = $_POST["highlight"];
|
$_COOKIE["highlight"] = $_POST["highlight"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue