From a87703788e1c881173b4f09b41cc38dc30ced07f Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Sun, 16 Sep 2001 12:59:00 +0000 Subject: Various changes git-svn-id: file:///svn/phpbb/trunk@1047 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions.php | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'phpBB/includes') diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index ecc1727452..155259cddf 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -182,43 +182,44 @@ function make_jumpbox() return($boxstring); } -function make_forum_box($box_name, $default_forum = -1) +// +// Simple version of jumpbox, just lists authed forums +// +function make_forum_select($box_name) { - global $db; + global $db, $userdata; - $limit_forums = ""; + $is_auth_ary = auth(AUTH_READ, AUTH_LIST_ALL, $userdata); $sql = "SELECT forum_id, forum_name - FROM " . FORUMS_TABLE . " + FROM " . FORUMS_TABLE . " ORDER BY cat_id, forum_order"; - if(!$q_forums = $db->sql_query($sql)) + 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 = '' . $forum_list . ''; } - return($boxstring); + return($forum_list); } + // // Initialise user settings on page load function init_userprefs($userdata) -- cgit v1.2.1