"; echo "
Administration // Forum hinzufügen

"; if (!is_admin($username)) { echo "
Sie haben keine Berechtigung zur Administration.

\n"; echo "
"; footer_show("footer.inc.php"); exit; } pw_pruefen($username,$password,0,0); $id = stripslashes($id); $id = str_replace("=","-",$id); $id = str_replace(",","-",$id); $titel = stripslashes($titel); $beschreibung = stripslashes($beschreibung); $titel = str_replace("|","&strich;",$titel); $beschreibung = str_replace("|","&strich;",$beschreibung); if (!$id || !$titel || !$beschreibung) { echo "Es wurden nicht alle Felder ausgefüllt.
"; echo "

Zurück"; echo ""; footer_show("footer.inc.php"); exit; } if(!eregi("^[a-zA-Z0-9]*$", $id)) { echo "Folgende ID ist ungültig: $id.

"; echo "

Zurück"; echo ""; footer_show("footer.inc.php"); exit; } if (!file_exists($board_pfad . "/" . $id . ".dat")) { $datei = @fopen($board_pfad . "/" . $id . ".dat","w+"); fwrite($datei, "$titel|$beschreibung|0||||"); fclose($datei); @chmod($board_pfad."/".$id.".dat",0777); $titel = str_replace("&strich;","|",$titel); $beschreibung = str_replace("&strich;","|",$beschreibung); echo "Es wurde ein Forum erstellt (ID: $id, Titel : $titel, Beschreibung: $beschreibung).
Das Forum kann erst benutzt werden, wenn Sie es einer Kategorie zuordnen."; } else { echo "Es gibt schon ein Forum mit der ID $id.

"; } echo "

Zurück"; echo ""; footer_show("footer.inc.php"); exit; ?>