forked from cp6/DayZ-Trader-Bank-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer_history.php
47 lines (47 loc) · 1.57 KB
/
player_history.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
<?php
require_once('class.php');
$dz = new dzTraderBankLogging();
if ($dz->uidSet()) {
$uid = $dz->uidSet();
} else {
$dz->playerUidForm();
exit;
}
($dz->IssetCheck('GET', 'type')) ? $type = $dz->IssetCheck('GET', 'type') : $type = 'trade';
if ($type == 'trade') {
($dz->IssetCheck('GET', 'action')) ? $action = $dz->IssetCheck('GET', 'action') : $action = 'all';
}
($dz->IssetCheck('GET', 'days')) ? $days = $dz->IssetCheck('GET', 'days') : $days = 3;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $dz->playerHistoryPageTitleBuilder($uid, $action, $type, $days); ?></title>
<link rel="stylesheet" href="style.min.css"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<?php
if ($dz->mainViewSystem()) {//Is admin system in use or everyone can view
$dz->navBar('PLAYER_HISTORY');
$dz->playerHistoryCard($uid, 'trade');
if ($type == 'trade') {
$dz->playerTradeHistoryTable($uid, $action, $days);
} elseif ($type == 'atm') {
$dz->playerATMHistoryTable($uid);
}
$dz->footerText();
} else {
$dz->loginButtonPressed();//Login button was pressed
$dz->unAuthOutputs();//Not an admin OR login is required
}
?>
</div>
</div>
</div>
</body>
</html>