| Server IP : 172.67.134.116 / Your IP : 216.73.217.54 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nobi37te/public_html/wp-content/plugins/security-malware-firewall/inc/ |
Upload File : |
<?php
// Prevent direct call
if ( ! defined('ABSPATH') ) {
die('Not allowed!');
}
/**
* Cron wrapper function for launchBackground
*
* @return bool|string|string[]|void
*/
function spbc_scanner__launch()
{
$result = \CleantalkSP\SpbctWP\Scanner\ScannerQueue::launchBackground();
if (\CleantalkSP\SpbctWP\RemoteCalls::check()) {
$result = empty($result['error'])
? 'OK'
: 'FAIL ' . die(json_encode($result));
}
return $result;
}
/**
* Cron wrapper function for controllerBackground
*
* @param null $transaction_id
* @param null $stage
* @param null $offset
* @param null $amount
*
* @return bool|string|string[]
*/
function spbc_scanner__controller($transaction_id = null, $stage = null, $offset = null, $amount = null)
{
//cron task provide a single parameter
if (isset($transaction_id) && is_array($transaction_id)) {
$stage = isset($transaction_id['stage']) ? $transaction_id['stage'] : null;
$offset = isset($transaction_id['offset']) ? $transaction_id['offset'] : null;
$amount = isset($transaction_id['amount']) ? $transaction_id['amount'] : null;
$transaction_id = isset($transaction_id['transaction_id']) ? $transaction_id['transaction_id'] : null;
}
$result = \CleantalkSP\SpbctWP\Scanner\ScannerQueue::controllerBackground($transaction_id, $stage, $offset, $amount);
if (\CleantalkSP\SpbctWP\RemoteCalls::check()) {
$result = empty($result['error'])
? 'OK'
: 'FAIL ' . die(json_encode($result));
}
return $result;
}