X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fworker.php;h=5698cf16ddfaca79eb69b0e1aa04d3efa515435c;hb=b8314f0c301987b56dea540430b8268b862013c5;hp=1b70a2095544a2d26b15160b230ddb9f733c4f21;hpb=8293d5ed0af78ae6cc5629bb1f982a7b29794d32;p=friendica.git diff --git a/bin/worker.php b/bin/worker.php index 1b70a20955..5698cf16dd 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -21,8 +21,14 @@ * Starts the background processing */ +if (php_sapi_name() !== 'cli') { + header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); + exit(); +} + use Dice\Dice; use Friendica\App; +use Friendica\Core\Process; use Friendica\Core\Update; use Friendica\Core\Worker; use Friendica\DI; @@ -76,4 +82,4 @@ Worker::processQueue($run_cron); Worker::unclaimProcess(); -Worker::endProcess(); +DI::process()->end();