diff --git a/dRec.php b/dRec.php index d8fa9a6..2f3ef1e 100644 --- a/dRec.php +++ b/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);