Back to home");
}
include "scripts/pageheader.php";
$res = mysql_query("SELECT * FROM mods WHERE mod_id=$id",$handle) or SQLerror("MySQL Query Error","Error finding entry $id");
$row = mysql_fetch_row($res) or die("row error");
if (is_member_moderator($_SESSION['user']) || $_SESSION['user']==$row[3]){
}else{
SQLerror("Deleting Denied","You do not own that entry, and you are not a moderator");
}
// --------------------------
// Delete Row
// --------------------------
$do=true;
$name=$_POST['mod_name'];
if ($name==""){
$do=false;
$name=$row[1];
}
if ($do==true){
$name=mysql_real_escape_string($name);
mysql_query("DELETE FROM mods WHERE name='$name'",$handle) or SQLerror("MySQL Query Error","Error finding entry $name");
// 3m specific removal (by Phitherek_)
mysql_query("DELETE FROM 3m_specific WHERE id=".$id, $handle);
// End of Phitherek_' s code
header("location: index.php");
}
?>