forked from cp6/DayZ-Trader-Bank-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitem_history.php
33 lines (33 loc) · 1.11 KB
/
item_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
<?php
require_once('class.php');
$dz = new dzTraderBankLogging();
($dz->IssetCheck('GET', 'hours')) ? $hours = $_GET['hours'] : $hours = 24;
($dz->IssetCheck('GET', 'id')) ? $item_id = $_GET['id'] : $item_id = false;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>DZ TBLogging item history <?php echo $item_id; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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('ITEM_HISTORY');
($item_id) ? $dz->itemTradeHistoryTable($item_id, $hours) : $dz->noItemIdSetCard();
$dz->footerText();
} else {
$dz->loginButtonPressed();//Login button was pressed
$dz->unAuthOutputs();//Not an admin OR login is required
}
?>
</div>
</div>
</div>
</body>
</html>