Cleanup for overboard threads mod.
This commit is contained in:
parent
3c6fe6a341
commit
bb486431b0
|
@ -644,6 +644,16 @@ table.np_results_table {
|
||||||
font-size: 0.5em;
|
font-size: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* overboard style toggle */
|
||||||
|
.np_ob_style_toggle {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--color-highlight);
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
/* overboard posted_date */
|
/* overboard posted_date */
|
||||||
.np_ob_posted_date {
|
.np_ob_posted_date {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
|
@ -26,6 +26,19 @@ include "head.inc";
|
||||||
|
|
||||||
echo '<h1 class="np_thread_headline">' . basename(getcwd()) . '</h1>';
|
echo '<h1 class="np_thread_headline">' . basename(getcwd()) . '</h1>';
|
||||||
echo '<table cellpadding="0" cellspacing="0" class="np_buttonbar"><tr>';
|
echo '<table cellpadding="0" cellspacing="0" class="np_buttonbar"><tr>';
|
||||||
|
// If logged in: button for new only
|
||||||
|
if (isset($_COOKIE['mail_name'])) {
|
||||||
|
if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) {
|
||||||
|
if (isset($overboard) && ($overboard == true)) {
|
||||||
|
echo '<td>';
|
||||||
|
echo '<form target="' . $frame['content'] . '" action="overboard.php">';
|
||||||
|
echo '<button class="np_button_link" type="submit">new articles</button>';
|
||||||
|
echo '<input name="new" type="hidden" id="new" value="true">';
|
||||||
|
echo '</form>';
|
||||||
|
echo '</td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// View Latest button
|
// View Latest button
|
||||||
if (isset($overboard) && ($overboard == true)) {
|
if (isset($overboard) && ($overboard == true)) {
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
|
|
|
@ -113,7 +113,7 @@ function nntp2_open($nserver = 0, $nport = 0)
|
||||||
$nport = $CONFIG['remote_ssl'];
|
$nport = $CONFIG['remote_ssl'];
|
||||||
}
|
}
|
||||||
$ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30);
|
$ns = fsockopen("ssl://" . $nserver, $nport, $error, $errorString, 30);
|
||||||
if(!$ns) {
|
if (! $ns) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -2049,7 +2049,7 @@ function is_moderated($newsgroups)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($CONFIG['remote_server'] == '') {
|
if ($CONFIG['remote_server'] == '') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$ns = nntp2_open();
|
$ns = nntp2_open();
|
||||||
|
@ -2288,6 +2288,29 @@ function get_db_data_from_msgid($msgid, $group)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_group_array_from_msgid($msgid)
|
||||||
|
{
|
||||||
|
global $spooldir;
|
||||||
|
$database = $spooldir . '/articles-overview.db3';
|
||||||
|
$overview_dbh = overview_db_open($database);
|
||||||
|
$overview_query = $overview_dbh->prepare('SELECT * FROM overview WHERE msgid=:messageid');
|
||||||
|
$overview_query->execute([
|
||||||
|
'messageid' => $msgid
|
||||||
|
]);
|
||||||
|
$newsgroups = array();
|
||||||
|
$found = false;
|
||||||
|
while ($row = $overview_query->fetch()) {
|
||||||
|
$newsgroups[] = $row['newsgroup'];
|
||||||
|
$found = true;
|
||||||
|
}
|
||||||
|
$dbh = null;
|
||||||
|
if ($found) {
|
||||||
|
return $newsgroups;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function get_data_from_msgid($msgid, $thisgroup = null)
|
function get_data_from_msgid($msgid, $thisgroup = null)
|
||||||
{
|
{
|
||||||
global $spooldir;
|
global $spooldir;
|
||||||
|
|
|
@ -119,11 +119,9 @@ if (isset($_GET['thisgroup'])) {
|
||||||
$grouplist = file($groupconfig, FILE_IGNORE_NEW_LINES);
|
$grouplist = file($groupconfig, FILE_IGNORE_NEW_LINES);
|
||||||
}
|
}
|
||||||
|
|
||||||
show_overboard_header($grouplist);
|
|
||||||
|
|
||||||
// Determine default view style
|
// Determine default view style
|
||||||
if (isset($_COOKIE['mail_name'])) {
|
if (isset($_COOKIE['mail_name'])) {
|
||||||
if ($user_obstyle = get_config_value($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']), 'obstyle')) {
|
if ($user_obstyle = get_config_file_value($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']), 'obstyle')) {
|
||||||
$_SESSION['obstyle'] = $user_obstyle;
|
$_SESSION['obstyle'] = $user_obstyle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,7 +138,7 @@ if (! isset($_SESSION['obstyle'])) {
|
||||||
if (isset($_COOKIE['mail_name'])) {
|
if (isset($_COOKIE['mail_name'])) {
|
||||||
save_config_value($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']), 'obstyle', $_SESSION['obstyle'], true);
|
save_config_value($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']), 'obstyle', $_SESSION['obstyle'], true);
|
||||||
}
|
}
|
||||||
show_overboard_style_toggle();
|
show_overboard_header($grouplist);
|
||||||
|
|
||||||
$results = 0;
|
$results = 0;
|
||||||
|
|
||||||
|
@ -259,7 +257,7 @@ function expire_overboard($cachefile)
|
||||||
|
|
||||||
function display_threads($threads, $oldest)
|
function display_threads($threads, $oldest)
|
||||||
{
|
{
|
||||||
global $CONFIG, $OVERRIDES, $thissite, $logfile, $config_name, $spooldir, $config_dir, $snippetlength, $maxdisplay, $this_overboard, $article_age;
|
global $CONFIG, $OVERRIDES, $thissite, $logfile, $config_name, $spooldir, $config_dir, $snippetlength, $maxdisplay, $this_overboard, $article_age, $newonly;
|
||||||
$expireme = time() - ($article_age * 86400);
|
$expireme = time() - ($article_age * 86400);
|
||||||
$display = '<table cellspacing="0" width="100%" class="np_results_table">';
|
$display = '<table cellspacing="0" width="100%" class="np_results_table">';
|
||||||
if (! isset($threads)) {
|
if (! isset($threads)) {
|
||||||
|
@ -268,9 +266,9 @@ function display_threads($threads, $oldest)
|
||||||
krsort($threads);
|
krsort($threads);
|
||||||
}
|
}
|
||||||
// Get registered user settings
|
// Get registered user settings
|
||||||
|
$newonly = false;
|
||||||
if (isset($_COOKIE['mail_name'])) {
|
if (isset($_COOKIE['mail_name'])) {
|
||||||
if ($userdata = get_user_mail_auth_data($_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'));
|
$user_config = unserialize(file_get_contents($config_dir . '/userconfig/' . strtolower($_COOKIE['mail_name']) . '.config'));
|
||||||
$userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-blocked_posters.dat';
|
$userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-blocked_posters.dat';
|
||||||
if (file_exists($userfile)) {
|
if (file_exists($userfile)) {
|
||||||
|
@ -287,6 +285,10 @@ function display_threads($threads, $oldest)
|
||||||
$user_config['hide_unsub'] = 'hide';
|
$user_config['hide_unsub'] = 'hide';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Show NEW in Section only
|
||||||
|
if (isset($_REQUEST['new']) && $_REQUEST['new'] == true) {
|
||||||
|
$newonly = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build display array
|
// Build display array
|
||||||
|
@ -302,7 +304,6 @@ function display_threads($threads, $oldest)
|
||||||
$nicole[$this_overboard['threadlink'][$value]][$value] = $value;
|
$nicole[$this_overboard['threadlink'][$value]][$value] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$style = 0;
|
$style = 0;
|
||||||
$results = 0;
|
$results = 0;
|
||||||
foreach ($nicole as $key => $value) {
|
foreach ($nicole as $key => $value) {
|
||||||
|
@ -310,6 +311,7 @@ function display_threads($threads, $oldest)
|
||||||
if (! isset($target_head['msgid'])) {
|
if (! isset($target_head['msgid'])) {
|
||||||
$target_head = get_data_from_msgid($key);
|
$target_head = get_data_from_msgid($key);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip if not in registered users sub list
|
// Skip if not in registered users sub list
|
||||||
$checkgroup = $target_head['newsgroup'];
|
$checkgroup = $target_head['newsgroup'];
|
||||||
if (! isset($userdata[$checkgroup])) {
|
if (! isset($userdata[$checkgroup])) {
|
||||||
|
@ -317,6 +319,20 @@ function display_threads($threads, $oldest)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if only displaying new posts in section
|
||||||
|
if ($newonly) {
|
||||||
|
$allgroups = get_group_array_from_msgid($key);
|
||||||
|
foreach ($allgroups as $onegroup) {
|
||||||
|
if (isset($userdata[$onegroup])) {
|
||||||
|
$infofilename = $spooldir . "/" . $onegroup . "-lastarticleinfo.dat";
|
||||||
|
$lastarticleinfo = unserialize(file_get_contents($infofilename));
|
||||||
|
if ($userdata[$onegroup] > $lastarticleinfo['date']) {
|
||||||
|
continue 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$nohead = true;
|
$nohead = true;
|
||||||
$result_count = count($value);
|
$result_count = count($value);
|
||||||
foreach ($value as $new) {
|
foreach ($value as $new) {
|
||||||
|
@ -327,6 +343,24 @@ function display_threads($threads, $oldest)
|
||||||
if ($target['date'] < $oldest) {
|
if ($target['date'] < $oldest) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Skip if not in registered users sub list
|
||||||
|
$checkgroup = $target['newsgroup'];
|
||||||
|
if (! isset($userdata[$checkgroup])) {
|
||||||
|
if (isset($user_config['hide_unsub']) && $user_config['hide_unsub'] == 'hide') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Check if only displaying new posts in section
|
||||||
|
if ($newonly) {
|
||||||
|
$allgroups = get_group_array_from_msgid($new);
|
||||||
|
foreach ($allgroups as $onegroup) {
|
||||||
|
if (isset($userdata[$onegroup])) {
|
||||||
|
if ($userdata[$onegroup] > $target['date']) {
|
||||||
|
continue 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
$results ++;
|
$results ++;
|
||||||
$lone == '';
|
$lone == '';
|
||||||
$skip = '';
|
$skip = '';
|
||||||
|
@ -337,20 +371,12 @@ function display_threads($threads, $oldest)
|
||||||
$display .= '<tr class="np_result_line1"><td class="np_result_line1" style="word-wrap:break-word";>';
|
$display .= '<tr class="np_result_line1"><td class="np_result_line1" style="word-wrap:break-word";>';
|
||||||
}
|
}
|
||||||
$display .= '<center>';
|
$display .= '<center>';
|
||||||
// Check user blocklist
|
|
||||||
$block = false;
|
|
||||||
foreach ($blocked_user_config as $key => $value) {
|
|
||||||
$blockme = '/' . addslashes($key) . '/';
|
|
||||||
if (preg_match($blockme, $target_head['name'])) {
|
|
||||||
$block = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ($block) {}
|
|
||||||
$url = $thissite . "/article-flat.php?id=" . $target_head['number'] . "&group=" . _rawurlencode($target_head['newsgroup']) . "#" . $target_head['number'];
|
$url = $thissite . "/article-flat.php?id=" . $target_head['number'] . "&group=" . _rawurlencode($target_head['newsgroup']) . "#" . $target_head['number'];
|
||||||
$display .= '<p class=np_ob_subject>';
|
$display .= '<p class=np_ob_subject>';
|
||||||
$display .= '<b><a href="' . $url . '"><span>' . headerDecode($target_head['subject']) . '</span></a></b></p>';
|
$display .= '<b><a href="' . $url . '"><span>' . headerDecode($target_head['subject']) . '</span></a></b></p>';
|
||||||
$display .= '<a href="thread.php?group=' . _rawurlencode($target_head['newsgroup']) . '">' . $target_head['newsgroup'] . '</a>';
|
$display .= '<a href="thread.php?group=' . _rawurlencode($target_head['newsgroup']) . '">' . $target_head['newsgroup'] . '</a>';
|
||||||
|
// RETRO - Determining whether to show snippet in each head may still have bugs
|
||||||
|
// meaning, it might show when it shouldn't or not when it should. Not sure yet.
|
||||||
if ($result_count > 1 && isset($target_head['date'])) {
|
if ($result_count > 1 && isset($target_head['date'])) {
|
||||||
$poster = get_poster_name(mb_decode_mimeheader($target_head['name']));
|
$poster = get_poster_name(mb_decode_mimeheader($target_head['name']));
|
||||||
$block = false;
|
$block = false;
|
||||||
|
@ -427,7 +453,7 @@ function display_threads($threads, $oldest)
|
||||||
|
|
||||||
function display_flat($threads, $oldest)
|
function display_flat($threads, $oldest)
|
||||||
{
|
{
|
||||||
global $CONFIG, $OVERRIDES, $thissite, $logfile, $spooldir, $config_name, $config_dir, $snippetlength, $maxdisplay, $this_overboard, $article_age;
|
global $CONFIG, $OVERRIDES, $thissite, $logfile, $spooldir, $config_name, $config_dir, $snippetlength, $maxdisplay, $this_overboard, $article_age, $newonly;
|
||||||
$expireme = time() - ($article_age * 86400);
|
$expireme = time() - ($article_age * 86400);
|
||||||
$display = '<table cellspacing="0" width="100%" class="np_results_table">';
|
$display = '<table cellspacing="0" width="100%" class="np_results_table">';
|
||||||
if (! isset($threads)) {
|
if (! isset($threads)) {
|
||||||
|
@ -436,6 +462,7 @@ function display_flat($threads, $oldest)
|
||||||
krsort($threads);
|
krsort($threads);
|
||||||
}
|
}
|
||||||
// Get registered user settings
|
// Get registered user settings
|
||||||
|
$newonly = false;
|
||||||
if (isset($_COOKIE['mail_name'])) {
|
if (isset($_COOKIE['mail_name'])) {
|
||||||
if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) {
|
if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) {
|
||||||
$userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat';
|
$userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat';
|
||||||
|
@ -455,6 +482,10 @@ function display_flat($threads, $oldest)
|
||||||
$user_config['hide_unsub'] = 'hide';
|
$user_config['hide_unsub'] = 'hide';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Show NEW in Section only
|
||||||
|
if (isset($_REQUEST['new']) && $_REQUEST['new'] == true) {
|
||||||
|
$newonly = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$results = 0;
|
$results = 0;
|
||||||
foreach ($threads as $key => $value) {
|
foreach ($threads as $key => $value) {
|
||||||
|
@ -471,6 +502,17 @@ function display_flat($threads, $oldest)
|
||||||
if ($target['date'] < $oldest) {
|
if ($target['date'] < $oldest) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// Check if only displaying new posts in section
|
||||||
|
if ($newonly) {
|
||||||
|
$allgroups = get_group_array_from_msgid($value);
|
||||||
|
foreach ($allgroups as $onegroup) {
|
||||||
|
if (isset($userdata[$onegroup])) {
|
||||||
|
if ($userdata[$onegroup] > $target['date']) {
|
||||||
|
continue 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if ($target['date'] < $expireme) {
|
if ($target['date'] < $expireme) {
|
||||||
unset($this_overboard['threads'][$target['date']]);
|
unset($this_overboard['threads'][$target['date']]);
|
||||||
unset($this_overboard['threadlink'][$new]);
|
unset($this_overboard['threadlink'][$new]);
|
||||||
|
@ -500,7 +542,7 @@ function display_flat($threads, $oldest)
|
||||||
$display .= '<b><a href="' . $url . '"><span>' . headerDecode($target['subject']) . '</span></a></b>';
|
$display .= '<b><a href="' . $url . '"><span>' . headerDecode($target['subject']) . '</span></a></b>';
|
||||||
$display .= '<p class=np_ob_body>';
|
$display .= '<p class=np_ob_body>';
|
||||||
$display .= 'by: <b><i><span class="visited">' . create_name_link($poster['name'], $poster['from']) . '</span></i></b>';
|
$display .= 'by: <b><i><span class="visited">' . create_name_link($poster['name'], $poster['from']) . '</span></i></b>';
|
||||||
|
|
||||||
$display .= '</p>';
|
$display .= '</p>';
|
||||||
// link for (thread), if possible
|
// link for (thread), if possible
|
||||||
if (isset($this_overboard['threadlink'][$value])) {
|
if (isset($this_overboard['threadlink'][$value])) {
|
||||||
|
@ -539,6 +581,7 @@ function show_overboard_header($grouplist)
|
||||||
echo '<table cellpadding="0" cellspacing="0" class="np_buttonbar"><tr>';
|
echo '<table cellpadding="0" cellspacing="0" class="np_buttonbar"><tr>';
|
||||||
// Refresh button
|
// Refresh button
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
|
echo '<div style="float:left;">';
|
||||||
echo '<form action="overboard.php">';
|
echo '<form action="overboard.php">';
|
||||||
echo '<input type="hidden" name="thisgroup" value="' . $_GET['thisgroup'] . '"/>';
|
echo '<input type="hidden" name="thisgroup" value="' . $_GET['thisgroup'] . '"/>';
|
||||||
if (isset($user_time)) {
|
if (isset($user_time)) {
|
||||||
|
@ -548,9 +591,8 @@ function show_overboard_header($grouplist)
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</td>';
|
echo '</div>';
|
||||||
// Article List button
|
// Article List button
|
||||||
echo '<td>';
|
|
||||||
echo '<form action="' . $file_thread . '">';
|
echo '<form action="' . $file_thread . '">';
|
||||||
echo '<input type="hidden" name="group" value="' . $grouplist[0] . '"/>';
|
echo '<input type="hidden" name="group" value="' . $grouplist[0] . '"/>';
|
||||||
echo '<button class="np_button_link" type="submit">' . htmlspecialchars(group_display_name($grouplist[0])) . '</button>';
|
echo '<button class="np_button_link" type="submit">' . htmlspecialchars(group_display_name($grouplist[0])) . '</button>';
|
||||||
|
@ -564,7 +606,6 @@ function show_overboard_header($grouplist)
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
}
|
}
|
||||||
echo '<td width=100%></td></tr></table>';
|
|
||||||
} else {
|
} else {
|
||||||
echo '<h1 class="np_thread_headline">';
|
echo '<h1 class="np_thread_headline">';
|
||||||
echo '<a href="' . $file_index . '" target=' . $frame['menu'] . '>' . basename(getcwd()) . '</a> / ';
|
echo '<a href="' . $file_index . '" target=' . $frame['menu'] . '>' . basename(getcwd()) . '</a> / ';
|
||||||
|
@ -573,7 +614,7 @@ function show_overboard_header($grouplist)
|
||||||
// Refresh button
|
// Refresh button
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
echo '<form action="overboard.php">';
|
echo '<form action="overboard.php">';
|
||||||
echo '<button class="np_button_link" type="submit">' . $text_article["refresh"] . '</button>';
|
echo '<button class="np_button_link" type="submit">overboard</button>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
// Newsgroups button (hidden)
|
// Newsgroups button (hidden)
|
||||||
|
@ -584,14 +625,21 @@ function show_overboard_header($grouplist)
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
echo '</td>';
|
echo '</td>';
|
||||||
}
|
}
|
||||||
echo '<td width=100%></td></tr></table>';
|
|
||||||
}
|
}
|
||||||
|
echo '</div><td></td>';
|
||||||
|
echo '<td class="np_ob_style_toggle">';
|
||||||
|
|
||||||
|
echo '<div style="float:right;">';
|
||||||
|
|
||||||
|
show_overboard_style_toggle();
|
||||||
|
echo '</div>';
|
||||||
|
echo '</td>';
|
||||||
|
echo '</tr></table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_overboard_style_toggle()
|
function show_overboard_style_toggle()
|
||||||
{
|
{
|
||||||
echo '<form method="post" action="' . $_SERVER['REQUEST_URI'] . '">';
|
echo '<form method="post" action="' . $_SERVER['REQUEST_URI'] . '">';
|
||||||
echo '<p class="np_ob_posted_date" style="text-align: right;">';
|
|
||||||
echo 'Display as: ';
|
echo 'Display as: ';
|
||||||
if ($_SESSION['obstyle'] == 'threads') {
|
if ($_SESSION['obstyle'] == 'threads') {
|
||||||
echo '<input type="radio" name="obstyle" value="threads" checked>Threads';
|
echo '<input type="radio" name="obstyle" value="threads" checked>Threads';
|
||||||
|
@ -606,13 +654,12 @@ function show_overboard_style_toggle()
|
||||||
}
|
}
|
||||||
echo '<input class="np_button_link" type="submit" value="Reload" name="reload">';
|
echo '<input class="np_button_link" type="submit" value="Reload" name="reload">';
|
||||||
echo '</form >';
|
echo '</form >';
|
||||||
echo '</p>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_overboard_footer($stats, $results, $iscached)
|
function show_overboard_footer($stats, $results, $iscached)
|
||||||
{
|
{
|
||||||
global $user_time, $rslight_version;
|
global $user_time, $rslight_version, $newonly;
|
||||||
if (isset($user_time)) {
|
if (isset($user_time) || $newonly) {
|
||||||
$recent = 'new';
|
$recent = 'new';
|
||||||
} else {
|
} else {
|
||||||
$recent = 'recent';
|
$recent = 'recent';
|
||||||
|
|
Loading…
Reference in New Issue