From 255304d87a14d8a61c2fa987b03f31dbd4f493e2 Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Wed, 11 Jul 2001 02:19:13 +0000 Subject: Split is half done... don't try and use it though its current b0rked :) git-svn-id: file:///svn/phpbb/trunk@627 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 27d980ccb4..2402f5efca 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -184,6 +184,43 @@ function make_jumpbox() return($boxstring); } +function make_forum_box($box_name, $default_forum = -1) +{ + global $db; + + $limit_forums = ""; + + $sql = "SELECT forum_id, forum_name + FROM ".FORUMS_TABLE." + ORDER BY cat_id, forum_order"; + if(!$q_forums = $db->sql_query($sql)) + { + message_die(GENERAL_ERROR, "Couldn't obtain forums information.", "", __LINE__, __FILE__, $sql); + } + $total_forums = $db->sql_numrows($q_forums); + $forum_rows = $db->sql_fetchrowset($q_forums); + + $boxstring = '