there is like 3 different version of the ajax shoutbox i seen so far..
this should work on 1 of them lol in 2.08
if ($action == "clearshoutbox") {
stdhead("Clear shoutbox");
navmenu();
if ($CURUSER["class"]!=7)
show_error_msg("sorry", "This page is reserved for the Boss",1);
begin_frame("Cleaning the Shoutbox", center);
if ($_GET['yes']== "yes") {
$res = SQL_Query_exec("TRUNCATE TABLE `shoutbox`");
if ($res) echo "shoutbox cleared";
} else {
echo "Are you sure you want Clean ShoutBox?";
echo "[url="admincp.php?action=clearshoutbox&yes=yes"]yes[/url]";
}
end_frame();
stdfoot();
}
[/code]