/
tops.php
346 lines (303 loc) · 18.3 KB
/
tops.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
<?php
date_default_timezone_set('America/New_York');
define('FACEBOOK_APP_ID', '119442588120693');
define('FACEBOOK_SECRET', '394479c493bac0ee777a8d9cf61ac4fd');
function get_facebook_cookie($app_id, $application_secret)
{
$args = array();
if(isset($_COOKIE['fbs_' . $app_id]))
{
parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args);
ksort($args);
$payload = '';
foreach ($args as $key => $value)
{
if ($key != 'sig')
{
$payload .= $key . '=' . $value;
}
}
if (md5($payload . $application_secret) != $args['sig'])
{
return null;
}
}
return $args;
}
$cookie = get_facebook_cookie(FACEBOOK_APP_ID, FACEBOOK_SECRET);
include_once('php/simplepie.inc');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="keywords" content="free online mmo, mmorpg, rpg, neflaria, shimlar, neflaria v2" />
<meta name="description" content="Chrysellia is a free online RPG: create an account and fight for the top spot!" />
<meta name="author" content="silwarnaiilo@neflaria.com" />
<meta name="distribution" content="Global" />
<meta name="copyright" content="All content copyright 2010 Jack Lawson and Drew Ditthardt. All rights reserved." />
<title>Chrysellia (Beta): Rankings</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href='http://fonts.googleapis.com/css?family=Crimson+Text&subset=latin' rel='stylesheet' type='text/css'>
<!-- <link href="http://s3.amazonaws.com/Chrysellia/css/neflaria.min.css.gz" rel="stylesheet" media="screen" />
<link href="http://s3.amazonaws.com/Chrysellia/css/grid-fluid.min.css.gz" rel="stylesheet" media="screen" /> -->
<link href="./css/html5-reset.css" rel="stylesheet" media="screen" />
<link href="./css/jquery-ui.css" rel="stylesheet" media="screen" />
<link href="./css/grid.css" rel="stylesheet" media="screen" />
<link href="./css/neflaria-base.css" rel="stylesheet" media="screen" />
<link href="./css/tipsy.css" rel="stylesheet" media="screen" />
<!--[if IE 8]>
<link href="css/ie8.css" rel="stylesheet" media="screen" />
<![endif]-->
<!--[if IE 7]>
<link href="css/ie7.css" rel="stylesheet" media="screen" />
<![endif]-->
<!--[if IE 6]>
<link href="css/ie6.css" rel="stylesheet" media="screen" />
<![endif]-->
<link rel="icon" type="image/png" href="images/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="Neflaria News RSS Feed" href="http://v2.neflaria.com/blog/feed/" />
</head>
<body class="tops">
<div id="messages"></div>
<div id="navigation">
<div class="container_12">
<div class="grid_12" id="mainNav">
<nav>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="account.php" class="playNow">Play</a></li>
<li><a href="http://blog.chrysellia.com" target="_blank">Blog</a></li>
<li><a href="http://wiki.chrysellia.com" target="_blank">Manual</a></li>
<li><a href="tops.php" class="selected">Rankings</a></li>
<li><a href="http://forum.chrysellia.com" target="_blank">Forum</a></li>
<li><form target="_blank" method="post" action="https://www.paypal.com/cgi-bin/webscr"><input type="hidden" value="_s-xclick" name="cmd"><input type="hidden" value="U9PMXZHBZPVPJ" name="hosted_button_id"><button type="image" border="0" alt="PayPal - The safer, easier way to pay online!" name="submit" >Donate</button><img width="1" height="1" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" alt=""></form></li>
<li><a href="about.php">About</a></li>
<li><a href="api.php">API</a></li>
<li class='fbButton'><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.chrysellia.com&layout=button_count&show_faces=true&width=75&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:75px; height:21px;" allowTransparency="true"></iframe></li>
<!--<li><a href="#">Store</a></li>-->
</ul>
</nav>
</div>
</div>
</div>
<div class="container_12">
<div class="container_12">
<div class="grid_12">
<header>
<h1>Chrysellia</h1>
<h2>The classic free online RPG</h2>
</header>
</div>
<div class="clear"></div>
<div class="grid_12">
<h3>Options</h3>
<div class="options">
<form id="topsOptions" action="tops.php" method="get">
Sort by:
<select id="sortOptions"><option value="0" selected="Selected">Level</option><option value="1">Align (Good / Evil)</option><option value="2">Align (Ordered / Chaotic)</option></select>
<select id="sortDirection"><option value="0" selected="Selected">Descending</option><option value="1">Ascending</option></select>
<button type="submit">Sort Results</button>
</form>
</div>
<ul id="topList">
<!--<li class="Troll" title="#0: Nastra69 Neutral Level 2202 Troll"><div><h2 class="rank number_0">#1</h2><h3 class="charName">Nastra69</h3><span class="charDetails">Neutral Level 2202 Troll</span></div></li><li class="Gargoyle" title="#1: Catalyst of evil Neutral Level 2200 Gargoyle"><div><h2 class="rank number_1">#2</h2><h3 class="charName">Catalyst of evil</h3><span class="charDetails">Neutral Level 2200 Gargoyle</span></div></li><li class="Human" title="#2: SnowFlake Neutral Level 1237 Human"><div><h2 class="rank number_2">#3</h2><h3 class="charName">SnowFlake</h3><span class="charDetails">Neutral Level 1237 Human</span></div></li><li class="Aviakan" title="#3: Glitched Neutral Level 1190 Aviakan"><div><h2 class="rank number_3">#4</h2><h3 class="charName">Glitched</h3><span class="charDetails">Neutral Level 1190 Aviakan</span></div></li><li class="Orc" title="#4: Bird Of Prey Neutral Level 1018 Orc"><div><h2 class="rank number_4">#5</h2><h3 class="charName">Bird Of Prey</h3><span class="charDetails">Neutral Level 1018 Orc</span></div></li><li class="Drow" title="#5: UnholyRider Neutral Level 1000 Drow"><div><h2 class="rank number_5">#6</h2><h3 class="charName">UnholyRider</h3><span class="charDetails">Neutral Level 1000 Drow</span></div></li><li class="Drow" title="#6: Goliath Neutral Level 970 Drow"><div><h2 class="rank number_6">#7</h2><h3 class="charName">Goliath</h3><span class="charDetails">Neutral Level 970 Drow</span></div></li><li class="Dwarf" title="#7: General_Lee Neutral Level 866 Dwarf"><div><h2 class="rank number_7">#8</h2><h3 class="charName">General_Lee</h3><span class="charDetails">Neutral Level 866 Dwarf</span></div></li><li class="Troll" title="#8: Pea Wolf Neutral Level 736 Troll"><div><h2 class="rank number_8">#9</h2><h3 class="charName">Pea Wolf</h3><span class="charDetails">Neutral Level 736 Troll</span></div></li><li class="Drow" title="#9: Krios Neutral Level 705 Drow"><div><h2 class="rank number_9">#10</h2><h3 class="charName">Krios</h3><span class="charDetails">Neutral Level 705 Drow</span></div></li><li class="Troll" title="#10: Robberlord Neutral Level 608 Troll"><div><h2 class="rank number_10">#11</h2><h3 class="charName">Robberlord</h3><span class="charDetails">Neutral Level 608 Troll</span></div></li><li class="Drow" title="#11: TheBigBangBoom Neutral Level 529 Drow"><div><h2 class="rank number_11">#12</h2><h3 class="charName">TheBigBangBoom</h3><span class="charDetails">Neutral Level 529 Drow</span></div></li><li class="Goblin" title="#12: The Flame Alchemist Neutral Level 487 Goblin"><div><h2 class="rank number_12">#13</h2><h3 class="charName">The Flame Alchemist </h3><span class="charDetails">Neutral Level 487 Goblin</span></div></li><li class="Troll" title="#13: Swoon Neutral Level 485 Troll"><div><h2 class="rank number_13">#14</h2><h3 class="charName">Swoon</h3><span class="charDetails">Neutral Level 485 Troll</span></div></li><li class="Orc" title="#14: Sakuretsu_Armour Neutral Level 481 Orc"><div><h2 class="rank number_14">#15</h2><h3 class="charName">Sakuretsu_Armour</h3><span class="charDetails">Neutral Level 481 Orc</span></div></li><li class="Dwarf" title="#15: Pink Speedos Neutral Level 461 Dwarf"><div><h2 class="rank number_15">#16</h2><h3 class="charName">Pink Speedos</h3><span class="charDetails">Neutral Level 461 Dwarf</span></div></li><li class="Drow" title="#16: Dobby Neutral Level 456 Drow"><div><h2 class="rank number_16">#17</h2><h3 class="charName">Dobby</h3><span class="charDetails">Neutral Level 456 Drow</span></div></li><li class="Drow" title="#17: Slust Neutral Level 455 Drow"><div><h2 class="rank number_17">#18</h2><h3 class="charName">Slust</h3><span class="charDetails">Neutral Level 455 Drow</span></div></li><li class="Troll" title="#18: bognar Neutral Level 411 Troll"><div><h2 class="rank number_18">#19</h2><h3 class="charName">bognar</h3><span class="charDetails">Neutral Level 411 Troll</span></div></li><li class="Troll" title="#19: Ozkan Neutral Level 410 Troll"><div><h2 class="rank number_19">#20</h2><h3 class="charName">Ozkan</h3><span class="charDetails">Neutral Level 410 Troll</span></div></li><li class="Orc" title="#20: Drinky Crow Neutral Level 400 Orc"><div><h2 class="rank number_20">#21</h2><h3 class="charName">Drinky Crow</h3><span class="charDetails">Neutral Level 400 Orc</span></div></li><li class="Dwarf" title="#21: Bored Neutral Level 393 Dwarf"><div><h2 class="rank number_21">#22</h2><h3 class="charName">Bored</h3><span class="charDetails">Neutral Level 393 Dwarf</span></div></li><li class="Drow" title="#22: NikNak Neutral Level 361 Drow"><div><h2 class="rank number_22">#23</h2><h3 class="charName">NikNak</h3><span class="charDetails">Neutral Level 361 Drow</span></div></li><li class="Drow" title="#23: cripple Neutral Level 334 Drow"><div><h2 class="rank number_23">#24</h2><h3 class="charName">cripple</h3><span class="charDetails">Neutral Level 334 Drow</span></div></li><li class="Drow" title="#24: Norvalk Neutral Level 323 Drow"><div><h2 class="rank number_24">#25</h2><h3 class="charName">Norvalk</h3><span class="charDetails">Neutral Level 323 Drow</span></div></li>-->
</ul>
</div>
</div>
<div class="clear"></div>
</div>
<footer class="copyright">
<div class="container_12">
© 2010 <a href="mailto:silwarnaiilo@neflaria.com">Jack Lawson</a> and <a href="mailto:sexylingerie@neflaria.com">Drew Ditthardt</a>,
all rights reserved. <a href="tos.html">Terms of Service</a> - <a href="pp.html">Privacy Policy</a> - <a href="mailto:administration@neflaria.com">Contact</a>
</div>
</footer>
<div id="playNow" style="display:none">
<section class="logIn">
<h1>Log In</h1>
<p><a class="fb_button fb_button_medium" id="fblogin" href="#"><span class="fb_button_text">Log In</span></a> using Facebook</p>
<em class="or"> - or - </em>
<h3>Log In Manually:</h3>
<form action="submitaction.php" method="post" id="loginForm">
<div class="formRow">
<div class="formLabel">
<label for="li_username">Username:</label>
</div>
<div class="formInput">
<input type="text" id="li_username" placeholder="Account Username" />
</div>
<div class="formValidator">
<span id="li_username_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel">
<label for="li_password">Password:</label>
</div>
<div class="formInput">
<input type="password" id="li_password" placeholder="Password" />
</div>
<div class="formValidator">
<span id="li_password_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel"></div>
<div class="formInput">
<button type="submit" id="submitLogIn" class="button">Log In</button>
</div>
</div>
</form>
</section>
<section class="register">
<h1>Register</h1>
<p><a class="fb_button fb_button_medium" id="fbregister" href="#"><span class="fb_button_text">Register</span></a> using Facebook</p>
<em class="or"> - or - </em>
<h3>Register Manually:</h3>
<form action="submitaction.php" method="post" id="registerForm">
<div class="formRow">
<div class="formLabel">
<label for="ca_username">Username:</label>
</div>
<div class="formInput">
<input type="text" id="ca_username" placeholder="Account Username" />
</div>
<div class="formValidator">
<span id="ca_username_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel">
<label for="ca_password">Password:</label>
</div>
<div class="formInput">
<input type="password" id="ca_password" placeholder="Password" />
</div>
<div class="formValidator">
<span id="ca_password_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel">
<label for="ca_confirmPassword">Confirm Password:</label>
</div>
<div class="formInput">
<input type="password" id="ca_confirmPassword" placeholder="Confirm Password" />
</div>
<div class="formValidator">
<span id="ca_confirmPassword_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel">
<label for="ca_email">Email:</label>
</div>
<div class="formInput">
<input type="text" id="ca_email" placeholder="Account Email" />
</div>
<div class="formValidator">
<span id="ca_email_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel">
<label for="ca_confirmEmail">Confirm Email:</label>
</div>
<div class="formInput">
<input type="text" id="ca_confirmEmail" placeholder="Confirm Email" />
</div>
<div class="formValidator">
<span id="ca_confirmEmail_validator"></span>
</div>
</div>
<div class="formRow">
<div class="formLabel"></div>
<div class="formInput">
<button type="submit" id="submitCreateAccount" class="button createAccount">Create</button>
</div>
</div>
</form>
</section>
</div>
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>-->
<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<!--[if IE]>
<div id='incompatible'>
Internet Explorer is unsupported for the duration of
Chrysellia's beta. For the best experience, use another browser. Try
<a href="http://http://www.google.com/chrome">Chrome</a>,
<a href="http://www.mozilla.com/en-US/firefox/">Firefox</a>,
<a href="http://www.apple.com/safari/">Safari</a>, or
<a href="http://www.opera.com">Opera</a>.
</div>
<script type='text/javascript'>
$(function(){
$("#incompatible").dialog({ modal: true, title: "Unsupported Browser" });
});
</script>
<![endif]-->
<script id="topstmpl" type="text/x-jquery-tmpl">
{{each character }}
<li title="#${$index + 1}: ${Name} ${AlignName(AlignGood, AlignOrder)} ${Level} ${vc.Races[RaceId].Name}" class="${vc.Races[RaceId].Name}">
<div>
<h2 class='rank number_${$index + 1}'>#${$index + 1}</h2>
<h3 class='charName'>${Name}</h3>
<span class='charDetails'>${AlignName(AlignGood, AlignOrder)} Level ${Level} ${vc.Races[RaceId].Name}</span>
</div>
</li>
{{/each}}
</script>
<!--<script src="http://code.jquery.com/jquery-1.5.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<script src="http://s3.amazonaws.com/Chrysellia/js/plugins.min.js.gz"></script>
<script src="./js/consolefix.js"></script>
<script src="http://s3.amazonaws.com/Chrysellia/js/core.min.js.gz"></script>
<script src="http://s3.amazonaws.com/Chrysellia/js/libraries.min.js.gz"></script>
<script src="http://s3.amazonaws.com/Chrysellia/js/startup.min.js.gz"></script>
<script src="http://s3.amazonaws.com/Chrysellia/js/account-startup.min.js.gz"></script>-->
<script src="http://code.jquery.com/jquery-1.5.1.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<!-- Here come the plugins -->
<script src="./js/plugins.min.js"></script>
<script src="./js/jquery.watermark.min.js"></script>
<script src="./js/jquery.cookie.js"></script>
<script src="./Core/jquery-md5.js" type="text/javascript"></script>
<script src="./Core/json.js" type="text/javascript"></script>
<script src="./js/jsend.min.js"></script>
<script src="./js/jquery.tipsy.js"></script>
<script src="./js/jstorage.js"></script>
<script src="./js/consolefix.js"></script>
<!-- For the production version, we'll minify and combine our javascript, and keep a plain version for us -->
<script src="./Core/core.js"></script>
<script src="./Core/core-AccountService.js"></script>
<script src="./Core/core-CharacterService.js"></script>
<script src="./Core/core-CommandService.js"></script>
<script src="./Core/core-ChatService.js"></script>
<script src="./Core/core-MapService.js"></script>
<script src="./Core/core-ItemService.js"></script>
<script src="./Core/core-MonsterService.js"></script>
<!-- Libraries -->
<script src="./Core/staticInfo/items.js"></script>
<script src="./Core/staticInfo/maps.js"></script>
<script src="./Core/staticInfo/monsters.js"></script>
<script src="./Core/staticInfo/races.js"></script>
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20727556-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>