mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-29 10:49:21 +02:00
11 lines
465 B
PHP
11 lines
465 B
PHP
<?php
|
|
$data = file_get_contents("php://input", false, stream_context_get_default(), 0, $_SERVER["CONTENT_LENGTH"]);
|
|
if($_REQUEST['txt'] == 1) {
|
|
file_put_contents("crashes/".time()."_".$_SERVER['REMOTE_ADDR'].".txt", $data);
|
|
} else if($_REQUEST['txt'] == 2) {
|
|
file_put_contents("crashes/".time()."_".$_SERVER['REMOTE_ADDR'].".log", $data);
|
|
} else {
|
|
file_put_contents("crashes/".time()."_".$_SERVER['REMOTE_ADDR'].".dmp", $data);
|
|
}
|
|
echo "OK";
|
|
?>
|