-
Notifications
You must be signed in to change notification settings - Fork 40
/
stats_1.php
executable file
·61 lines (42 loc) · 1.35 KB
/
stats_1.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
<?php
require 'config.php';
require '/var/www/classes/Session.class.php';
require '/var/www/classes/Player.class.php';
require '/var/www/classes/Internet.class.php';
require '/var/www/classes/System.class.php';
require '/var/www/classes/Pagination.class.php';
$session = new Session();
if($session->issetLogin()){
$player = new Player($_SESSION['id']);
$system = new System();
$pagination = new Pagination();
require 'template/gameHeader.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $gameTitle; ?></title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="css/stats.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-color: #F5F5F5;">
<br/>
<?php
if($session->issetMsg()){
$session->returnMsg();
}
if($system->issetGet('round')){
$page = 'round='.$_GET['round'].'&page';
} else {
$page = 'page';
}
$pagination->paginate('', 'round', 100, $page, 1);
$pagination->showPages(100, $page);
?>
</body>
</html>
<?php
} else {
header("Location:index.php");
}
?>