diff options
author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-11-08 03:33:58 +0000 |
---|---|---|
committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2002-11-08 03:33:58 +0000 |
commit | 097a1caca88983473cefad53183d30f820adcb4a (patch) | |
tree | e65287620f24bbce5a46beb55ffed419d5bfbc05 /phpBB/index.php | |
parent | 5d859740eeb8ec16d947df78ff51c7e4e616bc49 (diff) | |
download | forums-097a1caca88983473cefad53183d30f820adcb4a.tar forums-097a1caca88983473cefad53183d30f820adcb4a.tar.gz forums-097a1caca88983473cefad53183d30f820adcb4a.tar.bz2 forums-097a1caca88983473cefad53183d30f820adcb4a.tar.xz forums-097a1caca88983473cefad53183d30f820adcb4a.zip |
Cleaned up viewforum/index, altered template class to replace missing lang strings with a nicely formatted text, pre-implemented topics prefetching and broke some things.
git-svn-id: file:///svn/phpbb/trunk@3018 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r-- | phpBB/index.php | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index 737bdaa647..f3342e78ce 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -81,45 +81,8 @@ else $l_total_user_s = $user->lang['Registered_users_total']; } -// Forum moderators ... a static template var could allow us -// to drop these queries ... -//$forum_moderators = array(); -//get_moderators($forum_moderators); - -// Set some vars -$root_id = $branch_root_id = $cat_id; -$forum_rows = $subforums = $nav_forums = array(); - -if ($cat_id == 0) -{ - $is_nav = FALSE; - $total_posts = 0; - switch (SQL_LAYER) - { - case 'oracle': - $sql = 'SELECT f.*, u.username - FROM ' . FORUMS_TABLE . ' f, ' . USERS_TABLE . 'u - WHERE f.forum_last_poster_id = u.user_id(+) - ORDER BY f.left_id'; - break; - - default: - $sql = 'SELECT f.*, u.username - FROM ' . FORUMS_TABLE . ' f - LEFT JOIN ' . USERS_TABLE . ' u ON f.forum_last_poster_id = u.user_id - ORDER BY f.left_id'; - } - - $sql = 'SELECT * FROM ' . FORUMS_TABLE . ' ORDER BY left_id'; -} - - include($phpbb_root_path . 'includes/functions_display.' . $phpEx); -display_forums(array( - 'forum_id' => 0, - 'left_id' => 0, - 'right_id' => 0 -)); +display_forums(array('forum_id' => 0)); if ($total_posts == 0) { @@ -154,23 +117,6 @@ $template->assign_vars(array( 'U_MARK_READ' => "index.$phpEx$SID&mark=forums") ); -foreach ($nav_forums as $row) -{ - if ($row['forum_status'] == ITEM_CATEGORY) - { - $link = 'index.' . $phpEx . $SID . '&c=' . $row['forum_id']; - } - else - { - $link = 'viewforum.' . $phpEx . $SID . '&f=' . $row['forum_id']; - } - - $template->assign_block_vars('navlinks', array( - 'FORUM_NAME' => $row['forum_name'], - 'U_VIEW_FORUM' => $link - )); -} - // Start output of page $page_title = $user->lang['Index']; include($phpbb_root_path . 'includes/page_header.'.$phpEx); |