Commit 70b48a7c authored by is161024's avatar is161024

Ansicht Cookie

parent 5f5e355c
......@@ -41,6 +41,7 @@ else
if(isset($_GET['ansicht']))
{
$_SESSION['ansicht']=$_GET['ansicht'];
setcookie('ansicht', $_GET['ansicht'], -1);
setcookie('ansicht', $_GET['ansicht'], time()+60*60*24*30);
}
if($_SESSION['ansicht']==1||$_COOKIE['ansicht']==1)
......@@ -131,7 +132,7 @@ function showCountDown() {
$login="<a href='login.php' rel='nofollow'>Login</a>";
}
if($_SESSION['ansicht']==1)
if($_SESSION['ansicht']==1||$_COOKIE['ansicht']==1)
{
$ansicht="<a rel=' alternate' href='?ansicht=0'>Standartansicht</a>";
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment