added setup check

This commit is contained in:
real_nowhereman 2007-10-30 10:39:26 +00:00
parent a68630bf35
commit 84382f0c5a

View File

@ -6,6 +6,12 @@
define('MOD_INDEX', 1); define('MOD_INDEX', 1);
if (!file_exists(CONFIG_FILE))
utils_redirect('setup.php');
/* local function defines follow */ /* local function defines follow */
function index_permatitle($val, $sep) { function index_permatitle($val, $sep) {
@ -121,7 +127,6 @@
function index_main() { function index_main() {
global $fpdb, $smarty, $fp_config; global $fpdb, $smarty, $fp_config;
$params = array(); $params = array();
$module = 'index.tpl' ; $module = 'index.tpl' ;