From ee08edf6bcc530c9d0822cd4b17255ce2c14b872 Mon Sep 17 00:00:00 2001 From: jeroen Date: Sun, 21 Aug 2022 12:19:11 +0200 Subject: [PATCH] Rework the logic of index.php --- index.php | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/index.php b/index.php index b60c494..39311a2 100644 --- a/index.php +++ b/index.php @@ -17,27 +17,11 @@ // // -none- // -if (!file_exists(realpath("./setup.php"))) { +if (file_exists(realpath("./config.inc.php"))) { header ("Location: login.php"); - exit; + die(); } else { - print <<< EOF - - -Welcome to OpenSMTPD Admin - - - - -

Welcome to OpenSMTPD Admin

-It seems that you are running this version of OpenSMTPD Admin for the first time.
-

-You can now run setup to make sure that all the functions are available for OpenSMTPD Admin to run.
-

-If you still encounter any problems please check the documentation and website for more information. -

- - -EOF; + header ("Location: setup.php"); + die(); } ?>