示例#1
0
		
		<body>
		';
    $sql = "SELECT text FROM statistics ORDER BY page ASC";
    $result = $db->query($sql);
    while ($row = $db->fetch_array($result)) {
        eval("?>" . $row["text"] . "<?");
    }
    echo '
		</body>
		
		</html>
		';
}
if ($action == "getskill") {
    $sql = "SELECT {$gdSpecialCreatureSelect}, a.name AS aname FROM summons AS s, creatures AS c, races AS r, {$db_previousage_accounts} AS a WHERE s.account = a.id AND s.mods != '' AND s.creature = c.id AND c.race = r.id";
    $result = $db->query($sql);
    $numrows = $db->num_rows($result);
    echo 'Adding ', $numrows, ' Nethers...<br>';
    $acc["creaturedisplay"] = 1;
    echo '<table border="0" cellspacing="0" cellpadding="0">';
    unset($array);
    while ($row = $db->fetch_array($result)) {
        $creature = new creature($row);
        $skill = $creature->data["sortskill"];
        $creature->echoCreature();
        $sql = "INSERT INTO nethers (sid, skill) VALUES ('{$row['id']}', '{$skill}')";
        $nresult = $db->query($sql);
    }
    echo '</table>';
}
            unset($array);
            while ($row = $db->fetch_array($result)) {
                $creature = new creature($row);
                $array[count($array)] = $row;
                $array[count($array) - 1]["skill"] = $creature->data["sortskill"];
            }
            gSortCreatures($array, TRUE);
            for ($m = 0; $m < count($array); $m++) {
                $row = $array[$m];
                $creature = new creature($row);
                if (($row["aid"] == $acc["id"] || $acc["leadertype"] >= 1 && is_null($acc[x])) && !$underattack) {
                    $url = array("#creaturename", " (<a href=\"index.php?page=playerinfo&action=viewinfo&aid=", "#aid", "\">", "#aname", "</a>, <a href=\"index.php?page=kingdom&action=removecreaturehatchery&sid=", "#id", "\">remove</a>)");
                } else {
                    $url = array("#creaturename", " (<a href=\"index.php?page=playerinfo&action=viewinfo&aid=", "#aid", "\">", "#aname", "</a>)");
                }
                $creature->echoCreature($url);
            }
            if ($numrows != 0) {
                echo '</table>';
            }
        }
        tEnd();
    }
}
if ($action == "donateegg") {
    echo 'Please enter the name of a kingdom.<br><br>';
    fTitle("index.php?page=kingdom&action=submitdonateegg&eid={$eid}");
    fText("Kingdom:", "kingdom");
    fEnd("Donate Egg");
}
if ($action == "submitdonateegg") {
示例#3
0
					The Easter Pigeon is still heavily guarded so we\'re going to have to slaughter a lot more pigeons to get to it.<br>
					We have already killed ', $killed, ' waves.<br>
					';
                tEnd();
                tBegin("Wave {$kdb['waves']}");
                tBegin();
                for ($m = 0; $m < count($attackers); $m++) {
                    echo '<tr><td colspan="2">';
                    $attacker = new creature($attackers[$m]);
                    if ($attacker->data["accid"] == 3584) {
                        $url = array("Attacker: ", "#creaturename");
                    } else {
                        $url = array("Attacker: ", "#creaturename", " (<a href=\"index.php?page=playerinfo&action=viewinfo&aid=", "#accid", "\">", "#accname", "</a>)");
                    }
                    tBegin();
                    $attacker->echoCreature($url);
                    echo '</table>';
                    echo '</td></tr>';
                    echo '
						<tr><td width="15"></td><td>
						<br><a href="index.php?page=nest&action=selectdefender&sid=', $attacker->data["id"], '">Attack this pigeon.</a>
						</td></tr>
						';
                    echo '<tr height="20"><td colspan="2"></td></tr>';
                }
                echo '</table>';
                tEnd();
            }
        }
    }
}