From 784ff97570a2d5dbeb2eeaa6f928ce66e7702d95 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Tue, 18 Apr 2023 10:34:08 +0200
Subject: [PATCH] update starting page

---
 public_html/index.php | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/public_html/index.php b/public_html/index.php
index 86b08957..76f0bf12 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -1,8 +1,27 @@
 <?php
+/*
+ * IML CISERVER :: install check
+ * 
+ */
+$sApproot=dirname(__DIR__);
+if (file_exists($sApproot.'/config/config_custom.php_') && file_exists($sApproot.'/config/inc_user2roles.php')){
     header("location: /deployment/all/login/");
+}
+
+echo '
+        <h1>Welcome to the IML CISERVER!</h1>
+        <p>
+            It seems you just extracted the sources and try to run the web interface.<br>
+            Go to app root <code>'.$sApproot.'/config/</code> and create there 2 files from
+            *.dist.<br>
+            Then verify <a href="check-config.php">check-config.php</a>.
+        </p>
+    '
+;
+
+ 
     // echo '<h1>' . php_uname("n") . '</h1><hr>';
 ?>
 
 <a href="http://www.iml.unibe.ch/">IML Startseite</a> |
-<a href="/deployment/">Deployment</a> | 
-<a href="http://gitlab.iml.unibe.ch/">Gitlab</a> | 
+<a href="https://git-repo.iml.unibe.ch/iml-open-source/imldeployment/">Gitlab</a> | 
-- 
GitLab