mirror of
https://github.com/claradex/nativegallery.git
synced 2025-06-05 05:47:00 +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",
|
"chriskonnertz/bbcode": "^1.1",
|
||||||
"paquettg/php-html-parser": "^2.2",
|
"paquettg/php-html-parser": "^2.2",
|
||||||
"phpmailer/phpmailer": "^6.9",
|
"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": {
|
"require-dev": {
|
||||||
"phpstan/phpstan": "*"
|
"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
|
<?php
|
||||||
// Prevent worker script termination when a client connection is interrupted
|
// Prevent worker script termination when a client connection is interrupted
|
||||||
require __DIR__.'/vendor/autoload.php';
|
require __DIR__.'/vendor/autoload.php';
|
||||||
|
session_start();
|
||||||
use App\Core\{Routes, Page};
|
use App\Core\{Routes, Page};
|
||||||
use App\Services\DB;
|
use App\Services\DB;
|
||||||
use Symfony\Component\Yaml\Yaml;
|
use Symfony\Component\Yaml\Yaml;
|
||||||
|
@ -20,8 +20,15 @@ class App
|
||||||
Debugger::enable();
|
Debugger::enable();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (NGALLERY['root']['maintenance'] === false) {
|
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();
|
Routes::init();
|
||||||
} else {
|
} else {
|
||||||
Page::set('Errors/ServerDown');
|
Page::set('Errors/ServerDown');
|
||||||
|
|
Loading…
Reference in a new issue