From 4c904551dca322cefecb2979d8993804af5c4780 Mon Sep 17 00:00:00 2001 From: Tristan Schneider Date: Sat, 10 Feb 2024 23:51:36 +0100 Subject: [PATCH] change word colour system --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index 428756a..65e787d 100644 --- a/index.php +++ b/index.php @@ -6,13 +6,12 @@ header("Cache-Control: no-cache, no-store, must-revalidate"); > 3) % 51))."%, "; - $css .= (50 + (($number >> 5) % 51))."%);"; + $css .= (50 + (($number >> 5) % 31))."%);"; // maximal 80%, es soll nicht einfach weiß sein return $css; } @@ -47,7 +46,8 @@ if (array_key_exists("submitted", $_REQUEST)) { if ($botrequest) { $content .= "background-color: darksalmon; color: white;'>"; } else { - $content .= get_color_from_ip($_SERVER['REMOTE_ADDR'])."'>"; + // Farbe hängt ab von Benutzer und ändert sich nach gewisser Zeit. + $content .= get_color_from_userdata($_REQUEST["user"].strval(intdiv(time(),60*60*24*7)))."'>"; } $ends_of_sentence = ['.', '!', '?'];