Обновить dRec.php
All checks were successful
Jobs Folder/Gitea Instance/pipeline/head This commit looks good
All checks were successful
Jobs Folder/Gitea Instance/pipeline/head This commit looks good
This commit is contained in:
parent
7777913519
commit
19195f1283
8
dRec.php
8
dRec.php
@ -9,13 +9,13 @@ try {
|
||||
if (json_last_error() != JSON_ERROR_NONE) $data = file_get_contents("php://input");
|
||||
|
||||
if (isset($data->saveMark)) {
|
||||
if ($data->type == "videos") { $savePath = "./vlist"; }
|
||||
if ($data->type == "games") { $savePath = "./glist"; }
|
||||
if ($data->type == "curgame") { $savePath = "./curgame"; }
|
||||
if ($data->type == "videos") { $savePath = "./vlist.ejd"; }
|
||||
if ($data->type == "games") { $savePath = "./glist.ejd"; }
|
||||
if ($data->type == "curgame") { $savePath = "./curgame.ejd"; }
|
||||
|
||||
if ($savePath != "") {
|
||||
file_put_contents($savePath, $data->data);
|
||||
file_put_contents($savePath . "-sm", json_encode($data->saveMark));
|
||||
file_put_contents($savePath . ".sm", json_encode($data->saveMark));
|
||||
}
|
||||
} else {
|
||||
if ((strlen($data) > 10) && (strlen($data) < 500000)) file_put_contents("./data", $data);
|
||||
|
Loading…
Reference in New Issue
Block a user