> SET extra1='1' WHERE id='".$acctrow["id"]."' LIMIT 1"); $page = "\"Please don't take everything I say so seriously.\"
---Trent Reznor"; display("LMFAO!", $page); } function version() { global $version, $bname, $bdate, $bnumber; $page = << renderse7en

Dragon Scourge
© 2003-2006 by renderse7en


Version Number:$version
Build Number:$bnumber
Build Name:$bname
Build Date:$bdate
View the Changelog
END; display("Version Information",$page); } function babblebox2() { global $userrow, $controlrow; if (isset($_GET["g"])) { $guild = $userrow["guild"]; $g = "WHERE guild='$guild'"; $g2 = ", guild='$guild'"; $row["guild"] = "&g=yes"; } else { $g = "WHERE guild='0'"; $row["guild"] = ""; } if (isset($_POST["babble"])) { // Add new shout. if (trim($_POST["babble"]) != "") { $insert = doquery("INSERT INTO <> SET id='', posttime=NOW(), charid='".$userrow["id"]."', charname='".$userrow["charname"]."', content='".$_POST["babble"]."' $g2"); } // Only keep 20 shouts in DB at any one time. $check = doquery("SELECT * FROM <> $g"); if (mysql_num_rows($check) > 20) { $delete1 = dorow(doquery("SELECT id FROM <> $g ORDER BY id LIMIT 1")); $delete2 = doquery("DELETE FROM <> WHERE id='".$delete1["id"]."' LIMIT 1"); } // And we're done. die(header("Location: index.php?do=babblebox".$row["guild"])); } $shouts = dorow(doquery("SELECT * FROM <> $g ORDER BY id LIMIT 20"), "id"); $row["shouts"] = ""; $background = 1; if ($shouts != false) { foreach ($shouts as $a => $b) { $row["shouts"] .= "
[".$b["charname"]."] ".$b["content"]."
\n"; if ($background == 1) { $background = 2; } else { $background = 1; } } } else { $row["shouts"] = "
No shouts.
"; } $page = parsetemplate(gettemplate("misc_babblebox"),$row); if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); } function showmap() { global $controlrow; $page = gettemplate("misc_showmap"); if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } echo $page; die(); } ?>