From ad7c4c59d1651dc798ce208d4cfa3cdd0d969a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=CC=81tsen=20Stellingwerff?= Date: Tue, 9 May 2017 14:37:18 +0200 Subject: [PATCH] Fixed issue #1 --- public/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/index.php b/public/index.php index f827be3..2d581b5 100644 --- a/public/index.php +++ b/public/index.php @@ -8,10 +8,10 @@ */ // Make sure to add the missing details to the config.php file. -require '../config.php'; // Note: change this path if your Lagan project is in a subdirectory +require __DIR__.'/../config.php'; // Note: change this path if your Lagan project is in a subdirectory // Include the configuration for RedBean and autoloaders. -require '../setup.php'; // Note: change this path if your Lagan project is in a subdirectory +require __DIR__.'/../setup.php'; // Note: change this path if your Lagan project is in a subdirectory // Error reporting if (ERROR_REPORTING) { @@ -61,7 +61,7 @@ // Add HTTP Basic Authentication middleware $app->add(new \Slim\Middleware\HttpBasicAuthentication([ - 'path' => ['/admin'], + 'path' => $protected, // Defined in config.php 'secure' => true, 'relaxed' => ['localhost'], 'users' => $users // Defined in config.php