-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path5vs5.php
executable file
·352 lines (291 loc) · 10.5 KB
/
5vs5.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
347
348
349
350
351
352
<?php
require_once("configs.php");
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" xmlns:xml="http://www.w3.org/XML/1998/namespace" class="chrome chrome8">
<head>
<title><?php echo $website['title']; ?> - Status</title>
<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" />
<link rel="shortcut icon" href="wow/static/local-common/images/favicons/wow.png" type="image/x-icon" />
<link rel="stylesheet" type="text/css" media="all" href="wow/static/local-common/css/common.css?v15" />
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/local-common/css/common-ie.css?v17" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/local-common/css/common-ie6.css?v17" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/local-common/css/common-ie7.css?v17" /><![endif]-->
<link rel="stylesheet" type="text/css" media="all" href="wow/static/css/wow.css?v7" />
<link rel="stylesheet" type="text/css" media="all" href="wow/static/css/status/realmstatus.css?v7" />
<!--[if IE]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/css/wow-ie.css?v7" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/css/wow-ie6.css?v7" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="all" href="/wow/static/css/wow-ie7.css?v7" /><![endif]-->
<script type="text/javascript" src="wow/static/local-common/js/third-party/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="wow/static/local-common/js/core.js?v15"></script>
<script type="text/javascript" src="wow/static/local-common/js/tooltip.js?v15"></script>
<!--[if IE 6]> <script type="text/javascript">
//<![CDATA[
try { document.execCommand('BackgroundImageCache', false, true) } catch(e) {}
//]]>
</script>
<![endif]-->
<script type="text/javascript">
//<![CDATA[
Core.staticUrl = '/wow/static';
Core.sharedStaticUrl= '/wow/static/local-common';
Core.baseUrl = '/wow/en';
Core.project = 'wow';
Core.locale = 'en-gb';
Core.buildRegion = 'eu';
Core.loggedIn = false;
Flash.videoPlayer = 'http://eu.media.blizzard.com/wow/player/videoplayer.swf';
Flash.videoBase = 'http://eu.media.blizzard.com/wow/media/videos';
Flash.ratingImage = '../../../eu.media.blizzard.com/wow/player/rating-pegi.jpg';
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-544112-16']);
_gaq.push(['_setDomainName', '.battle.net']);
_gaq.push(['_trackPageview']);
//]]>
</script>
<body class="en-gb game-index"><div id="predictad_div" class="predictad" style="display: none; left: 788px; top: 104px; width: 321px; "></div>
<div id="wrapper">
<?php $page_cat="game"; include("header.php"); ?>
<div id="content">
<div class="content-top">
<div class="content-trail">
<ol class="ui-breadcrumb">
<li><a href="index.php" rel="np"><?php echo $website['title']; ?></a></li>
<li><a href="status.php" rel="np">Status</a></li>
<li><a href="status.php" rel="np">Arena</a></li>
<li class="last"><a href="5vs5.php" rel="np">Top 5vs5</a></li>
</ol>
</div>
<div class="content-bot">
<div class="content-header">
<h2 class="header ">Top 5vs5</h2>
<div class="desc">This page lists all available World of Failure Players inside the <?php
$get_realms = mysql_query("SELECT * FROM $server_adb.realmlist ORDER BY `id` ASC");
while($realm = mysql_fetch_array($get_realms)){
$host = $realm['address'];
$world_port = $realm['port'];
$world = @fsockopen($host, $world_port, $err, $errstr, 2);
echo $realm['name'];
}?> Realm as well as the stats of each. The Character can be listed as either Horde or Alliance. Let us apologize in advance if you find any player that is not listed, it takes 5 seconds to refresh the list.</div>
<span class="clear"><!-- --></span>
</div>
<div id="realm-status">
<?php include("functions/status_nav.php"); ?>
<div class="filter-toggle">
<a href="javascript:;" class="selected" onclick="RealmStatus.filterToggle(this)">
</a>
</div>
<span class="clear"><!-- --></span>
<div id="realm-filters" class="table-filters">
<form action="#">
<div class="filter">
<label for="filter-status">Faction</label>
<select id="filter-status" class="input select" data-filter="column" data-column="0">
<option value="">All</option>
<option value="up">Alliance</option>
<option value="down">Horde</option>
</select>
</div>
<div class="filter">
<label for="filter-name">Name</label>
<input type="text" class="input" id="filter-name"
data-filter="column" data-column="1" />
</div>
<div class="filter">
<label for="filter-type">Race</label>
<select id="filter-type" class="input select" data-filter="column" data-column="2">
<option value="">All</option>
<option value="pve">
Human
</option>
<option value="rppvp">
Dwarf
</option>
<option value="pvp">
Night Elf
</option>
<option value="rp">
Gnome
</option>
<option value="rp">
Draenei
</option>
<option value="rp">
Worgen
</option>
<option value="rp">
Orc
</option>
<option value="rp">
Troll
</option>
<option value="rp">
Tauren
</option>
<option value="rp">
Undead
</option>
<option value="rp">
Blood Elf
</option>
<option value="rp">
Goblin
</option>
</select>
</div>
<div class="filter">
<label for="filter-population">Class</label>
<select id="filter-population" class="input select" data-filter="column" data-column="3">
<option value="">All</option>
<option value="high">Warrior</option>
<option value="medium">Paladin</option>
<option value="n/a">Rogue</option>
<option value="low">Mage</option>
<option value="low">Druid</option>
<option value="low">Warlock</option>
<option value="low">Hunter</option>
<option value="low">Shaman</option>
<option value="low">Priest</option>
<option value="low">Death Knight</option>
</select>
</div>
<div class="filter">
<label for="filter-locale">Level</label>
<select id="filter-locale" class="input select" data-column="4" data-filter="column">
<option value="">All</option>
<option value="spanish">Cataclysm Levels</option>
<option value="german">WoTLK Levels</option>
<option value="french">Burning Crusade Levels</option>
<option value="tournament">Vanilla Levels</option>
</select>
</div>
<div class="filter">
<label for="filter-queue">Location</label>
<input type="checkbox" id="filter-queue" class="input" value="true" data-column="5" data-filter="column" />
</div>
<div class="filter" style="margin: 5px 0 5px 15px">
<button
class="ui-button button1 "
type="button"
id="filter-button"
onclick="RealmStatus.reset();"
>
<span>
<span>Reset</span>
</span>
</button>
</div>
<span class="clear"><!-- --></span>
</form>
</div>
</div>
<span class="clear"><!-- --></span>
<div id="all-realms">
<div class="table full-width">
<table>
<thead>
<tr>
<?php
$con = mysql_connect($serveraddress, $serveruser, $serverpass, $serverport) or die(mysql_error());
mysql_select_db($server_cdb, $con) or die (mysql_error());
$sql = mysql_query("SELECT name, rating, seasonGames, seasonWins FROM arena_team WHERE type = '5' ORDER BY rating DESC LIMIT 10") or die(mysql_error());
$i='1';
$numrows = mysql_num_rows($sql);
if($numrows > 0)
{
echo '<div class="view-table">
<div class="table ">
<table>
<thead>
<tr>
<th><a href="javascript:;" class="sort-link"><span class="arrow">#</span></a></th>
<th><a href="javascript:;" class="sort-link"><span class="arrow">Name</span></a></th>
<th><a href="javascript:;" class="sort-link"><span class="arrow">Rating</span></a></th>
<th><a href="javascript:;" class="sort-link"><span class="arrow">Games Played</span></a></th>
<th><a href="javascript:;" class="sort-link"><span class="arrow">Games Won</span></a></th>
</tr>
</thead>';
while ($pvp_row = mysql_fetch_assoc($sql)){
echo '
<tr class="row1">
<td>
<a href="" class="item-link color-c9"><strong><a href="">'.$i.'</a></strong>
</a>
</td>
<td style="background-color: '.$bg.';"><center><a href="arena.php?name='.$pvp_row["name"].'">'.$pvp_row["name"].'</a></center></td>
<td style="background-color: '.$bg.';"><center>'.$pvp_row["rating"].'</center></td>
<td style="background-color: '.$bg.';"><center>'.$pvp_row["seasonGames"].'</center></td>
<td style="background-color: '.$bg.';"><center>'.$pvp_row["seasonWins"].'</center></td>
</tr>';
$i++;
}
echo '';
echo"</table><br />";
}
else
{
echo "<b>There are no Arena Teams right now.</b>";
}
?>
<tbody>
<tr class="row1">
<td class="name">
</td>
<td class="type" data-raw="pvp">
<span class="pvp">
</span>
</td>
<td class="population" data-raw="Low">
<span class="Low">
</span>
</td>
<td class="locale">
</td>
<td class="queue" data-raw="false">
</td>
</tr>
<tr class="row2">
<td class="name">
</td>
<td class="type" data-raw="pve">
<span class="pve">
</span>
</td>
<td class="population" data-raw="medium">
<span class="medium">
</span>
</td>
<td class="locale">
</td>
<td class="queue" data-raw="false">
</td>
</tr>
<tr class="row1">
<td class="name">
</td>
<td class="type" data-raw="pvp">
<span class="normal">
</span>
</td>
<td class="population" data-raw="Low">
<span class="Low">
</span>
</td>
<td class="locale">
</td>
<td class="queue" data-raw="false">
</td>
</tr>
<tr class="no-results" style="display: none">
<td colspan="6"></td>
</tr>
</tbody>
</table>
</div>
</div>
<span class="clear"><!-- --></span>
</div>
</div>
</div>
<?php include("footer.php"); ?>
<div id="fansite-menu" class="ui-fansite"></div><div id="menu-container"></div><ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all" role="listbox" aria-activedescendant="ui-active-menuitem" style="z-index: 6; top: 0px; left: 0px; display: none; "></ul></body>
</html>