boards'; if($_GET['action']=="mods") { $boardID = $_GET['boardID']; echo'

moderators

'; $moderators=safe_query("SELECT * FROM ".PREFIX."user_groups WHERE moderator='1'"); $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_boards WHERE boardID='$boardID'"); $ds=mysql_fetch_array($ergebnis); echo'Choose moderators for: '.$ds[name].''; echo'
'; } elseif($_GET['action']=="add") { // neues Board ertstellen $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_categories ORDER BY sort"); $cats=''; echo'
Category: '.$cats.'
Boardname:
Boardinfo:
Boardtype: public intern
 
'; } elseif($_GET['action']=="edit") { // Board bearbeiten $boardID = $_GET['boardID']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_boards WHERE boardID='$boardID'"); $ds=mysql_fetch_array($ergebnis); $category=safe_query("SELECT * FROM ".PREFIX."forum_categories ORDER BY sort"); $cats=''; echo'
Category: '.$cats.'
Boardname:
Boardinfo:
Boardtype: '; if($ds[intern]) echo' public intern'; else echo' public intern'; echo'
'; } elseif($_GET['action']=="addcat") { // Kategorie erstellen echo'
Category-Name:
Category-Type: public intern
Category-Info:
 
'; } elseif($_GET['action']=="editcat") { // Kategorie bearbeiten $catID = $_GET['catID']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_categories WHERE catID='$catID'"); $ds=mysql_fetch_array($ergebnis); echo'
Category-Name:
Category-Type: '; if($ds[intern]) echo' public intern'; else echo' public intern'; echo'
Category-Info:
'; } else { echo' '; echo'
'; $ergebnis=safe_query("SELECT * FROM ".PREFIX."forum_categories ORDER BY sort"); $anz=safe_query("SELECT count(catID) FROM ".PREFIX."forum_categories"); $anz=mysql_result($anz, 0); while($ds=mysql_fetch_array($ergebnis)) { $ds[intern] ? $type="INTERN" : $type="public"; echo''; $boards=safe_query("SELECT * FROM ".PREFIX."forum_boards WHERE category='$ds[catID]' ORDER BY sort"); $anzboards=safe_query("SELECT count(boardID) FROM ".PREFIX."forum_boards WHERE category='$ds[catID]'"); $anzboards=mysql_result($anzboards, 0); while($db=mysql_fetch_array($boards)) { if($db[intern]) { $icon=''; $type='INTERN'; } else { $icon=''; $type="public"; } echo''; } } $boards=safe_query("SELECT * FROM ".PREFIX."forum_boards WHERE category='0' ORDER BY sort"); $anzboards=safe_query("SELECT count(boardID) FROM ".PREFIX."forum_boards WHERE category='0'"); $anzboards=mysql_result($anzboards, 0); while($db=mysql_fetch_array($boards)) { if($db[intern]) { $icon=''; $type='INTERN'; } else { $icon=''; $type="public"; } echo''; } $set=mysql_fetch_array(safe_query("SELECT hideboards FROM ".PREFIX."settings")); if($set[hideboards]) $hideinternboards=''; else $hideinternboards=''; echo'
Boardname: Type: Mods: Actions: Sort:
• '.$ds[name].' '.$type.'
'.$icon.' '.$db[name].' '.$type.'
'.$icon.' '.$db[name].' '.$type.'
'.$hideinternboards.' Hide intern Boards and Categorys?
'; } ?>