go back and create config file as described.");
exit();
}
$config = include(APPLICATION_CONFIG);
if (empty($config['db']['mysql']['user'])) {
print "File amember/config.php is exist, but something went wrong. Database configuration was empty or cannot be read. Please remove amember/config.php and repeat installation.";
exit();
}
//all ok - redirect
$url = "setup/?step=5";
@header("Location: $url");
exit();
}
#### regular config check
if (!file_exists(APPLICATION_CONFIG))
{
/// try to determine baseurl here
$setupUrl = htmlentities(str_replace('index.php', 'setup/', $_SERVER['PHP_SELF']), ENT_COMPAT, 'UTF-8');
/// be careful with replacing this message, it is used for test in /setup/index.php
$msg = "aMember is not configured yet. Go to configuration page";
print <<
aMember PRO
$msg
CUT;
exit();
}
require_once dirname(__FILE__) . '/bootstrap.php';
$_amApp->run();