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