Update Banyak
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
if ($_GET['token'] !== 'YOUR_SECRET_TOKEN') {
|
||||
http_response_code(403);
|
||||
exit('Invalid token');
|
||||
}
|
||||
|
||||
$rawData = file_get_contents('php://input');
|
||||
|
||||
if (empty($rawData)) {
|
||||
http_response_code(400);
|
||||
exit('No backup content received');
|
||||
}
|
||||
|
||||
$filename = "backup_" . date("Ymd_His") . ".rsc";
|
||||
file_put_contents(__DIR__ . "/" . $filename, $rawData);
|
||||
|
||||
echo "Backup received: $filename";
|
||||
?>
|
||||
Reference in New Issue
Block a user