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 = '