From 52dbf10d3d256ed6b0d511e8f0b1a14f0cd0c230 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Sun, 16 Feb 2025 04:36:38 +0300 Subject: [PATCH] update core files --- .gitignore | 5 +++-- index.php | 1 + ngallery-example.yaml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b133568..9426cb9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,11 +6,12 @@ /ngallery.yaml ngallery.yaml /cdn/ -*.yaml ngallery.yaml /views/pages/t.php views/pages/t.php rules.txt rules.txt /uploads/* -t.php \ No newline at end of file +t.php +logs +.txt \ No newline at end of file diff --git a/index.php b/index.php index a9a57c9..fccece2 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,7 @@ class App if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/ngallery.yaml')) { 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) { Debugger::enable(); } diff --git a/ngallery-example.yaml b/ngallery-example.yaml index f728c2e..89bcbeb 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -70,3 +70,4 @@ ngallery: premoderation: false contests: enabled: true + autonew: true