update core files

This commit is contained in:
themohooks 2025-02-16 04:36:38 +03:00
parent be85a9531a
commit 52dbf10d3d
3 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View file

@ -6,7 +6,6 @@
/ngallery.yaml /ngallery.yaml
ngallery.yaml ngallery.yaml
/cdn/ /cdn/
*.yaml
ngallery.yaml ngallery.yaml
/views/pages/t.php /views/pages/t.php
views/pages/t.php views/pages/t.php
@ -14,3 +13,5 @@ rules.txt
rules.txt rules.txt
/uploads/* /uploads/*
t.php t.php
logs
.txt

View file

@ -15,6 +15,7 @@ class App
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/ngallery.yaml')) { if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/ngallery.yaml')) {
define("NGALLERY", Yaml::parse(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/ngallery.yaml'))['ngallery']); define("NGALLERY", Yaml::parse(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/ngallery.yaml'))['ngallery']);
define("NGALLERY_TASKS", Yaml::parse(file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/app/Controllers/Exec/Tasks/ngallery-tasks.yaml'))['tasks']);
if (NGALLERY['root']['debug'] === true) { if (NGALLERY['root']['debug'] === true) {
Debugger::enable(); Debugger::enable();
} }

View file

@ -70,3 +70,4 @@ ngallery:
premoderation: false premoderation: false
contests: contests:
enabled: true enabled: true
autonew: true