1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

Save e-mail from to cookie

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1082 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-09-09 20:49:30 +00:00
parent 1e55d4755e
commit 319cba4b11
4 changed files with 14 additions and 5 deletions

View File

@@ -154,6 +154,15 @@ function where_link($i, $column, $value) {
return "&where%5B$i%5D%5Bcol%5D=" . urlencode($column) . "&where%5B$i%5D%5Bop%5D=%3D&where%5B$i%5D%5Bval%5D=" . urlencode($value);
}
/** Set cookie valid for 1 month
* @param string
* @param string
* @return bool
*/
function cookie($name, $value) {
return setcookie($name, $value, gmmktime(0, 0, 0, gmdate("n") + 1), preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]));
}
/** Send Location header and exit
* @param string
* @param string