Moving control to install wizard when config file does not exists.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 20 Oct 2009 21:45:32 +0000 (21:45 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 20 Oct 2009 21:45:32 +0000 (21:45 +0000)
index.php

index ab6764f0204a0dcb10a26091027f3c7ce6085b45..d8fd05421353ee852727eb78d1e2816083fe6cc7 100644 (file)
--- a/index.php
+++ b/index.php
@@ -10,6 +10,9 @@
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
        $path_to_root=".";
+       if (!file_exists($path_to_root.'/config.php'))
+               header("Location: ".$path_to_root."/install/index.php");
+
        $page_security = 'SA_OPEN';
        ini_set('xdebug.auto_trace',1);
        include_once("includes/session.inc");