if (!$config['exists'])
{
if ($config['legacyExists'])
{
echo 'The site is currently being upgraded. Please try again later.';
exit;
}
else if (\XF\Util\File::installLockExists())
{
echo "Couldn't load src/config.php file.";
exit;
}
else
{
header('Location: install/index.php');
exit;
}
}