From 84382f0c5abe55c89bd4a3bf88e2d789809f4333 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Tue, 30 Oct 2007 10:39:26 +0000 Subject: [PATCH] added setup check --- index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index ccd6728..5b47639 100644 --- a/index.php +++ b/index.php @@ -6,6 +6,12 @@ define('MOD_INDEX', 1); + + if (!file_exists(CONFIG_FILE)) + utils_redirect('setup.php'); + + + /* local function defines follow */ function index_permatitle($val, $sep) { @@ -121,7 +127,6 @@ function index_main() { global $fpdb, $smarty, $fp_config; - $params = array(); $module = 'index.tpl' ;