Publier Globinours 1.0.0-rc.3

This commit is contained in:
Alexandre NOEL 2026-09-03 12:39:15 +02:00
commit 9a2b4068da
325 changed files with 38230 additions and 20 deletions

View file

@ -0,0 +1,20 @@
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') {
http_response_code(404);
exit();
}
$root = dirname(__DIR__);
require $root . '/app/Services/DB.php';
require $root . '/app/Services/Migrations.php';
require $root . '/app/Services/I18n.php';
require $root . '/app/Services/AppSettings.php';
require $root . '/app/Services/Auth.php';
require $root . '/app/Services/BackupService.php';
require $root . '/app/Services/NotificationService.php';
Migrations::run($root . '/migrations');
I18n::setLocale(AppSettings::get('app_language'));
$result = NotificationService::send(false);
echo json_encode($result, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) . PHP_EOL;
exit(($result['sent'] ?? false) || in_array($result['reason'] ?? '', ['disabled', 'not_due'], true) ? 0 : 1);