d529178672
8.09.2006 - Build 17 (Haiku): - Moved stylesheets into .css files. - Added javascript tooltips for the class info when creating a new character. - Changed doquery() format - rewrote all calls to this function to match the new format. - Various changes to the structure of lib.php. - Implemented Anman's increased attack and defense spells (Blessed Strike & Stone Skin). - Fixed class display in profile view. - Began admin control panel. - Various little bitty fixes. - You can no longer gamble 0 gold. - Added new level stat type: life. - Monsters can now do excellent hits, and you can now dodge monsters. - Removed several columns from controlrow that are no longer used.
34 lines
972 B
PHP
34 lines
972 B
PHP
<?php
|
|
|
|
include("lib.php");
|
|
include("globals.php");
|
|
|
|
if (isset($_GET["do"])) {
|
|
$do = $_GET["do"];
|
|
switch ($do) {
|
|
case "control": include("control.php"); controlrow(); break;
|
|
case "realms": include("realms.php"); break;
|
|
default: donothing();
|
|
}
|
|
} else { donothing(); }
|
|
|
|
function donothing() {
|
|
|
|
$accounts = dorow(doquery("SELECT * FROM {{table}}", "accounts"), "id");
|
|
$pagerow["accounts"] = sizeof($accounts);
|
|
|
|
$characters = dorow(doquery("SELECT * FROM {{table}}", "users"), "id");
|
|
$pagerow["characters"] = sizeof($characters);
|
|
|
|
$guildchars = dorow(doquery("SELECT * FROM {{table}} WHERE guild != 0", "users"), "id");
|
|
$pagerow["guildchars"] = sizeof($guildchars);
|
|
|
|
$guilds = dorow(doquery("SELECT * FROM {{table}}", "guilds"), "id");
|
|
$pagerow["guilds"] = sizeof($guilds);
|
|
|
|
$page = parsetemplate(gettemplate("index"), $pagerow);
|
|
display("Administrator", $page);
|
|
|
|
}
|
|
|
|
?>
|