* under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or * (at your option) any later version. ***************************************************************************/ if (_uid === '_uid') { exit('sorry, you can not access this page'); } function check_return($returnto) { if (!$returnto || !strncmp($returnto, 't=error', 7)) { header('Location: /egroupware/fudforum/3814588639/index.php?t=index&' . _rsidl); } else { if (strpos($returnto, 'S=') === false && $GLOBALS['FUD_OPT_1'] & 128) { header('Location: /egroupware/fudforum/3814588639/index.php?' . $returnto . '&S=' . s); } else { header('Location: /egroupware/fudforum/3814588639/index.php?' . $returnto); } } exit; } if (_uid) { if (!isset($_GET['id'])) { user_mark_all_read(_uid); } else { if ((int) $_GET['id']) { user_mark_forum_read(_uid, (int) $_GET['id'], $usr->last_read); } } } check_return($usr->returnto); exit;
$message_data = ''; } if (_uid && isset($mark_read)) { ses_putvar((int) $usr->sid, $mark_read); } if (isset($thl)) { q('UPDATE phpgw_fud_thread SET views=views+1 WHERE id IN(' . implode(',', $thl) . ')'); } if (!$message_data) { if (isset($_GET['unread'])) { $message_data = '<tr><th align=middle>There are no unread messages matching your query.</th></tr>'; if (!$frm_id && !$th) { user_mark_all_read(_uid); } else { if ($frm_id) { user_mark_forum_read(_uid, $frm_id, $usr->last_read); } } } else { $message_data = '<tr><th align=middle>No Posts</th></tr>'; } } if (!$unread_limit && $total > $count) { if (!isset($_GET['mr'])) { $_SERVER['QUERY_STRING'] .= '&mr=1'; } $pager = tmpl_create_pager($start, $count, $total, '/egroupware/fudforum/3814588639/index.php?' . str_replace('&start=' . $start, '', $_SERVER['QUERY_STRING'])); } else { if ($unread_limit) { if (!isset($_GET['mark_page_read'])) { $_SERVER['QUERY_STRING'] .= '&mark_page_read=1&mr=1';