diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-28 20:14:05 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-04-28 20:14:05 +0000 |
| commit | 0e2d4c99030d61e14d2062a6ee5d3dbba6830065 (patch) | |
| tree | d9ced1af757820e2a970dca92bffa59b267fc8a0 /phpBB/index.php | |
| parent | ec21217a2ae82225e3cdfede7d36a414c2cf136e (diff) | |
| download | forums-0e2d4c99030d61e14d2062a6ee5d3dbba6830065.tar forums-0e2d4c99030d61e14d2062a6ee5d3dbba6830065.tar.gz forums-0e2d4c99030d61e14d2062a6ee5d3dbba6830065.tar.bz2 forums-0e2d4c99030d61e14d2062a6ee5d3dbba6830065.tar.xz forums-0e2d4c99030d61e14d2062a6ee5d3dbba6830065.zip | |
Added online users output to page header and from that, index
git-svn-id: file:///svn/phpbb/trunk@209 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
| -rw-r--r-- | phpBB/index.php | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index 171d77eb36..44d128d821 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -105,10 +105,12 @@ if($total_categories) for($i = 0; $i < $total_categories; $i++) { + $template->assign_block_vars("catrow", array( "CAT_ID" => $category_rows[$i]["cat_id"], - "CAT_DESC" => stripslashes($category_rows[$i]["cat_title"]) + "CAT_DESC" => stripslashes($category_rows[$i]["cat_title"]), + "U_VIEWCAT" => "index." . $phpEx . "?viewcat=" . $category_rows[$i]['cat_id'] ) ); @@ -159,16 +161,19 @@ if($total_categories) $moderators_links .= "<a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_id"][$mods]."\">".$forum_mods["forum_".$forum_rows[$j]["forum_id"]."_name"][$mods]."</a>"; } - $template->assign_block_vars("catrow.forumrow", array("FOLDER" => $folder_image, - "FORUM_NAME" => stripslashes($forum_rows[$j]["forum_name"]), - "FORUM_ID" => $forum_rows[$j]["forum_id"], - "FORUM_DESC" => stripslashes($forum_rows[$j]["forum_desc"]), - "ROW_COLOR" => $row_color, - "POSTS" => $forum_rows[$j]["forum_posts"], - "TOPICS" => $forum_rows[$j]["forum_topics"], - "LAST_POST" => $last_post, - "MODERATORS" => $moderators_links)); - + $template->assign_block_vars("catrow.forumrow", + array( + "FOLDER" => $folder_image, + "FORUM_NAME" => stripslashes($forum_rows[$j]["forum_name"]), + "FORUM_DESC" => stripslashes($forum_rows[$j]["forum_desc"]), + "ROW_COLOR" => $row_color, + "POSTS" => $forum_rows[$j]["forum_posts"], + "TOPICS" => $forum_rows[$j]["forum_topics"], + "LAST_POST" => $last_post, + "MODERATORS" => $moderators_links, + + "U_VIEWFORUM" => "viewforum." . $phpEx . "?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id'] . "&" . $forum_rows[$j]['forum_posts']) + ); } } @@ -182,4 +187,4 @@ else $template->pparse("body"); include('includes/page_tail.'.$phpEx); -?> +?>
\ No newline at end of file |
