summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorChristoph Brill <egore911@gmail.com>2017-02-07 12:58:36 +0100
committerChristoph Brill <egore911@gmail.com>2017-02-07 12:58:36 +0100
commit91a65d6b80d597959d0dc57fff20dc199806a257 (patch)
tree8d2f23568d8d1f04c6c2915f0a3e99400d6eda65 /index.php
parent31275c503e2153a8c47456c55eafd17eb4d276d9 (diff)
Drop last visit highlighting
This does not work properly with timezones
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/index.php b/index.php
index e5093ac..2cd5506 100755
--- a/index.php
+++ b/index.php
@@ -23,19 +23,6 @@ if (isset($date)) {
$prevday = date_sub(date_create_from_format("Y-m-d", $date), $oneday)->format("Y-m-d");
$nextday = date_add(date_create_from_format("Y-m-d", $date), $oneday)->format("Y-m-d");
- // Set a cookie to store the reference to the last time we showed the log
- if (isset($_COOKIE[$channel . '_last_visit'])) {
- $last_visit = $_COOKIE[$channel . '_last_visit'];
- if ($date == date('Y-m-d', $last_visit)) {
- $last_visit = date('H:i', $last_visit);
- setcookie($channel . '_last_visit', time(), time()+2592000);
- } else {
- unset($last_visit);
- }
- } else {
- setcookie($channel . '_last_visit', time(), time()+2592000);
- }
-
} else {
$title = 'DRI IRC log overview';
}