alrite guys tryin do it so owners can delete them frm tools iv done it but when ya click delete ghost inboxs in tools you get a x database error eres ownerproc bit for it great if ya can help
PHP Code:
//////////////////////////clear inboxs//////////////////////////
else if($action=="delgpms")
{
echo "<head>";
echo "<title>Owner Tools</title>";
$thmname=$theme["theme"];
$them=explode("_",$thmname);
$them2=$them[0];
if($them2=="Custom")
{
include("custom_theme.inc.php");
}else{
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
}
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "<br/>";
$res = mysql_query("DELETE FROM ibwf_private WHERE ibwf_private WHERE byuid='0'");
if($res)
{
echo "<img src=\"../images/ok.gif\" alt=\"O\"/>Ghost pms were deleted";
}else{
echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!";
}
echo "<br/><br/><b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=clrdta&sid=$sid\">Clear Data</a><br/>";
echo "<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>";
echo "<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
echo "</p></body>";
}
Comment