Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/old_sites/newepik/include/inc_forum/topicdel.php

(Deskargatu)
ok</h3>
<?
$action = $_POST["action"] or $action="";
$nom = $_POST["nom"];
$contenu = $_POST["contenu"];
$chemin[4] = preg_replace("[^0-9]","",$chemin[4]);



if (!$axx) {die("Not logged") ; }
if ($axx < 5) { die("Non autorise"); }



if ($chemin[5]  == "topicdel" and $action == "Supprimer")
{
    $query2 = "DELETE FROM forum_$chemin[2] WHERE topic_id='$chemin[3]'";
    $result2 = mysql_query($query2) or die("$query2<br>".mysql_error());
    echo "<p>Topic Supprime avec Succes</p>
	  <p><a href=\"/site/forum/$chemin[2]\">Retour</a></p>";
    
}
else
 {
    echo "<form action=\"/site/forum/$chemin[2]/$chemin[3]/$chemin[4]/topicdel\" method=\"post\">
	<dl>Supprimer le topic ? 
	<dd><input type=\"submit\" name=\"action\" value=\"Supprimer\" /> </dd>
	<dd><a href=\"/site/forum\">Retour</a></dd>	
	</dl>
	</form>
	";




}






?>