This commit is contained in:
Kenio 2025-09-08 12:51:02 -03:00
parent 36d58d57aa
commit 2e18e96081

View file

@ -25,9 +25,6 @@ try {
$LogValidate = new LogValidate();
$StationFolder = new StationFolder();
print_r($_POST);
/** Parametros de entrada */
$key = isset($_POST['key']) ? (string)filter_input(INPUT_POST, 'key', FILTER_SANITIZE_SPECIAL_CHARS) : '';
$file = isset($_POST['file']) ? (string)filter_input(INPUT_POST, 'file', FILTER_SANITIZE_SPECIAL_CHARS) : '';
@ -44,6 +41,9 @@ try {
$LogValidate->setKey($key);
$LogValidate->setFile($file);
echo json_decode($LogValidate->getFile());
/** Verifica se não existem erros a serem informados,
* caso não haja erro(s) salvo os dados ou
* efetua o cadastro de um novo*/