update core

This commit is contained in:
themohooks 2025-05-25 15:05:06 +03:00
parent 9a88345057
commit 4e8ed589d3
3 changed files with 1421 additions and 43 deletions

View file

@ -22,7 +22,13 @@
"chriskonnertz/bbcode": "^1.1",
"paquettg/php-html-parser": "^2.2",
"phpmailer/phpmailer": "^6.9",
"beeyev/disposable-email-filter-php": "^1.3"
"beeyev/disposable-email-filter-php": "^1.3",
"symfony/console": "^7.2",
"ratchet/pawl": "^0.4.3",
"ratchetio/ratchetio": "^0.4.1",
"cboden/ratchet": "0.4.4",
"defuse/php-encryption": "^2.4",
"symfony/process": "^7.2"
},
"require-dev": {
"phpstan/phpstan": "*"

1445
composer.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
<?php
// Prevent worker script termination when a client connection is interrupted
require __DIR__.'/vendor/autoload.php';
session_start();
use App\Core\{Routes, Page};
use App\Services\DB;
use Symfony\Component\Yaml\Yaml;
@ -20,8 +20,15 @@ class App
Debugger::enable();
}
try {
if (NGALLERY['root']['maintenance'] === false) {
DB::connect();
DB::init([
'driver' => 'mysql',
'host' => NGALLERY['root']['db']['host'],
'database' => NGALLERY['root']['db']['name'],
'username' => NGALLERY['root']['db']['login'],
'password' => NGALLERY['root']['db']['password'],
]);
Routes::init();
} else {
Page::set('Errors/ServerDown');