13 lines
548 B
PHP
13 lines
548 B
PHP
<?php
|
|
if (PHP_SAPI !== 'cli') exit(1);
|
|
set_time_limit(0);
|
|
$_SERVER['DOCUMENT_ROOT'] = '/var/www/html';
|
|
require_once '/var/www/html/intranet_repo/projects/contentpanel/insertion/util/contentpanel_helpers.php';
|
|
require_once '/var/www/html/intranet_repo/general_files/ini/send_mail.php';
|
|
$pdo = require '/var/www/html/intranet_repo/general_files/ini/database.php';
|
|
contentpanel_queue_schema($pdo);
|
|
while (true) {
|
|
// An unhandled database error exits; Docker reconnects by restarting the worker.
|
|
if (!contentpanel_queue_once($pdo)) sleep(2);
|
|
}
|