目录结构调整

This commit is contained in:
2026-02-04 23:47:45 +08:00
parent 6938c911c3
commit 6b22238c6e
8780 changed files with 15333 additions and 574 deletions

View File

@@ -0,0 +1,31 @@
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT, PATCH, DELETE");
header("Access-Control-Allow-Headers: Content-Type, Authorization, Content-Length, X-Requested-With");
header("Access-Control-Allow-Credentials: true");
header("Content-Type: textml; charset=utf-8");
$path = @$_REQUEST['dir'];
$file = @$_REQUEST['file'];
$data = @$_REQUEST['data'];
if (empty($path)){
die('para error: dir');
}
if (empty($file)){
die('para error: file');
}
if (empty($data)){
die('para error: data');
}
$path = dirname($_SERVER['SCRIPT_FILENAME']) . '/debug/' . $path;
if (!is_dir($path)){
mkdir($path, 0777);
}
file_put_contents($path . '/' . $file, $data);
die('debug save success');
?>