0 ) { $forum["last_post"] = phorum_date( $PHORUM["long_date"], $forum["last_post_time"] ); } else { $forum["last_post"] = ""; } if($PHORUM["DATA"]["LOGGEDIN"] && $PHORUM["show_new_on_index"]){ list($forum["new_messages"], $forum["new_threads"]) = phorum_db_newflag_get_unread_count($forum["forum_id"]); } } $forums_shown=true; $PHORUM["DATA"]["FORUMS"][] = $forum; } if(!$forums_shown){ // we did not show any forums here, redirect to login page. $login_url=phorum_get_url(PHORUM_LOGIN_URL); phorum_redirect_by_url($login_url); exit(); } $PHORUM["DATA"]["FORUMS"]=phorum_hook("index", $PHORUM["DATA"]["FORUMS"]); // set all our URL's phorum_build_common_urls(); include phorum_get_template( "header" ); phorum_hook("after_header"); include phorum_get_template( "index" ); phorum_hook("before_footer"); include phorum_get_template( "footer" ); ?>