mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-20 06:33:26 +02:00
Version 0.95 BETA
This commit is contained in:
11
api/crash.php
Normal file
11
api/crash.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?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";
|
||||
?>
|
Reference in New Issue
Block a user