Server IP : 184.154.167.98 / Your IP : 18.223.43.151 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/mesa/include/ |
Upload File : |
<?php require_once INCLUDE_DIR . 'class.export.php'; class ExportAjaxAPI extends AjaxController { function check($id) { global $thisstaff; if (!$thisstaff) Http::response(403, 'Agent login is required'); elseif (!($exporter=Exporter::load($id)) || !$exporter->isAvailable()) Http::response(404, 'No such export'); if ($_SERVER['REQUEST_METHOD'] === 'POST') { if ($exporter->isReady()) Http::response(201, $this->json_encode([ 'status' => 'ready', 'href' => sprintf('export.php?id=%s', $exporter->getId()), 'filename' => $exporter->getFilename()])); else // Export is not ready... checkback in a few Http::response(200, $this->json_encode([ 'status' => 'notready'])); } include STAFFINC_DIR . 'templates/export.tmpl.php'; } }