".$numr." ".$locale['401'].""; } elseif ($status == "del") { $title = $locale['404']; $message = "".$locale['405'].""; } opentable($title); echo "
".$message."
\n"; closetable(); tablebreak(); } if ($action == "deleteshouts") { $deletetime = time() - ($_POST['num_days'] * 86400); $result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_datestamp < '$deletetime'"); $numrows = dbrows($result); $result = dbquery("DELETE FROM ".$db_prefix."shoutbox WHERE shout_datestamp < '$deletetime'"); redirect(FUSION_SELF.$aidlink."&status=delall&numr=$numrows"); } else if ($action == "delete") { $result = dbquery("DELETE FROM ".$db_prefix."shoutbox WHERE shout_id='$shout_id'"); redirect(FUSION_SELF.$aidlink."&status=del"); } else { if (isset($_POST['saveshout'])) { if ($action == "edit") { $shout_message = str_replace("\n", " ", $_POST['shout_message']); $shout_message = preg_replace("/^(.{255}).*$/", "$1", $shout_message); $shout_message = preg_replace("/([^\s]{25})/", "$1\n", $shout_message); $shout_message = stripinput($shout_message); $shout_message = str_replace("\n", "
", $shout_message); $result = dbquery("UPDATE ".$db_prefix."shoutbox SET shout_message='$shout_message' WHERE shout_id='$shout_id'"); redirect(FUSION_SELF.$aidlink); } } if ($action == "edit") { $result = dbquery("SELECT * FROM ".$db_prefix."shoutbox WHERE shout_id='$shout_id'"); $data = dbarray($result); opentable($locale['420']); echo "
".$locale['421']."
\n"; closetable(); tablebreak(); } opentable($locale['440']); $result = dbquery("SELECT * FROM ".$db_prefix."shoutbox"); $rows = dbrows($result); if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0; echo "
\n
\n"; if ($rows != 0) { if ($rowstart == 0) { $opts = " \n"; echo $locale['430']." ".$locale['431']."



\n"; } $i = 0; $result = dbquery( "SELECT * FROM ".$db_prefix."shoutbox LEFT JOIN ".$db_prefix."users ON ".$db_prefix."shoutbox.shout_name=".$db_prefix."users.user_id ORDER BY shout_datestamp DESC LIMIT $rowstart,20" ); echo "\n"; while ($data = dbarray($result)) { echo "\n\n\n"; $i++; } echo "
"; if ($data['user_name']) { echo "".$data['user_name'].""; } else { echo $data['shout_name']; } echo " ".$locale['041'].showdate("longdate", $data['shout_datestamp'])."
".str_replace("
", "", parsesmileys($data['shout_message']))."
".$locale['441']." - ".$locale['442']." - ".$locale['443'].$data['shout_ip']."
\n"; } else { echo "

\n".$locale['444']."

\n
\n"; } closetable(); echo "
\n".makePageNav($rowstart,20,$rows,3,FUSION_SELF.$aidlink."&")."\n
\n"; } echo "\n"; require_once BASEDIR."footer.php"; ?>