Files
PVM/public_html/gest-lib/file_exchange_panel/include/ajax.php
ClaudioR 2fb6a9ed24 [Preventivi]
- Fix upload allegati
2024-02-14 17:11:26 +01:00

14 lines
537 B
PHP

<?php
if (isset($_GET["get_listDepo"])) {
$data = Utility::sanitizeB64JSON_parse($_GET["get_listDepo"]);
FileExchangePanel::get_listDepo($data)->display();
} else if (isset($_POST["transmit"])) {
$data = Utility::sanitizeB64JSON_parse($_POST["transmit"]);
$files = array_values($_FILES);
$file = $files[0];
FileExchangePanel::transmit($data, $file)->display();
} else if (isset($_GET["get_log"])) {
$data = Utility::sanitizeB64JSON_parse($_GET["get_log"]);
FileExchangePanel::get_log($data)->display();
}