*/ function phorum_mod_to_index_after_mark_read_on_list() { if (phorum_page != 'list') return; // check for markread global $PHORUM; if (!empty($PHORUM["args"][1]) && $PHORUM["args"][1] == 'markread') { // setting all posts read unset($PHORUM['user']['newinfo']); phorum_db_newflag_allread(); // redirect to the index $dest_url = phorum_get_url(PHORUM_INDEX_URL); phorum_redirect_by_url($dest_url); exit(); } } ?>