From 4c288e957ec4340af93f980c65eecea6d3a789f4 Mon Sep 17 00:00:00 2001 From: msquare Date: Thu, 29 Sep 2016 11:28:42 +0200 Subject: prohibit inline control structures on includes and index --- includes/engelsystem_provider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/engelsystem_provider.php') diff --git a/includes/engelsystem_provider.php b/includes/engelsystem_provider.php index d0f1cbff..84a73275 100644 --- a/includes/engelsystem_provider.php +++ b/includes/engelsystem_provider.php @@ -54,8 +54,9 @@ require_once realpath(__DIR__ . '/../includes/mailer/shifts_mailer.php'); require_once realpath(__DIR__ . '/../includes/mailer/users_mailer.php'); require_once realpath(__DIR__ . '/../config/config.default.php'); -if (file_exists(realpath(__DIR__ . '/../config/config.php'))) +if (file_exists(realpath(__DIR__ . '/../config/config.php'))) { require_once realpath(__DIR__ . '/../config/config.php'); +} if ($maintenance_mode) { echo file_get_contents(__DIR__ . '/../public/maintenance.html'); -- cgit v1.2.3-70-g09d2