forked from yi12345/TravianT4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
461 lines (454 loc) · 23 KB
/
index.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
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<?php
#################################################################################
## ##
## -= YOU MUST NOT REMOVE OR CHANGE THIS NOTICE =- ##
## ##
## --------------------------------------------------------------------------- ##
## ##
## Project: ZravianX ##
## Version: 2011.12.03 ##
## Filename: index.php ##
## Developed by: ZZJHONS ##
## Little changes by: yi12345 ##
## License: Creative Commons BY-NC-SA 3.0 ##
## Copyright: ZravianX (c) 2011 - All rights reserved ##
## URLs: http://zravianx.zzjhons.com ##
## Source code: http://www.github.com/ZZJHONS/ZravianX ##
## ##
#################################################################################
if(!file_exists('GameEngine/config.php')) {
header("Location: install/");
}
include ("GameEngine/Database.php");
include ("GameEngine/Lang/".$result['lang'].".php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Powered by ZravianX Server - <?php echo SERVER_NAME; ?></title>
<link rel="shortcut icon" href="favicon.ico" />
<meta content="description" content="<?php echo $lang['index2']['description']; ?>" />
<link rel="stylesheet" type="text/css" href="gpack/travian_homepage/lang/en/compact.css"/>
<meta name="content-language" content="<?php echo LANG;?>"/>
<meta http-equiv="imagetoolbar" content="no"/>
<script type="text/javascript" src="crypt1.js?1302263420"></script>
<style type="text/css">
/*<![CDATA[*/
div.c1 {left: 274px; top: 100px; display: block; visibility: visible}
/*]]>*/
</style>
</head>
<body class=" LTR">
<div id="backgroundLeft"></div>
<div id="backgroundRight"></div>
<div id="background">
<div id="navigation-wrapper">
<div id="navigation-container">
<div id="country_select">
</div>
<div id="top-nav">
<div id="top-nav-menu">
<ul id="top-navigation">
<li><a href="#tutorial" class="popcon"><?php echo GAME_TOUR; ?></a></li>
<li><a href="<?php echo FORUM_LINK; ?>" target="blank" id="forum"><?php echo FORUM; ?></a></li>
<li><a href="#moregames" class="popcon"><?php echo MORE_GAMES; ?></a></li>
<li><a href="#serverRegister" class="popcon" id="register"><?php echo REGISTER; ?></a></li>
</ul>
</div>
<div id="top-nav-login">
<div id="login">
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#serverLogin"><?php echo LOGIN; ?></a></div>
<div class="btn-green-r"></div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="content-container">
<div id="content-menu">
<div id="statistics">
<div id="stat-top"></div>
<div id="stat_bottom"></div>
<h3 class="stat bold grey"><?php echo PLAYER_STATISTICS; ?></h3>
<div>
<div class="stat type"><?php echo TOTAL_PLAYERS; ?>:</div>
<div class="stat value"><?php $users = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "users"));
echo $users-4; ?></div>
<div class="clear"></div>
<div class="stat type"><?php echo PLAYERS_ACTIVE; ?>:</div>
<div class="stat value"><?php $time = time() - 3600*24;
$active = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "users WHERE timestamp > $time AND tribe!=0 AND tribe!=4 AND tribe!=5"));
echo $active; ?></div>
<div class="clear"></div>
<div class="stat type"><?php echo PLAYERS_ONLINE; ?>:</div>
<div class="stat value"><?php $time = time() - 60*10;
$online = mysql_num_rows(mysql_query("SELECT * FROM " . TB_PREFIX . "users WHERE timestamp > $time AND tribe!=0 AND tribe!=4 AND tribe!=5"));
echo $online; ?></div>
<div class="clear"></div>
</div>
</div>
<?php include("Templates/homenews.tpl");?>
</div>
<div id="content-main">
<div id="wit">
<div id="wit-top"></div>
<div id="wit-content" class="with-button">
<div id="hero"></div>
<h1 class="wit bold"><?php echo $lang['index2']['strategy game']; ?></h1>
<div class="wit-info">
<?php echo $lang['index2']['what is']; ?>
<div class="playnow playnow-button">
<div class="playnow-start">
<h1 class="play white bold">
<a class="popcon play" href="#serverRegister" title="<?php echo $lang['index2']['register free']; ?>"><?php echo $lang['index2']['register free']; ?></a>
</h1>
</div>
<div class="playnow-end"></div>
<div class="clear"></div>
</div>
</div>
<div id="stage_space"></div>
<div id="stage">
<div id="frame">
<div class="stage-content stage-content0 shown" style="background-image: url(http://www.travian.com/tvbox_image.php?size=big&id=1)">
<div style="position:absolute; left:15px; top:170px;">
<img alt="" class="bbArrow" src="img/x.gif" />
<span style="color:black;"><span style="font-weight:bold;"><?php echo $lang['index2']['text1']; ?></span></span>
</div>
<div style="position:absolute; left:15px; top:12px;">
<h3><?php echo $lang['index2']['title1']; ?></h3>
<br />
<span style="font-weight:bold;"><?php echo $lang['index2']['desc1']; ?></span>
</div>
<div class="stage-arrow stage-arrow-0"></div>
</div>
<div class="stage-content stage-content1" style="background-image: url(http://www.travian.com/tvbox_image.php?size=big&id=2)">
<div style="position:absolute; left:15px; top:170px;">
<img alt="" class="bbArrow" src="img/x.gif" />
<span style="color:black;"><span style="font-weight:bold;"><?php echo $lang['index2']['text2']; ?></span></span>
</div>
<div style="position:absolute; left:15px; top:12px;">
<h3><?php echo $lang['index2']['title2']; ?></h3>
<br />
<span style="font-weight:bold;"><?php echo $lang['index2']['desc2']; ?></span>
</div>
<div class="stage-arrow stage-arrow-1"></div>
</div>
<div class="stage-content stage-content2" style="background-image: url(http://www.travian.com/tvbox_image.php?size=big&id=3)">
<div style="position:absolute; left:15px; top:170px;">
<img alt="" class="bbArrow" src="img/x.gif" />
<span style="color:black;"><span style="font-weight:bold;"><?php echo $lang['index2']['text3']; ?></span></span>
</div>
<div style="position:absolute; left:15px; top:12px;">
<h3><?php echo $lang['index2']['title3']; ?></h3>
<br />
<span style="font-weight:bold;"><?php echo $lang['index2']['desc3']; ?></span>
</div>
<div class="stage-arrow stage-arrow-2"></div>
</div>
<div id="stage-nav">
<ul id="buttons">
<li class="b0 act0" style="background-image: url(http://www.travian.com/tvbox_image.php?size=small&id=1)"> </li>
<li class="b1" style="background-image: url(http://www.travian.com/tvbox_image.php?size=small&id=2)"> </li>
<li class="b2" style="background-image: url(http://www.travian.com/tvbox_image.php?size=small&id=3)"> </li>
</ul>
</div>
</div>
<div id="stage-bg"></div>
<div id="stage-fg">
<div class="stage-links">
<a class="stage-link stage-link1 shown" href="<?php echo $lang['index2']['link1']; ?>"></a>
<a class="stage-link stage-link2" href="<?php echo $lang['index2']['link2']; ?>"></a>
<a class="stage-link stage-link3" href="<?php echo $lang['index2']['link3']; ?>"></a>
</div>
<div id="stage-nav-click">
<ul id="buttons-click">
<li class="b0 act0"> </li>
<li class="b1"> </li>
<li class="b2"> </li>
</ul>
</div>
</div>
</div>
</div>
<div id="wit-bottom"></div>
</div>
<div id="moreabttravian">
<div id="find-out-more">
<div id="strip-head">
<div><?php echo $lang['index2']['learn more']; ?></div>
</div>
<div id="strip">
<ul id="strips">
<li class="stip0"> </li>
<li class="stip1"> </li>
<li class="stip2"> </li>
<li class="stip3"> </li>
<li class="stip4"> </li>
<li class="stip5"> </li>
</ul>
</div>
<div id="strip-details">
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c1"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip1']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c2"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip2']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c3"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip3']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c4"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip4']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c5"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip5']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
<div class="details">
<div class="details-top"></div>
<div class="details-l-top"></div>
<div class="details-r-top"></div>
<div class="details-body">
<div class="details-body-l" id="strip-c6"></div>
<div class="details-body-r"><?php echo $lang['index2']['strip6']; ?><br /><br />
<div class="btn-green">
<div class="btn-green-l"></div>
<div class="btn-green-c"><a class="npage popcon" href="#tutorial"><?php echo GAME_TOUR; ?></a></div>
<div class="btn-green-r"></div>
</div>
</div>
</div>
<div class="details-l-bottom"></div>
<div class="details-r-bottom"></div>
<div class="details-bottom"></div>
</div>
</div>
</div>
</div>
<div id="ssc-bg">
<div id="ss-head">
<div id="ss-head-left"></div>
<div id="ss-head-right"></div>
<h3 class="ss bold white"><?php echo SCREENSHOTS; ?></h3>
</div>
<div id="ss-container">
<div id="g-widget">
<a class="browse next"></a>
<div id="gallery">
<div id="g-items">
<img src="img/x.gif" class="screen1" alt="" />
<img src="img/x.gif" class="screen2" alt="" />
<img src="img/x.gif" class="screen3" alt="" />
<img src="img/x.gif" class="screen4" alt="" />
<img src="img/x.gif" class="screen5" alt="" />
<img src="img/x.gif" class="screen6" alt="" />
<img src="img/x.gif" class="screen7" alt="" />
<img src="img/x.gif" class="screen8" alt="" />
</div>
</div>
<a class="browse prev"></a>
</div>
</div>
</div>
<script type="text/javascript">
window.addEvent('domready', function()
{
//stage
var stagewidget = new stageWidget({
stagebg:$('stage-bg'),
stageduration: {
0:5000,
1:5000,
2:5000 },
stagecon:$$(".stage-content"),
stagenav:$$("#buttons-click li"),
stagelink:$$(".stage-link"),
});
//tooltip
var tooltipwidget = new tooltipWidget({
tips: $$("#strips li"),
details:$$(".details")
});
//slider
var sliderwidget = new sliderWidget({
container: $$('#g-widget'),
pimgwidth:520,
head:$('prev_head'),
desc:$('prev_desc'),
prev_bg:$('overlaybg'),
prev_container:$('preview_container'),
prev_stage_container:$$('#preview_stage'),
prev_items:$('preview_items'),
close:$('close')
});
//slideshow [footer]
$('screenshotp').addEvents(
{
'click': function(e) {
e.stop();
this.fireEvent('show');
},
'show':function(e){
new sliderWidget({
container: $$('#g-widget'),
preview: false,
inpreview:true,
pimgwidth:520,
head:$('prev_head'),
desc:$('prev_desc'),
prev_bg:$('overlaybg'),
prev_container:$('preview_container'),
prev_stage_container:$$('#preview_stage'),
prev_items:$('preview_items'),
close:$('close'),
directcall:true
});
}
});
//popup anchor
var url = new URI();
var anchor = url.get('fragment');
if (anchor && anchor == 'screenshots')
{
$('screenshotp').fireEvent('show');
}
});
</script>
</div>
<div class="clear"></div>
</div>
<div id="footer-container">
<div id="footer">
<a class="flink popcon" href="#help"><?php echo SUPPORT; ?></a> |
<a target="blank" class="flink" href="anleitung.php?s=3"><?php echo FAQ; ?></a> |
<a class="flink popcon" href="#links"><?php echo LINKS; ?></a> |
<a target="blank" class="flink" href="#screenshots" id="screenshotp"><?php echo SCREENSHOTS; ?></a> |
<a class="flink popcon" href="#spielregeln"><?php echo SPIELREGELN; ?></a> |
<a class="flink popcon" href="#agb"><?php echo AGB; ?></a> |
<a class="flink popcon" href="#impressum"><?php echo IMPRINT; ?></a>
<br />
© 2011 - <a target="blank" class="flink" href="#">ZravianX</a> - All rights reserved
</div>
</div>
<div id="preview_container">
<div id="p-top"></div>
<div id="p-bg"></div>
<div id="p-bottom"></div>
<a class="close"></a>
<div id="p-content">
<div id="prev_head">
<h3><?php echo SCREENSHOTS; ?></h3>
</div>
<div id="preview_stage">
<a class="browse next"></a>
<div id="preview_img">
<div id="preview_items"></div>
</div>
<a class="browse prev"></a>
<div class="clear"></div>
</div>
<div id="prev_desc"></div>
</div>
</div>
<div id="popup">
<div id="popup-top"><a class="pclose"></a></div>
<div id="popup-content">
<div class="loading"></div>
</div>
<div id="popup-bottom"></div>
</div>
<div id="overlaybg"></div>
<script type="text/javascript">
var screenshots = [
{'img':'screenBig screenBig1','hl':'<?php echo SCREENSHOTS_T4_TITLE1; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc1"]; ?>'},
{'img':'screenBig screenBig2','hl':'<?php echo SCREENSHOTS_T4_TITLE2; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc2"]; ?>'},
{'img':'screenBig screenBig3','hl':'<?php echo SCREENSHOTS_T4_TITLE3; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc3"]; ?>'},
{'img':'screenBig screenBig4','hl':'<?php echo SCREENSHOTS_T4_TITLE4; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc4"]; ?>'},
{'img':'screenBig screenBig5','hl':'<?php echo SCREENSHOTS_T4_TITLE5; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc5"]; ?>'},
{'img':'screenBig screenBig6','hl':'<?php echo SCREENSHOTS_T4_TITLE6; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc6"]; ?>'},
{'img':'screenBig screenBig7','hl':'<?php echo SCREENSHOTS_T4_TITLE7; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc7"]; ?>'},
{'img':'screenBig screenBig8','hl':'<?php echo SCREENSHOTS_T4_TITLE8; ?>', 'desc':'<?php echo $lang["screenshots2"]["desc8"]; ?>'}
];
</script>
</div>
</body>
</html>