get_var( "SELECT topic_id FROM $db->forum_topics WHERE forum_id = $idf AND forum_topic_id = $fil" ); $topic = get_topic( $topic_id ); if( $topic->read ) { $url = $topic->get_permalink(); if( !empty( $_REQUEST['pag'] ) ) { $url .= '?pag=' . (int) $_REQUEST['pag']; } rc_redirect( $url, 301 ); } else { rc_not_found( 'forums' ); } ?>