| Server IP : 35.236.43.222 / Your IP : 216.73.216.143 Web Server : Apache System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64 User : deploy ( 1002) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/ravel.network/public/wp-content/plugins/independent-analytics/IAWP/AJAX/ |
Upload File : |
<?php
namespace IAWP\AJAX;
use IAWP\Report_Finder;
use IAWP\Report_Options_Parser;
/** @internal */
class Import_Reports extends \IAWP\AJAX\AJAX
{
/**
* @inheritDoc
*/
protected function action_required_fields() : array
{
return ['json'];
}
/**
* @inheritDoc
*/
protected function action_name() : string
{
return 'iawp_import_reports';
}
/**
* @inheritDoc
*/
protected function action_callback() : void
{
$report_archive = \json_decode(\stripslashes($_POST['json']), \true);
foreach ($report_archive['reports'] as $report) {
$report_options = new Report_Options_Parser($report);
Report_Finder::new()->insert_report($report_options->get_options_for_creating());
}
\wp_send_json_success([]);
}
}