<?php

if (\PHP_SAPI != 'cli') {
    exit;
}
\error_reporting(\E_ALL);
include __DIR__ . '/common.php';
use Ministra\Lib\w13ec15f0067ea75861e61e27c990e4ba\b0144dbc621686d5838378f3b96bd17b;
use Ministra\Lib\w13ec15f0067ea75861e61e27c990e4ba\d3507c2999d38573a0a0c91771d70af2;
use Ministra\Lib\SysEvent;
$uid_arr = \Ministra\Lib\w13ec15f0067ea75861e61e27c990e4ba\d3507c2999d38573a0a0c91771d70af2::getInstance()->from('vclub_paused')->where(['UNIX_TIMESTAMP(pause_time)<' => \time() - 86400])->get()->all('uid');
if (\count($uid_arr) > 0) {
    \Ministra\Lib\w13ec15f0067ea75861e61e27c990e4ba\d3507c2999d38573a0a0c91771d70af2::getInstance()->query('delete from vclub_paused where uid in (' . \implode(', ', $uid_arr) . ')');
    $event = new \Ministra\Lib\SysEvent();
    $event->setUserListById($uid_arr);
    $event->sendResetPaused();
}
if (\count($argv) == 1) {
    \sleep(\rand(0, 600));
}
\Ministra\Lib\w13ec15f0067ea75861e61e27c990e4ba\b0144dbc621686d5838378f3b96bd17b::D25bea0b3e93694ed54064269b1175848();
