diff options
author | Christoph Brill <egore911@gmail.com> | 2017-02-07 12:58:36 +0100 |
---|---|---|
committer | Christoph Brill <egore911@gmail.com> | 2017-02-07 12:58:36 +0100 |
commit | 91a65d6b80d597959d0dc57fff20dc199806a257 (patch) | |
tree | 8d2f23568d8d1f04c6c2915f0a3e99400d6eda65 /index.php | |
parent | 31275c503e2153a8c47456c55eafd17eb4d276d9 (diff) |
Drop last visit highlighting
This does not work properly with timezones
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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'; } |