");
$status = "Updated Message ID#{$_GET['id']} and emailed {$_GET['email']}.";
} elseif ($_GET['f'] == "reject") {
$r = db_query("delete from messages where id=".$_GET['id']);
mail($_GET['email'],"AngryOx Message Rejected.","The answering machine message you submitted to\nAngryOx.com has been rejected. Sorry!\nFeel free to submit another.\n\nPeter\nThe AngryOx Guy\nhttp://AngryOx.com/weird/messages/", "From: AngryOx ");
$status = "Rejected and Deleted Message ID#{$_GET['id']} and emailed {$_GET['email']}.";
}
echo "Home
";
echo $status."";
$r = db_query("select * from messages where verified=1 and approved=0 order by date desc");
$num = mysql_num_rows($r);
if ($num>0) {
echo "Verified!!!";
echo "";
while($row=mysql_fetch_array($r)) {
$link = "approve | reject";
$link .= " | edit";
echo "".$row['id']." | ".$row['date']." | ".nl2br($row['text'])." | ".$row['email']." | ".$link." |
\n";
}
echo "
";
}
echo "";
$r = db_query("select * from messages where verified=0 and approved=0 order by date desc");
$num2 = mysql_num_rows($r);
if ($num2>0) {
echo "Unverified";
echo "";
while($row=mysql_fetch_array($r)) {
$link = "approve | reject";
$link .= " | edit";
echo "".$row['id']." | ".$row['date']." | ".nl2br($row['text'])." | ".$row['email']." | ".$link." |
\n";
}
echo "
";
}
if ($num+$num2==0) {
echo "All messages are either approved or unverified!";
}