-
Notifications
You must be signed in to change notification settings - Fork 2
/
addTester.php
31 lines (24 loc) · 861 Bytes
/
addTester.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
<?php
include("../../Migration/Composition.php");
include("../../plugins/list/track/Browser.php");
include("../../plugins/list/track/get_browser.php");
$b = get__browser($_SERVER['HTTP_USER_AGENT']);
$db = new db();
$IP = $_SERVER["REMOTE_ADDR"];
$width = $_POST["width"];
$height = $_POST["height"];
if ($width=="") exit;
if ($height=="") exit;
if ($db->isReady())
{
$data = $db->get("aud_TigEngine", "*", "ip='" . $IP. "' AND width = '" . $width . "' AND height = '" . $height . "'", "", "1");
if (empty($data)) {
$db->insert("aud_TigEngine", array("date", "ip", "width", "height", "platform", "browser", "http_user_agent"),
array(date("M D Y h:m:sa", time()), $IP, $width, $height, $b[0], $b[1], $_SERVER["HTTP_USER_AGENT"]));
}
else
{
//print "already included!";
}
}
?>