<?php
if (BackupGuard\Security\Helper::isAjax() && count($_POST)) {
while (true) {
$created = BackupGuard\Security\Config::get('BGS_RUNNING_ACTION', true);
if ($created) {
die(json_encode(array(
'success' => 1
)));
}
}
die(json_encode(array(
'error' => 1
)));
}