-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtracker.php
40 lines (37 loc) · 1.06 KB
/
tracker.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
<?php
if(!isset($_GET['id'])) {
header('Location: 404.php');
exit();
} else {
require 'includes/php/tracker.php';
$trackerCode = $_GET['id'];
if(trackerExist($db, $trackerCode)) {
$request = getTracker($db, $trackerCode);
$data = $request->fetch();
$request->closeCursor();
} else {
header('Location: 404.php');
exit();
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tracking #<?= $data['code']; ?> | Armox IP Logger</title>
<link rel="stylesheet" href="includes/css/style.css">
</head>
<body>
<div class="website-container">
<div class="content">
<h1>Tracking #<?= $data['code']; ?></h1>
<div id="result">
<h3>No Logs found</h3>
</div>
</div>
</div>
<script src="includes/js/track.js"></script>
</body>
</html>