go back and create config file as described."; exit(); } include($rd.'/config.inc.php'); if (count($config) < 10) { print "File amember/config.inc.php is exist, but something went wrong. Database configuration was empty or cannot be read. Please remove amember/config.inc.php and repeat installation."; exit(); } //all ok - redirect $url = "$config[root_url]/setup.php?step=5"; @header("Location: $url"); html_redirect($url, 0, 'Installation successfull', 'Installation finished successfully'); exit(); } #### regular config check if (!file_exists($rd.'/config.inc.php')){ print "aMember is not configured yet. Go to configuration page"; exit(); } include($rd.'/config.inc.php'); ############################################################################### ## ## M A I N ## ############################################################################### $t = & new_smarty(); $error = ''; $vars = & get_input_vars(); $t->display("index.html"); ?>