mirror of
https://github.com/vrana/adminer.git
synced 2025-08-16 03:24:01 +02:00
Unobtrusive cookies
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@275 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user