public static function importProducts() { $result = lC_Products_import_export_Admin::importProducts($_GET['pfilename'], $_GET['pwizard'], $_GET['ptype'], $_GET['pbackup']); if (isset($result['total']) && $result['total'] != null) { $result['rpcStatus'] = RPC_STATUS_SUCCESS; } else { } echo json_encode($result); }