Vous devez etre identifies pour poster un nouvel element

\n"; } else { $nom = $_POST['nom'] or $nom = ""; $contenu = $_POST['contenu'] or $contenu = ""; $action = $_POST['action'] or $action = ""; if (empty($nom) or empty($contenu) or empty($nick)) { echo "

Nouvel element: $chemin[2]

"; aide(); echo "
Titre:
Message:
Action
"; } else { if ($action == "Accepter") { $query = "SELECT MAX(topic_id) from forum_$chemin[2]"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_array($result)) { $topic_id = $row[0]+1; } echo "

Ajout du topic: $topic_id

"; $query = "INSERT INTO forum_$chemin[2] (topic_id,com_id,nom,pseudo,date,contenu) VALUES('$topic_id','1','".text2html($nom)."','".text2html($nick)."','$date','".text2html($contenu)."')"; mysql_query($query) or die(mysql_error()."
$query"); echo "

Pseudo:
$nick
Titre
$nom
Message
$contenu

Retour :: Visualier"; } elseif($action=="Visualiser") { aide(); $date = preg_replace("/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})/","$3/$2/$1 à $4:$5:$6",$date); echo "

Nouvel element: $chemin[2]

"; echo "
Titre:
Message:
Action
$nom
par $nick le $date
"; $row = explode("\n",$contenu); foreach($row as $key) { echo "

$key

\n"; } echo "
\n"; } } } ?>