-
Notifications
You must be signed in to change notification settings - Fork 1
/
legal.php
87 lines (65 loc) · 2.31 KB
/
legal.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
<?php
require 'config.php';
require 'classes/Session.class.php';
require 'classes/Player.class.php';
require 'classes/System.class.php';
require 'classes/Ranking.class.php';
$session = new Session();
$system = new System();
$ranking = new Ranking();
ob_start();
require 'template/contentStart.php';
$all = ' class="active"';
$cur = '';
$show = 'tos';
$tos = ' active';
$pp = '';
if($system->issetGet('show')){
$showInfo = $system->switchGet('show', 'tos', 'privacy', 'forum');
if($showInfo['ISSET_GET'] == 1){
switch($showInfo['GET_VALUE']){
case 'tos':
$show = 'tos';
break;
case 'privacy':
$show = 'pp';
$tos = '';
$pp = ' active';
break;
}
}
}
?>
<div class="span12">
<div class="alert alert-error">
<button class="close" data-dismiss="alert">×</button>
<?php echo _('<strong>Attention!</strong> By playing Hacker Experience you consent with the following terms, so read them carefully!'); ?>
</div>
<div class="widget-box ">
<div class="widget-title">
<ul class="nav nav-tabs">
<li class="link <?php echo $tos; ?>"><a href="legal.php"><span class="icon-tab he16-tos"></span><?php echo _('Terms of service'); ?></a></li>
<li class="link<?php echo $pp; ?>"><a href="?show=privacy"><span class="icon-tab he16-privacy"></span><?php echo _('Privacy Policy'); ?></a></li>
<a href="#"><span class="label label-info"><?php echo _("Help"); ?></span></a>
</ul>
</div>
<div class="widget-content padding noborder">
<?php
if($show == 'tos'){
$source = 'TOS.php';
} else {
$source = 'privacy.php';
}
?>
<iframe id="legalframe" src="<?php echo $source; ?>" width="100%" seamless="1"></iframe>
<?php
?>
<center><a class="btn btn-danger" target="__blank" href="<?php echo $source; ?>"><?php echo _('Open in a new tab'); ?></a></center>
</div>
<div class="nav nav-tabs" style="clear: both;"></div>
<?php
ob_end_flush();
ob_start();
require 'template/contentEnd.php';
ob_end_flush();
?>