floating ghost inboxs

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

3 replies · 477 views · started 17 years ago · 1 min read

3 participants
lee27 Developer · 63 posts #1

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

//////////////////////////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>";
}

using name geordielee now

crazybrumi Super moderator Principal · 1,064 posts #3

try this

[COLOR=#000000][COLOR=#007700]else if([/COLOR][COLOR=#0000BB]$action[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"delgpms"[/COLOR][COLOR=#007700])
{
echo [/COLOR][COLOR=#DD0000]"<head>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<title>Owner Tools</title>"[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000BB]$thmname[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$theme[/COLOR][COLOR=#007700][[/COLOR][COLOR=#DD0000]"theme"[/COLOR][COLOR=#007700]];
[/COLOR][COLOR=#0000BB]$them[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]explode[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"_"[/COLOR][COLOR=#007700],[/COLOR][COLOR=#0000BB]$thmname[/COLOR][COLOR=#007700]);
[/COLOR][COLOR=#0000BB]$them2[/COLOR][COLOR=#007700]=[/COLOR][COLOR=#0000BB]$them[/COLOR][COLOR=#007700][[/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]];
if([/COLOR][COLOR=#0000BB]$them2[/COLOR][COLOR=#007700]==[/COLOR][COLOR=#DD0000]"Custom"[/COLOR][COLOR=#007700])
{
include([/COLOR][COLOR=#DD0000]"custom_theme.inc.php"[/COLOR][COLOR=#007700]);
}else{
echo [/COLOR][COLOR=#DD0000]"<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">"[/COLOR][COLOR=#007700];
} 
echo [/COLOR][COLOR=#DD0000]"</head>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<body>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<p align=\"center\">"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<br/>"[/COLOR][COLOR=#007700];
[/COLOR][COLOR=#0000BB]$res [/COLOR][COLOR=#007700]= [/COLOR][COLOR=#0000BB]mysql_query[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"DELETE FROM ibwf_private WHERE byuid='0'"[/COLOR][COLOR=#007700]);
if([/COLOR][COLOR=#0000BB]$res[/COLOR][COLOR=#007700])
{
echo [/COLOR][COLOR=#DD0000]"<img src=\"../images/ok.gif\" alt=\"O\"/>Ghost pms were deleted"[/COLOR][COLOR=#007700];
}else{
echo [/COLOR][COLOR=#DD0000]"<img src=\"../images/notok.gif\" alt=\"X\"/>Database Error!"[/COLOR][COLOR=#007700];
}
echo [/COLOR][COLOR=#DD0000]"<br/><br/><b>8 </b><a accesskey=\"8\" href=\"ownercp.php?action=clrdta&sid=$sid\">Clear Data</a><br/>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<b>9 </b><a accesskey=\"9\" href=\"ownercp.php?action=ownercp&sid=$sid\"><img src=\"../images/admn.gif\" alt=\"\"/>Owner Tools</a><br/>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>"[/COLOR][COLOR=#007700];
echo [/COLOR][COLOR=#DD0000]"</p></body>"[/COLOR][COLOR=#007700];
}  [/COLOR][/COLOR]

ghost messages can be caused by many things like incorrect sql executions

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

lee27 Developer · 63 posts #4

thanx guys noticed it as soon as ya said it lol tryin fix to many things at same time i think lol thanx

using name geordielee now

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close