aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/forums_display.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/forums_display.php')
-rw-r--r--phpBB/includes/forums_display.php18
1 files changed, 17 insertions, 1 deletions
diff --git a/phpBB/includes/forums_display.php b/phpBB/includes/forums_display.php
index 7810118158..ced439881c 100644
--- a/phpBB/includes/forums_display.php
+++ b/phpBB/includes/forums_display.php
@@ -1,6 +1,6 @@
<?php
/***************************************************************************
- * display_forums.php
+ * functions_display.php
* ------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
@@ -19,6 +19,22 @@
*
***************************************************************************/
+function display_forums($left_id=0, $right_id=0)
+{
+ global $db, $template, $auth;
+
+ $where_sql = ($left_id && $right_id) ? " WHERE left_id > $left_id AND left_id < $right_id" : '';
+ $sql = 'SELECT * FROM ' . FORUMS_TABLE . $where_sql . ' ORDER BY left_id ASC';
+ $result = $db->sql_query($sql);
+
+ $cat_header =
+ while ($row = $db->sql_fetchrow($result))
+ {
+
+ }
+
+}
+
foreach ($forum_rows as $row)
{
extract($row);