4 $page_name = 'Board Editor';
5 $level_restriction = ADMIN
;
8 require 'include/levels.php';
9 foreach ( array_keys($cfg['levels']) as $level ) {
10 list($name) = explode(': ', $cfg['leveldesc'][$level]);
11 $levels[$level] = $name;
14 function levlist($fieldname, $levelnum = INACTIVE_USER
)
18 $box = '<select name="'.$fieldname.'">';
19 foreach ( $levels as $a => $b )
20 $box .= '<option value="'.$a.( $levelnum == $a ?
'" selected="selected' : '' ).'">'.$a.': '.$b."</option>\n";
21 return $box."</select>\n";
26 $tmp = mysql_query('SELECT * FROM `board-groups`');
27 while ( $g = mysql_fetch_assoc($tmp) ) {
29 echo '<h3>Group ID ',implode(': ', $g),'</h3>
30 <table><thead><tr><th>Board Name, ID, Caption</th><th>View Level</th><th>Post Level</th><th>Topic Level</th></tr></thead><tbody>';
32 $tmp = mysql_query('SELECT * FROM `boards` WHERE `group` = '.$g['group']);
33 while ( $b = mysql_fetch_assoc($tmp) ) {
34 echo '<tr class=',colour(),">\n",
35 ' <td>',$b['name'],' (',$b['board'],')<br/><small>',$b['caption'],"</small></td>\n",
36 ' <td>',$b['view_level'],'</td><td>',$b['post_level'],'</td><td>',$b['topic_level'],"</td>\n",