aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-02-24 00:31:58 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-02-24 00:31:58 +0000
commitddc2cd6eadff7f0284e3ec37814b55a7c090cf20 (patch)
tree590f5f701f1e7af55ac441d8f892a347da292d96 /phpBB/index.php
parent4e5538cb78ceb8e93ae10ec9ad306547e6014972 (diff)
downloadforums-ddc2cd6eadff7f0284e3ec37814b55a7c090cf20.tar
forums-ddc2cd6eadff7f0284e3ec37814b55a7c090cf20.tar.gz
forums-ddc2cd6eadff7f0284e3ec37814b55a7c090cf20.tar.bz2
forums-ddc2cd6eadff7f0284e3ec37814b55a7c090cf20.tar.xz
forums-ddc2cd6eadff7f0284e3ec37814b55a7c090cf20.zip
Centralise common includes and setup
git-svn-id: file:///svn/phpbb/trunk@38 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index 8d407707d5..b28f842603 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -22,17 +22,11 @@
*
***************************************************************************/
include('extension.inc');
-include('config.'.$phpEx);
-include('template.inc');
-include('functions/sessions.'.$phpEx);
-include('functions/auth.'.$phpEx);
-include('functions/functions.'.$phpEx);
-include('functions/error.'.$phpEx);
-include('db.'.$phpEx);
+include('common.'.$phpEx);
-$total_users = get_user_count($db, $users_table);
-$total_posts = get_total_posts($db, $forums_table);
-$newest_userdata = get_newest_user($db, $users_table);
+$total_users = get_user_count($db, "");
+$total_posts = get_total_posts($db, "");
+$newest_userdata = get_newest_user($db, "");
$newest_user = $newest_userdata["username"];
$newest_uid = $newest_userdata["user_id"];
$users_browsing = "4 Users";
@@ -63,7 +57,7 @@ if($total_categories)
$total_forums = $db->sql_numrows($q_forums);
$forum_rows = $db->sql_fetchrowset($q_forums);
-
+
for($i = 0; $i < $total_categories; $i++)
{
$template->set_var(array("CAT_ID" => $category_rows[$i]["cat_id"],
@@ -107,11 +101,13 @@ if($total_categories)
"TOPICS" => $topics,
"LAST_POST" => $last_post,
"MODERATORS" => $moderators));
+
$template->parse("forums", "forumrow", true);
} // if ... then
} // for total forums
$template->parse("cats", "forums", true);
$template->set_var("forums", "");
+
} // for ... categories
}// if ... total_categories