60) { $_SESSION['last_access'] = time(); } $_SESSION['isframed'] = 1; if (isset($frames_on) && $frames_on === true) { ?> ' . basename(getcwd()) . ''; echo ''; // If logged in: button for new only if (isset($_COOKIE['mail_name'])) { if (isset($OVERRIDES['overboard_disable_new_link']) && $OVERRIDES['overboard_disable_new_link'] === true) { $newlink = false; } else { $newlink = true; } if ($newlink) { if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { if (isset($overboard) && ($overboard == true)) { echo ''; } } } if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat'; $user_config = unserialize(file_get_contents($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']) . '.config')); if (isset($_POST['hide_unsub'])) { $user_config['hide_unsub'] = $_POST['hide_unsub']; file_put_contents($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']) . '.config', serialize($user_config)); } } } // View Latest button if (isset($overboard) && ($overboard == true)) { echo ''; } else { // echo htmlspecialchars($CONFIG['title_full']); } // Search button echo ''; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; flush(); // Subscribe to group if (isset($_GET['subscribe'])) { if (isset($_COOKIE['mail_name'])) { if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat'; $thisgroup = _rawurldecode($_GET['subscribe']); $userdata[$thisgroup] = time(); file_put_contents($userfile, serialize($userdata)); } } } // Unsubscribe from group if (isset($_GET['unsub'])) { if (isset($_COOKIE['mail_name'])) { if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat'; $newsubs = array(); $thisgroup = _rawurldecode($_GET['unsub']); foreach ($userdata as $key => $usertime) { if ($key !== $thisgroup) { $newsubs[$key] = $usertime; } } file_put_contents($userfile, serialize($newsubs)); } } } // Mark group as read if (isset($_GET['mark_read'])) { if (isset($_COOKIE['mail_name'])) { if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat'; $user_config = unserialize(file_get_contents($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']) . '.config')); $userdata[$_GET['mark_read']] = time(); file_put_contents($userfile, serialize($userdata)); } } } $newsgroups = groups_read($server, $port); echo '
'; if (isset($frames_on) && $frames_on === true) { groups_show_frames($newsgroups); } else { groups_show($newsgroups); } echo '
'; $sessions_data = file_get_contents($spooldir . '/sessions.dat'); echo '

' . $sessions_data . '

'; include "tail.inc"; ?>