-
Notifications
You must be signed in to change notification settings - Fork 51
/
map.php
94 lines (87 loc) · 3.67 KB
/
map.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
88
89
90
91
92
93
94
<?php
require('./vendor/autoload.php');
include('inc/browserGeo.inc.php');
$countFromCountries = getCountFromCountries();
?>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>XSS Exploitation Tool</title>
<link rel="stylesheet" href="./styles/bootstrap.css"/>
<link rel="stylesheet" href="./styles/bootstrap-icons.css">
<link rel="stylesheet" href="./styles/flag-icons.css"/>
<link rel="stylesheet" href="./styles/svgMap.min.css">
<link rel="stylesheet" href="./styles/style.css"/>
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon.ico">
</head>
<body id="body">
<?php
include_once('./inc/header.inc.php');
?>
<div class="container-fluid" style="background-color: rgba(0, 0, 0, .5);">
<div class="row">
<div class="d-flex justify-content-center flex-nowrap">
<div class="col">
</div>
<div class="col">
<div class="map p-0" id="svgMap">
</div>
</div>
<div class="col mx-0">
</div>
</div>
</div>
</div>
<?php
include_once('./inc/footer.inc.php');
?>
<script src="../scripts/svg-pan-zoom.js"></script>
<script src="../scripts/svgMap.js"></script>
<script>
var headerHeight = document.getElementById("header").clientHeight;
var footerHeight = document.getElementById("footer").clientHeight;
var wrapperHeight = window.innerHeight - headerHeight - footerHeight;
var ratio = window.innerWidth / window.innerHeight;
var mapWidth = wrapperHeight * ratio;
document.getElementById("svgMap").setAttribute("style","width:" + mapWidth);
new svgMap({
targetElementID: 'svgMap',
mouseWheelZoomEnabled: false,
colorMax: 'FFFFFF',
colorMin: 'FFFFFF',
colorNoData: '#328771',
noDataText: '',
data: {
data: {
hooked: {
name: 'Hooked',
format: '{0}'
}
},
applyData: 'hooked',
values: {
<?php
if(count($countFromCountries) >= 1) {
if(count($countFromCountries) > 1) {
for($i = 0 ; $i < count($countFromCountries) -1 ; $i++) {
echo '"' . $countFromCountries[$i]["countryCode"] . '": { hooked: ' . $countFromCountries[$i]["count"] . '},';
}
}
echo '"' . end($countFromCountries)['countryCode'] . '": { hooked: ' . end($countFromCountries)['count'] . '},';
}
?>
}
}
});
document.getElementsByClassName('svgMap-tooltip')[0].setAttribute("style","opacity: 1.0;");
</script>
<script src="scripts/jquery-3.7.1.min.js"></script>
<script type="text/javascript">
setInterval("my_function();",3000);
function my_function(){
$('#subHeader').load('./inc/subheader.inc.php');
}
</script>
</body>
</html>