mirror of
https://github.com/claradex/nativegallery.git
synced 2025-06-03 13:03:54 +03:00
update core
This commit is contained in:
parent
9a88345057
commit
4e8ed589d3
3 changed files with 1421 additions and 43 deletions
|
@ -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
1445
composer.lock
generated
File diff suppressed because it is too large
Load diff
11
index.php
11
index.php
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue