Update index.php

This commit is contained in:
2025-12-30 11:30:53 +01:00
parent 76408f6e35
commit b4c151c3bf

View File

@@ -1,12 +1,12 @@
<?php
// PHP: theme onthouden via cookie
$theme = "normal";
if(isset($_COOKIE['theme'])) {
$theme = $_COOKIE['theme'];
}
if(isset($_GET['theme'])) {
$theme = $_GET['theme'] === "hacker" ? "hacker" : "normal";
setcookie('theme', $theme, time() + (86400 * 30), "/"); // 30 dagen bewaren
setcookie('theme', $theme, time() + (86400 * 30), "/");
header("Location: ".$_SERVER['PHP_SELF']);
exit();
}
@@ -25,7 +25,7 @@ html, body {
overflow: auto;
font-family: monospace, monospace;
color: #a9b594b3;
background: linear-gradient(120deg, #245da4, #291451, #1e0f27, #1c0917);
background: linear-gradient(120deg, #245da4, #291451, #1e0f27, #b71b8dff);
background-size: 400% 400%;
animation: bgFade 10s ease infinite;
transition: background 0.3s, color 0.3s;