Пример #1
0
?>
c_top.gif);">&nbsp;</td>
                    <td width="21"><img alt="" src="<?php 
echo $cq2imageurl;
?>
c_righttopcorner.gif" width="20" height="15"></td>
                </tr>
                <tr>
                    <td width="20" style="background-image: url(<?php 
echo $cq2imageurl;
?>
c_left.gif);">&nbsp;</td>
                    <td width="806">

                        <?php 
topic("Resources", FALSE);
include_once "resources.php";
?>

                    </td>
                </tr>
            </table>

        </td>
        <td width="21" style="background-image: url(<?php 
echo $cq2imageurl;
?>
c_right.gif);">&nbsp;</td>
        </tr>
        <tr>
            <td width="20"><img alt="" src="<?php 
Пример #2
0
			</dl>
		</div>
		
		<div class="content">
			<dl class="input">
				<dt>
					<?php 
echo lang('last_post');
?>
<br />
					<span><?php 
echo lang('last_post_msg');
?>
</span>
				</dt>
				<dd>
<?php 
$last = last_post(false, $user_data['id']);
if ($last['reply'] == 0) {
    echo "Topic: <a href='{$config['url_path']}/read.php?id={$last['id']}'>" . stripslashes(htmlspecialchars($last['subject'])) . "</a>";
} else {
    $topic_data = topic($last['reply']);
    echo "Posted in Topic: <a href='{$config['url_path']}/read.php?id={$topic_data['id']}'>" . stripslashes(htmlspecialchars($topic_data['subject'])) . "</a>";
}
?>
				</dd>
			</dl>
		</div>
		
		<div class="clear"></div>
	</div>
Пример #3
0
<?php

topic("Character");
if ($acc["owner"]) {
    include_once "admin/acharacter.php";
}
if ($action == "submitchallenge") {
    $no = 0;
    if (!$chid) {
        echo 'Invalid data.<br>';
        $no = 1;
    } else {
        $sql = "SELECT * FROM challenges WHERE id = '{$chid}'";
        $result = $db->query($sql);
        $numrows = $db->num_rows($result);
        if ($numrows != 1) {
            echo 'Invalid chid.<br>';
            $no = 1;
        } else {
            $challenge = $db->fetch_array($result);
            $classname = strtolower($gdClass[$challenge["class"] - 1]["name"]);
            $sql = "SELECT count(*) FROM challengelogs WHERE challenge = '{$chid}' AND account = '{$acc['id']}'";
            $result = $db->query($sql);
            $numrows = $db->result($result, 0);
            if ($numrows != 0) {
                echo 'You have already completed that challenge.<br>';
                $no = 1;
            }
            if ($acc[$classname] < $challenge["value"]) {
                echo 'Invalid chid.<br>';
                $no = 1;
Пример #4
0
/**
 * Allows updating of topics, stuck or closed, and posts
 * @global array
 * @global array
 * @param integer $id post we are editing
 * @param string $topic post subject
 * @param string $content post content
 * @param integer $reply id of topic we are replying to
 * @param boolean $sticky are we sticking it to the top?
 * @param boolean $closed are we closing it?
 * @return string|int
 */
function update($id, $topic, $content, $sticky = false, $closed = false)
{
    global $config, $user_data;
    // The time. milliseconds / seconds may change.
    $time = time();
    // Is the id numeric?
    if (!alpha($id, 'numeric')) {
        return lang_parse('error_given_not_numeric', array(lang('post') . " " . lang('id')));
    }
    // Grab the data for the update.
    $post_data = topic($id);
    // Check to see if the post or topic was found.
    if (!$post_data) {
        return lang('error_post_missing');
    }
    // Pre-Parse
    $topic = clean_input(strip_repeat($topic));
    $content = htmlentities($content);
    $content = clean_input(stripslashes($content));
    // Is the user currently logged in? If not we can't update return error.
    if ($_SESSION['logged_in']) {
        // Editing a topic not post
        if ($post_data['reply'] == 0) {
            if ($topic == "") {
                return lang_parse('error_no_given', array(lang('username')));
            }
        } else {
            if ($topic == "") {
                $topic = "re:";
            }
        }
        // Is the subject valid?
        if (!alpha($topic, 'alpha-extra')) {
            return lang_parse('error_invalid_chars', array(lang('subject')));
        }
        // Did they give us any content to work with?
        if ($content != "") {
            if (!is_string(length($content, $config['message_minimum_length'], $config['message_max_length']))) {
                // Check to see if the user is an admin and able to sticky / close the topic
                if ($_SESSION['admin'] || $_SESSION['moderator']) {
                    // Sticky
                    $sticky = $sticky ? '1' : '0';
                    // Closed
                    $closed = $closed ? '1' : '0';
                    // Admin functions
                    update_field($id, 'sticky', $sticky);
                    update_field($id, 'closed', $closed);
                }
                // Parsing
                $content = htmlspecialchars($content);
                // Update the post already inside of the database with the new data
                $result = mysql_query("UPDATE `forum` SET `subject`='{$topic}', `message`='{$content}', `updated`='{$time}', `replies`='{$replies}' WHERE id = '{$id}'") or die(mysql_error());
                // Did it work?
                if ($result) {
                    return true;
                } else {
                    return false;
                }
            } else {
                return lang_parse('error_message_length', array($config['message_max_length'], $config['message_minimum_length']));
            }
        } else {
            return lang_parse('error_no_given', array(lang('message')));
        }
    } else {
        return lang('error_not_logged');
    }
}
Пример #5
0
<?php

topic("Official Castle Quest 2 Rules");
tBegin("1. Registration and multiple accounts");
echo '
	It is strictly forbidden to register more than one account per person (\'multiing\').
	This includes accounts in vacation mode.
	Violation of this rule will result in the immediate and permanent removal from the game.
	You should never, ever have more than one account in use.
	You may not use someone else\'s account.
	If you would like to remove your account from the game, please go to the options menu and select the \'kill\' option.<br><br>
	
	An account is stricly personal, and cannot be given to someone else. It is not allowed to log on to an account which is at that point still in use by another person and it is not allowed to log on to an account on which another person has ever logged on before.<br><br>
	
	
	You are not allowed to accept donations from an inactive player (\'farming\'). An inactive player is someone who does not participate in the most basic and essential activities in the game anymore (attacking, defending, providing some kind of service to the kingdom, like cursing or enchanting).<br><br>
	
	You have to kill your account when you stop playing the game. If you know an inactive person who refuses to kill his account, you are obliged to report him to the moderators.<br><br>
	
	Profiting from the illegal activity (multiing or farming) of other people or refusing to report illegal activity you are aware of is prohibited as well.
	';
tEnd();
tBegin("2. Offensive language & account names");
echo '
	You are not allowed to use offensive language against anyone.
	Accounts names including offensive words are also forbidden.
	When someone feels offended, he can report the abuse using the \'Report Abuse\' button in the \'Other Links\' section.
	';
tEnd();
tBegin("3. Illegal & Adult Things");
echo '
Пример #6
0
<?php

topic("Nebodar's Cave");
if ($building["name"] != "Nebodar") {
    die;
}
$sql2 = "SELECT * FROM teleport WHERE name='Nebodars Cave'";
$result2 = $db->query($sql2);
$numrows2 = $db->num_rows($result2);
if (!$action) {
    echo '
		You are standing in front of a small cave. The small entrance leads to a large, empty hall.
		In the middle of the room is a table with an old candle on it. It is covered in dust.
		The dim light of the sun reveals a closed door in the far corner of the room. It isn\'t sealed anymore - you can enter without problems.<br><br>
		
		The next room is an impressive sight indeed. This is not the home of a simple wizard; a powerful being must have lived here. The whole place is lit by a pillar in the middle of the chamber, which is still emitting light right now. You don\'t have the impression that you are standing in a cave in the middle of the wasteland: the walls are fortified, the floor is decorated with strange runes and a powerful cloud of pure magic surrounds the many beautifully crafted objects placed in the chamber. Especially the bed is an impressive sight, looking like it might have functioned as a pod used by Nebodar to regain strength. You have the feeling that the room is still alive, yet you know Nebodar has left this place many hundreds of years ago.<br><br>
		
		The following runes are written on the floor:<br><br>
		
		<div align="center"><img src="symbols.php?key=4661c97279373db5"></div><br>
		';
    if ($numrows2 == 0) {
        echo '
			<p>As you enter Nebodar you feel the beacon power inside you. Do you want to <a href="?page=Nebodar&action=beacon">place a beacon</a> here?
			';
    }
}
if ($action == "beacon" && $numrows2 == 0) {
    $sql = "INSERT INTO teleport (x, y, name, pb) VALUES (351, 41, 'Nebodars Cave', 10)";
    $result = $db->query($sql);
    $text = "A messenger from the High Council runs to your castle to hand you a letter:\r\n\t\t\t\t<p>\"{$acc['name']} has placed a beacon in Nebodars Cave. You may now use the teleportation shrine to teleport there.\"";
Пример #7
0
    <p>Write 150 words on the given topic</p>
    
    <h3 style="color:#2eb161"><u>Topic:</u> <br>
        <input required type="radio" value='<?php 
echo topic($numbers[0]);
?>
' name="topic"><?php 
echo topic($numbers[0]);
?>
<br> 
        
        <input required type="radio" value="<?php 
echo topic($numbers[3]);
?>
" name="topic"><?php 
echo topic($numbers[3]);
?>
<br>
        <input required type="radio" value="<?php 
echo topic($numbers[8]);
?>
" name="topic"><?php 
echo topic($numbers[8]);
?>
    
    </h3>
    <textarea required id="area" name="expertAreaSample" ROWS=14 COLS=90 placeholder="Place your sample here"></textarea>
    <br><br>
    
    <button id="ansSub" type="submit"  name="one">Submit Sample</button>
</form>
Пример #8
0
<div id="boxwebboard" class="corner">
        <a href="webboards" class="moreright">more</a>
      	<div class="topic"><img src="<?php 
echo topic("topic_webboard.png");
?>
" width="200" height="25" /></div>
        <div class="box">
            <ul>
            	<?php 
foreach ($webboard_quizs as $webboard_quiz) {
    ?>
					<li>
						<a href="webboards/view_topic/<?php 
    echo $webboard_quiz->id;
    ?>
"><?php 
    echo $webboard_quiz->title;
    ?>
</a> <span class="TxtGray2 f11">โดย <a href="users/profile/<?php 
    echo $webboard_quiz->user->id;
    ?>
" style="color:#006699;"><?php 
    echo $webboard_quiz->user->display;
    ?>
</a> [<?php 
    echo $webboard_quiz->webboard_answer->result_count();
    ?>
/<?php 
    echo $webboard_quiz->counter;
    ?>
] </span>
Пример #9
0
	<div class="topic"><img src="<?php 
echo topic("topic_prnews.png");
?>
" width="200" height="25" /></div>
	<div id="data">
		<h2><?php 
echo lang_decode($information->title);
?>
 <span class="f10 TxtGray2"><?php 
echo mysql_to_th($information->start_date);
?>
 - <?php 
echo $information->counter;
?>
 ครั้ง</span> </h2>
		<?php 
echo flash_replace(lang_decode($information->detail));
?>
		<?php 
if ($information->refer) {
    ?>
<div class="ref"><strong>ที่มา</strong> <span><?php 
    echo $information->refer;
    ?>
</span></div><?php 
}
?>
		<div class="ref"><strong>โดย </strong> <span><?php 
echo $information->user->profile->first_name == "" ? 'Administrator' : $information->user->profile->first_name . ' ' . $information->user->profile->last_name . ' ' . $information->user->profile->position;
?>
Пример #10
0
                    }
                }
            } else {
                print_out(lang_parse('error_invalid_given', array(lang('id'))), lang('redirecting'));
            }
        }
    }
}
// if no forumid number is present, exit out of page
// is there a topic request?
if (isset($_GET['id'])) {
    // Is it numeric?
    if (is_numeric($_GET['id'])) {
        $id = $_GET['id'];
        // Check it
        $topic = topic(intval($id), '*');
        if ($topic) {
            // Closed & Stickied?
            if ($topic['closed']) {
                $closed = true;
            }
            if ($topic['sticky']) {
                $stuck = true;
            }
            // Quick reply
            if (isset($_POST['post'])) {
                // We can't do it anyway.
                $sticky = 0;
                $closed = 0;
                // Now for the fun part!
                $data = post(false, $_POST['qsubject'], $_POST['qcontent'], $_POST['reply'], $sticky, $closed);
Пример #11
0
    ?>
c_righttopcorner.gif" width="20" height="15"></td>
		</tr>
		<tr>
		<td width="20" background="<?php 
    echo $cq2imageurl;
    ?>
c_left.gif">&nbsp;</td>
		<td width="132">
		<?php 
    if ($grouprow["size"] == 1) {
        $resizing = '&nbsp; <a href="index.php?page=' . $page . '&fraction=resizegroup&window=' . $grouprow["id"] . '">&laquo;</a>';
    } else {
        $resizing = '&nbsp; <a href="index.php?page=' . $page . '&fraction=resizegroup&window=' . $grouprow["id"] . '">&raquo;</a>';
    }
    topic($grouprow["name"] . $resizing, FALSE, FALSE);
    if ($grouprow["size"] == 1) {
        if (!$fraction || $frtype != $grouprow["id"]) {
            PrintFriendsList($friends, $grouprow["id"]);
        } elseif ($fraction == "addmenu") {
            PrintFriendsAddMenu($grouprow["id"]);
        } else {
            echo $froutput;
        }
    }
    ?>
		</td>
		</tr>
		</table>

		</td>
Пример #12
0
<?php

if (is_null($acc["x"])) {
    topic("Your Kingdom");
} else {
    topic($acc["tkdname"]);
}
// ******************
// *	Your Kingdom	*
// ******************
if ($action == "choosecoordinates") {
    echo '
		Please choose your coordinates.<br>
		It must be an empty wasteland spot close to ', $gdStartingKingdomName, '.<br>
		The further away from the central meeting point, the more expensive the spot.<br>
		';
    $coords = gFindCoords($kingdoms);
    fTitle("index.php?page=kingdom&action=submitchoosecoordinates&name={$name}&type=choosecoordinates");
    fText("X-coordinate:", "x", $coords[x], 5);
    fText("Y-coordinate:", "y", $coords[y], 5);
    fEnd("Create");
}
if ($action == "submitchoosecoordinates") {
    unset($kingdoms);
    $sql = "SELECT x, y FROM kingdoms";
    $result = $db->query($sql);
    while ($row = $db->fetch_array($result)) {
        $kingdoms[$row["x"]][$row["y"]] = TRUE;
    }
    if (!($coords = gFindCoords($kingdoms, "choose", array("x" => $x, "y" => $y)))) {
        echo 'Invalid coordinates chosen! (', $x, ',', $y, ')<br>';
Пример #13
0
<?php

topic("Castle Defense");
if ($action == "useslotconfig") {
    $no = 0;
    $sql = "SELECT count(*) FROM slotconfig WHERE account = '{$acc['id']}' AND id = '{$icid}'";
    $result = $db->query($sql);
    $numrows = $db->result($result, 0);
    if ($numrows != 1) {
        echo 'Invalid icid.<br>';
        $no = 1;
    }
    if ($acc["attacked"]) {
        echo 'You can\'t switch defense slots while you are under attack.<br>';
        $no = 1;
    }
    if ($no == 0) {
        $sql = "UPDATE summons SET type = '0' WHERE account = '{$acc['id']}' AND type = '1'";
        $result = $db->query($sql);
        $sql = "SELECT ics.creature, ics.slot, sl.class AS slotclass, sl.level AS slotlevel, {$gdCreatureSelect} FROM (slotconfigset AS ics, slots AS sl, summons AS s, creatures AS c, races AS r) LEFT JOIN accitems AS ai ON ai.account = '{$acc['id']}' AND s.item = ai.id LEFT JOIN items AS i ON ai.item = i.id WHERE s.id = ics.creature AND s.creature = c.id AND c.race = r.id AND ics.config = '{$icid}' AND ics.slot = sl.id";
        $nresult = $db->query($sql);
        while ($row = $db->fetch_array($nresult)) {
            $creature = new Creature($row);
            $level = ceil($creature->data["skill"] / gdDefenseSlotSkill);
            if ($level <= $row["slotlevel"]) {
                $sql = "UPDATE summons SET target = '{$row['slot']}', type = '1', hidden = '{$row['slotclass']}' WHERE id = '{$row['creature']}' AND account = '{$acc['id']}' AND type = '0' AND dead = '0'";
                $result = $db->query($sql);
            }
        }
        echo 'Defense slots succesfully equipped!<br>';
        unset($action);
Пример #14
0
<?php

topic("Report Abuse");
if (!$action) {
    fTitle("index.php?page=reportabuse&action=submitabuse");
    fText("Account name of abuser:"******"name");
    fTextArea("Abuse Description:", "description");
    fEnd("Submit");
    echo '
		You can report anything abusive you encounter here.<br>
		Typical abuse can be the use of offensive language or a player with more than one account.<br>
		';
}
if ($action == "submitabuse") {
    $no = 0;
    if (!$description) {
        echo 'You have to enter a description and an account name.<br>';
        $no = 1;
    }
    $sql = "SELECT id, name FROM accounts WHERE name = '{$name}'";
    $result = $db->query($sql);
    $numrows = $db->num_rows($result);
    if ($numrows != 1) {
        echo 'You have to enter a valid account name.<br>';
        $no = 1;
    } else {
        $row = $db->fetch_array($result);
        $name = "{$row['name']} (" . $cq2url . "index.php?page=playerinfo&action=viewinfo&aid={$row['id']}";
    }
    if ($no == 0) {
        $date = date("Y-m-d @ H:i");
Пример #15
0
<?php

topic("{$library} curseshop");
if ($action == "newcurse") {
    echo '
		Please enter the name of the creature you want to be able to curse.<br>
		This choice is irreversible.
		';
    fTitle("index.php?page=library&action=submitnewcurse&curse={$curse}");
    fText("Creature:", "creature");
    fEnd("Learn Curse");
}
if (!$action) {
    echo '
		Welcome to my shop.<br>
		Some of the items here are too powerful for unexperienced magi, I really can\'t offer you those.<br>
		';
    if ($acc["level"] >= $gdCurseLevelMin) {
        // get curses already learned
        $sql = "SELECT s.code, s.id FROM skills AS s, accskills AS acs WHERE acs.account = '{$acc['id']}' AND acs.skill = s.id AND s.tree = 'curses'";
        $result = $db->query($sql);
        // settings
        $learnedCurses = array();
        $topProficiency = 0;
        $cursesActivated = false;
        while ($row = $db->fetch_array($result)) {
            // curses activated
            if ($row["code"] == gdsCurses) {
                $cursesActivated = TRUE;
            } elseif ($row["code"] == gdsExpert && $topProficiency < 1) {
                $topProficiency = 1;
Пример #16
0
<?php

topic("Choose Your Class", TRUE, FALSE);
if ($action == "submit") {
    $no = 0;
    // TODO
    /*if ($cheat != 2) {
          DIE();
      }*/
    if (!$name || !$email || !$password) {
        echo 'You have to fill in all the fields.<br>';
        $no = 1;
    }
    if ($password != $password2) {
        echo 'You have to repeat the same password.<br>';
        $no = 1;
    }
    if ($email != $email2) {
        echo 'You have to repeat the same e-mail address.<br>';
        $no = 1;
    }
    if (strlen($name) > 15 || strlen($password) > 15) {
        echo 'Your name or password is longer than 15 characters.<br>';
        $no = 1;
    }
    if (!ereg("^[a-zA-Z0-9_-]+\$", $name) || !ereg("^[a-zA-Z0-9_-]+\$", $password)) {
        echo 'Only letters, numbers, - and _ are allowed in your name or password.<br>';
        $no = 1;
    }
    // see if this acc was used previous age
    /*$sql = "SELECT * FROM accountsold WHERE name = '$name'";
Пример #17
0
<?php

topic("Login", TRUE, FALSE);
if ($action == "submitsetpassword") {
    $no = 0;
    if (!$passwordkey || !$password) {
        echo 'Invalid data.<br>';
        $no = 1;
    } else {
        $sql = "SELECT id, name FROM {$db_register_accounts} WHERE passwordkey = '{$passwordkey}'";
        $result = $db->query($sql);
        $numrows = $db->num_rows($result);
        if ($numrows != 1) {
            echo 'That url is outdated. Please go <a href="indexnl.php?page=nl_home&action=forgotpassword">here</a> and enter your login name again.<br>';
            $no = 1;
        } else {
            $row = $db->fetch_array($result);
        }
    }
    if ($password != $password2) {
        echo 'You have to enter the same password twice.<br>';
        $no = 1;
    }
    if (strlen($password) > 15) {
        echo 'Your password is longer than 15 characters.<br>';
        $no = 1;
    }
    if (!ereg("^[a-zA-Z0-9_-]+\$", $password)) {
        echo 'Only letters, numbers, _ and - are allowed in your password.<br>';
        $no = 1;
    }
Пример #18
0
<?php

topic("Creatures");
// ******************
// *	Creatures	*
// ******************
// remove all creatures
if ($action == "removeall") {
    $no = 0;
    if ($acc["attacked"]) {
        echo 'You can\'t remove creatures from kingdom defense while you are under attack.<br>';
        $no = 1;
    }
    if ($no == 0) {
        // get all hatcheries you are defending
        $sql = "SELECT extra, target FROM summons WHERE type = '3' AND account = '{$acc['id']}' GROUP BY target";
        $nresult = $db->query($sql);
        $removed = FALSE;
        $defending = FALSE;
        while ($row = $db->fetch_array($nresult)) {
            $defending = TRUE;
            // check if hatchery is under attack
            $sql = "SELECT id FROM kdbattles WHERE status = '1' AND target = '{$row['extra']}' AND building = '{$row['target']}'";
            $result = $db->query($sql);
            $numrows = $db->num_rows($result);
            // not under attack
            if ($numrows == 0) {
                // remove creatures
                $sql = "UPDATE summons SET type = '0' WHERE type = '3' AND target = '{$row['target']}' AND extra = '{$row['extra']}' AND account = '{$acc['id']}'";
                $result = $db->query($sql);
                $removed = TRUE;
Пример #19
0
<div class="topic"><img src="<?php 
echo topic("topic_sitemap.png");
?>
" width="200" height="25" alt="ข่าวประชาสัมพันธ์ ThaiGCD"/></div>
<div id="data" class="sitemap">
<?php 
foreach ($categories as $key => $category) {
    ?>
	<?php 
    if ($key == 0) {
        ?>
	<div style="float:left; width: 50%;">
	<ul>
	<?php 
    }
    ?>
	<li><a href="<?php 
    echo sitemap($category->module);
    ?>
"><?php 
    echo lang_decode($category->name);
    ?>
</a>
		<ul>
			<?php 
    foreach ($childs->where('parents = ' . $category->id)->get() as $child) {
        ?>
				<li><a href="<?php 
        echo sitemap($child->module, $child->id);
        ?>
"><?php 
Пример #20
0
            $reply = 0;
            // New topic
            $title = lang('posting_new_topic');
        }
    } else {
        $reply = 0;
        // New topic
        $title = lang('posting_new_topic');
    }
} else {
    if (isset($_GET['edit'])) {
        if (alpha($_GET['edit'], 'numeric')) {
            $reply = false;
            $edit = true;
            // Get topic data
            $post = topic($_GET['edit']);
            if ($post) {
                // Title
                $title = lang('editing_post');
                // Convienent stuff.
                $subject = $post['subject'];
                $content = html_entity_decode(htmlspecialchars_decode(stripslashes($post['message'])));
                $sticky = $post['sticky'];
                $closed = $post['closed'];
                $category = $post['category'];
            } else {
                $reply = 0;
                // New topic
                $title = lang('posting_new_topic');
            }
        } else {
Пример #21
0
<?php

topic("The Maze");
if ($building["name"] != "Maze") {
    die;
}
// get maze player status
$sql = "SELECT status, data FROM mazestatus WHERE account = '{$acc['id']}'";
$result = $db->query($sql);
$numrows = $db->num_rows($result);
if ($numrows == 0) {
    $status = 0;
    $sql = "INSERT INTO mazestatus (account, status) VALUES ('{$acc['id']}', '0')";
    $result = $db->query($sql);
} else {
    $row = $db->fetch_array($result);
    $data = $row["data"];
    $status = $row["status"];
}
if ($status == 0) {
    if (!$action) {
        echo '
			You are standing in what looks like the crater of a volcano and you are surrounded by high unclimbable cliffs.		
			You notice a piece of smooth rock facing you. It holds the following strange symbols within its rocky surface:<br><br>
			
			<div align="center"><img src="symbols.php?key=2e469f460e00d1e3"></div><br><br>
			
			You feel obliged to go take a closer look. While you are approaching it however, your vision gets blurrier, the mountains begin a hypnotic dance and the sand, the sand... it looks alive. At long last, you reach the wall and your fingers get ready to explore the symbols.<br><br>
			
			When your trembling fingers touch the smooth surface, you feel a blast of pure energy flowing through your entire body. You feel better, more alive, more awake than ever. The symbols get burned into your mind, you can practically touch the outlines of the strange collection of lines inside your brain. 
			One single moment, it all makes perfect sense, you understand everything and the need for contact with the symbols is fading.
Пример #22
0
<?php

topic("Donation");
echo '
	I have set up a Paypal account which allows you to donate money to my bank account. If you want to express your gratitude for all these years of entertainment, now\'s your chance. If you send me (Phantom) your paypal e-mail address after the donation I will give you a small bonus in the form of a few special shards, but that\'s it - there\'s no big advantage for donating money. It\'s just a way of saying thanks. However, if you live in Belgium, it would be better to donate the money directly to my bank account instead of through Paypal. My bank account number is <b>220-0790866-61</b>. Otherwise use the button below.
	';
?>


<br><br>
<center>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
        <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----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-----END PKCS7-----
">
    </form>
</center>
Пример #23
0
<?php

include_once "functions/tags.php";
topic("Official Announcements", TRUE, FALSE);
if ($action == "comments") {
    $no = 0;
    $sql = "SELECT a.name AS aname, a.email AS aemail, an.topic, an.text, an.time, an.id FROM accounts AS a, announcements AS an WHERE an.account = a.id AND an.id = '{$anid}' AND an.parent = '0'";
    $result = $db->query($sql);
    $numrows = $db->num_rows($result);
    if ($numrows != 1) {
        echo 'Invalid anid.<br>';
        $no = 1;
    }
    if ($no == 0) {
        $row = $db->fetch_array($result);
        $date = date("Y-m-d @ H:i", $row["time"]);
        tBegin('
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
			<td width="50%">
			' . $row["topic"] . '
			</td>
			<td width="20%" align="center">
			by <a href="mailto:' . $row["aemail"] . '">' . $row["aname"] . '</a>
			</td>
			<td width="30%" align="center">
			' . $date . '
			</td>
			</tr>
			</table>
			');
Пример #24
0
<?php

topic("New Account", TRUE, FALSE);
if (!$action) {
    //if ($cheat == 2) {
    echo '
			Please fill out the small form below.<br>
			You have to enter a valid e-mail address, because you will need it to activate your account.<br>
			Please read <a href="indexnl.php?page=rules">the rules</a> before subscribing.<br>
			You are only allowed to have one account.<br>
			<font class="alert">Having more than one account will result in your permanent removal from the game.</font><br><br><br>
			';
    $sql = "SELECT count(*) FROM {$db_register_accounts} WHERE status != '2'";
    $result = $db->query($sql);
    $numrows = $db->result($result, 0);
    $sql = "SELECT count(*) FROM reactivation WHERE mailed != '2'";
    $result = $db->query($sql);
    $numrows2 = $db->result($result, 0);
    $spots = $gdMaxAccounts - $numrows - $numrows2 + count($gdSecretMages);
    // banlist
    // get ip
    $ip = "0.0.0.0";
    if ($HTTP_X_FORWARDED_FOR == "") {
        $ip = $REMOTE_ADDR;
    } else {
        $ip = $HTTP_X_FORWARDED_FOR;
    }
    $sql = "SELECT count(*) FROM ipbanlist WHERE ip = '{$ip}'";
    $result = $db->query($sql);
    $numrows = $db->result($result, 0);
    if ($numrows != 0) {
Пример #25
0
<div id="boxphoto" class="corner">
            <a href="galleries/index/<?php 
echo $group_id;
?>
" class="moreright" target="_self">more</a>
            <div class="topic"><img src="<?php 
echo topic("topic_gallery.png");
?>
" width="200" height="25" alt="ภาพกิจกรรม"/></div>
            <div class="box">
            	<div id="slider">
                	<ul>
                		<?php 
foreach ($galleries as $key => $gallery) {
    ?>
						<?php 
    if ($key == 0) {
        ?>
                        <li>
						<?php 
    } elseif ($key % 5 == 0) {
        ?>
                        </li><li>
                       	<?php 
    }
    ?>
                        <div class="boximg">
                        	<a rel="lightbox[gallery]" href="uploads/galleries/<?php 
    echo $gallery->image;
    ?>
" target="_self">
Пример #26
0
	<div class="topic"><img src="<?php 
echo topic("topic_knowledge.png");
?>
" height="25" width="200"></div>
	<div class="clear"></div>
	
	<div id="data">
		<h2 style="color:#006600;">ค้นหาจาก tag : <?php 
echo $tag;
?>
</h2>
			<?php 
echo $knowledges->pagination();
?>
			<?php 
foreach ($knowledges as $knowledge) {
    ?>
			<div class="box-tag"> 
				<a href="knowledges/view/<?php 
    echo $knowledge->id;
    ?>
" class="thumb"><img class="photo" src="<?php 
    echo is_file('uploads/knowledge/thumbnail/' . $knowledge->image) ? 'uploads/knowledge/thumbnail/' . $knowledge->image : 'themes/thaigcd/photo/nophoto.gif';
    ?>
" width="77" height="64" /></a>
				<div class="box_info box-tag-detail">
					<span><?php 
    echo mysql_to_th($knowledge->start_date);
    ?>
</span>
Пример #27
0
<div id="boxmedia-page" class="corner">
	<div class="topic"><img src="<?php 
echo topic("topic_weblink.png");
?>
"></div>
		<div id="data" style="margin:5px 0 0 0;">

			<div id="mediaitem">
				<div class="groupname"><?php 
echo lang_decode($categories->name, '');
?>
</div>
				
				<div class="tbmedia">
				<table><tbody>
					<?php 
foreach ($categories->weblink->get_page(limit()) as $weblink) {
    ?>
					<tr>
						<td><a href="<?php 
    echo $weblink->url;
    ?>
" target="<?php 
    echo $weblink->target;
    ?>
"><img src="uploads/weblinks/<?php 
    echo $weblink->image;
    ?>
" height="90" width="98"></a></td>
						<td style="padding: 10px; font-size:12px;" valign="top">
						<?php 
Пример #28
0
<?php

topic("Rodia");
if (!$action) {
    tBegin("The Stonehenge Library: public area");
    echo '
		Rodia is the huge island you are living on.<br>
		A mountain range is separating the shores from the center of the land, called the Rodian plains.
		Right now you are in the library, located in the ruined city of Stonehenge. This improvised library contains all the information that was saved from New Surathil after the Nether rebellion.<br><br>
		
		The information on this page changes hourly.<br><br>
		
		<a href="index.php?page=rodia&action=statistics&age=1&pagenumber=1">Click here</a> for statistics about the Chaos Age.<br>
		<a href="index.php?page=rodia&action=statistics&age=2&pagenumber=1">Click here</a> for statistics about the Age of Recovery.<br>
		<a href="index.php?page=rodia&action=statistics&age=3&pagenumber=1">Click here</a> for statistics about the Itherian Age.<br>
		<a href="index.php?page=rodia&action=statistics&age=4&pagenumber=1">Click here</a> for statistics about the Age of Rebirth.<br>
		<a href="index.php?page=rodia&action=statistics&age=5&pagenumber=1">Click here</a> for statistics about the Age of Resurgence.<br>
		<a href="index.php?page=rodia&action=statistics&age=6&pagenumber=1">Click here</a> for statistics about the Age of Conflict.<br>
		<a href="index.php?page=rodia&action=statistics&age=7&pagenumber=1">Click here</a> for statistics about the Age of Reinforcement.<br>
		<a href="index.php?page=rodia&action=statistics&age=8&pagenumber=1">Click here</a> for statistics about the Age of Transition.<br>
		';
    tEnd();
    $sql = "SELECT text FROM misctext WHERE name = 'rodia'";
    $result = mysql_Query($sql);
    $text = mysql_result($result, 0);
    $sql = "SELECT text FROM misctext WHERE name = 'rodia2'";
    $result = mysql_Query($sql);
    $text2 = mysql_result($result, 0);
    eval("?>" . $text . $text2 . "<?");
}
if ($action == "statistics") {
Пример #29
0
<?php

topic("Aether");
if ($building["name"] != "Aether") {
    die;
}
$sql2 = "SELECT * FROM teleport WHERE name='Aether'";
$result2 = $db->query($sql2);
$numrows2 = $db->num_rows($result2);
$scholarperc = gGetMisc("scholarperc");
$creatorperc = gGetMisc("creatorperc");
$builderperc = gGetMisc("builderperc");
$reward = gGetMisc("rewardshop");
$aetherres = gGetMisc("aether");
if (!$action) {
    echo '
		Aether is the great capital city of the once mighty nethers. It was build by the nethers that looked for refuge after being driven away from New Surathil.
		<p>Although they lost much of their ancient glory, they still possess vast knowledge and superb building skills. The city is already filled with majestic buildings, but many buildings are still under construction.
		<p>You can help the nethers by donating resources for the construction of their buildings.
		<br />They currently have ' . $aetherres . ' resources
		<p>Donate the following resources:';
    if ($scholarperc < 100 || $creatorperc < 100 || $builderperc < 100) {
        fTitle("index.php?page=Aether&action=aidnethers");
        fText("Brimstone:", "brimstone");
        fText("Crystal:", "crystal");
        fText("Essence:", "essence");
        fText("Granite:", "granite");
        fEnd("Donate");
    }
    echo '<p>At the moment you can visit the following locations:
		<br /><a href="index.php?page=library">Aether Curse Shop.</a>
Пример #30
0
<?php

topic("Creature And Item Database");
if (!$action) {
    echo '
		Enter the name of a creature or item in the field below to get information about that spell.
		You can only get information about the spells that are somewhat in your reach.
		Only creatures and items that have a usage level lower than your own will be available here.
		<br><br>
		';
    fTitle("index.php?page=spellinfo&action=viewinfo");
    fText("Spell Name:", "name");
    fEnd("Search");
}
if ($action == "viewinfo") {
    $no = 1;
    if ($type && $sid) {
        if ($type == "creature") {
            $sql = "SELECT count(*) FROM creatures WHERE id = '{$sid}'";
            $result = $db->query($sql);
            $numrows = $db->result($result, 0);
            if ($numrows == 1) {
                $no = 0;
            }
        }
        if ($type == "item") {
            $sql = "SELECT count(*) FROM items WHERE id = '{$sid}'";
            $result = $db->query($sql);
            $numrows = $db->result($result, 0);
            if ($numrows == 1) {
                $no = 0;