. * */ namespace Vvveb\Controller; use function Vvveb\url; #[\AllowDynamicProperties] class Cron { function _construct() { } function index() { if (defined('CLI')) { } else { $key = $this->request->get['key']; $cronkey = \Vvveb\getConfig('app.cronkey'); if ($key != $cronkey) { die('Invalid key!'); } } echo 'Run cron'; ignore_user_abort(true); if (function_exists('fastcgi_finish_request')) { fastcgi_finish_request(); } elseif (function_exists('litespeed_finish_request')) { litespeed_finish_request(); } if (! empty($this->request->post) || defined('CLI')) { die(0); } die(0); } function call() { $cronkey = \Vvveb\getConfig('app.cronkey'); echo $url = url('cron/index', ['key' => $cronkey]); $options = [ 'timeout' => 0.01, 'blocking' => false, 'sslverify' => false, ]; } }