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 | |
parent | 31275c503e2153a8c47456c55eafd17eb4d276d9 (diff) |
Drop last visit highlighting
This does not work properly with timezones
-rw-r--r-- | details.php | 4 | ||||
-rwxr-xr-x | index.php | 13 |
2 files changed, 0 insertions, 17 deletions
diff --git a/details.php b/details.php index 9b77c1d..786c2d6 100644 --- a/details.php +++ b/details.php @@ -18,10 +18,6 @@ foreach ($lines as $line_num => $line) { $anything_displayed = true; $user = htmlentities($user, ENT_QUOTES); $time = get_time($line); - if (isset($last_visit) && $last_visit < $time) { - echo '<hr/>'; - unset($last_visit); - } echo '<span class="user_'.$user_clean.'">'; $line = htmlentities($line, ENT_QUOTES); if ($show_html == 'true') { @@ -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'; } |