-
Notifications
You must be signed in to change notification settings - Fork 40
/
about.php
executable file
·87 lines (50 loc) · 1.4 KB
/
about.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 '/var/www/classes/Session.class.php';
require '/var/www/classes/System.class.php';
require '/var/www/classes/Player.class.php';
require '/var/www/classes/PC.class.php';
require '/var/www/classes/Versioning.class.php';
$session = new Session();
$system = new System();
?>
<html>
<?php require 'template/templateTop.php';
if($session->issetLogin()){
$player = new Player($_SESSION['id']);
$hardware = new HardwareVPC($_SESSION['id']);
$gotPage = '0';
$gotID = '0';
if($system->issetGet('page')){
$pageInfo = $system->verifyStringGet('page');
if($pageInfo['GET_VALUE'] == 'changelog'){
$gotPage = '1';
}
if($system->issetGet('id')){
$idInfo = $system->verifyNumericGet('id');
if($idInfo['IS_NUMERIC'] == '1'){
$gotID = '1';
}
}
}
$versioning = new Versioning();
if($gotPage == '1' && $gotID == '0'){
$versioning->listChanges();
} elseif($gotPage == '1' && $gotID == '1'){
$versioning->showChange($idInfo['GET_VALUE']);
}else {
?>
Current version: <?php echo $version.$versionStatus; ?>
<br/><br/>
<a href="about.php?page=changelog">View changelog</a>
<?php
}
?>
</table>
</body>
</html>
<?php
} else {
header("Location:index.php");
}
?>