function class_list($Selected=0){ global $Classes; $Return = ''; foreach ($Classes as $ID => $Class) { if ($Class['Secondary']) { continue; } $Name = $Class['Name']; $Level = $Class['Level']; $Return.=''."\n"; } reset($Classes); return $Return; } if(!check_perms('admin_manage_forums')) { error(403); } show_header('Forum Management'); $DB->query('SELECT ID, Name FROM forums ORDER BY Sort'); $ForumArray = $DB->to_array(); // used for generating the 'parent' drop down list // Replace the old hard-coded forum categories unset($ForumCats); $ForumCats = $Cache->get_value('forums_categories'); if ($ForumCats === false) { $DB->query("SELECT ID, Name FROM forums_categories"); $ForumCats = array(); while (list($ID, $Name) = $DB->next_record()) { $ForumCats[$ID] = $Name; } $Cache->cache_value('forums_categories', $ForumCats, 0); //Inf cache. } $DB->query('SELECT ID, CategoryID, Sort, Name, Description, MinClassRead, MinClassWrite, MinClassCreate, AutoLock FROM forums ORDER BY CategoryID, Sort ASC'); ?>
Category | Sort | Name | Description | Min class read | Min class write | Min class create | Autolock | Submit |
Create forum | ||||||||