File size: 853B
<?php
include 'db.php';
include 'functions.php';
headtag("$SiteName - Delete Comment");
$id=formget("id");
if($_POST["yes"])
{
$user=dump_udata("username");
if(dump_udata("moderator")=='1')
{
mysql_query("delete from forum_answer where id='".$id."'");
echo "<div class='success'>$id Comment Deleted Successfully! <a href='/wallarea'>Continue</a></div>";
}
else
{
echo "<div class='error'>You are not admin or moderator.</div>";
}
}
echo '<div class="form"><form method="post">
Do You Really Want To Delete This Comment? <br/>
<table><tr><td><input type="submit" name="yes" value="Yes"/></form></td><td><form action="/wallarea" method="post"><input type="submit" value="No"/></form></td></tr></table></div>';
echo '<div class="ad"><img src="/home.png"/> <a href="/">Home</a> | <a href="/user/dashboard">Dashboard</a></div>';
include 'foot.php';
?>