From: Zertrin <zertrin@gmail.com>
Date: Mon, 28 Apr 2014 21:01:04 +0000 (+0200)
Subject: No more needed to delete install.php, now redirect to index.php if initial install... 
X-Git-Tag: 1.1~185
X-Git-Url: https://git.p6c8.net/jirafeau.git/commitdiff_plain/0e5cca951eafa6193153f171b89a3bbf255152ef?ds=inline;hp=--cc

No more needed to delete install.php, now redirect to index.php if initial install already performed

Signed-off-by: Jerome Jutteau <mojo@couak.net>
---

0e5cca951eafa6193153f171b89a3bbf255152ef
diff --git a/install.php b/install.php
index d8e5fdf..87eaf60 100755
--- a/install.php
+++ b/install.php
@@ -134,6 +134,11 @@ if (!file_exists (JIRAFEAU_CFG))
         exit;
     }
 }
+else
+{
+    header('Location: index.php');
+    exit;
+}
 
 if (!is_writable (JIRAFEAU_CFG) && !@chmod (JIRAFEAU_CFG, '0666'))
 {
diff --git a/lib/functions.php b/lib/functions.php
index 15c7a3e..bc119a3 100755
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -515,12 +515,6 @@ function check_errors ()
 
      if (!is_writable (VAR_BLOCK))
         add_error (t('The block directory is not writable!'), VAR_BLOCK);
-
-   /* Check if the install.php script is still in the directory. */
-    if (file_exists (JIRAFEAU_ROOT . 'install.php'))
-        add_error (t('Installer script still present'),
-             t('Please make sure to delete the installer script ' .
-               '"install.php" before continuing.'));
 }
 
 /**