这里我将之前的
// Only run installation if not already installed
if (strpos($page, 'upgrade-') === false && !file_exists(BASE . 'install/not_configured')) {
header('Location: ../index.php');
exit();
}
改成
// Only run installation if not already installed
if (strpos($page, 'upgrade-') === false && file_exists(BASE . 'install/not_configured')) {
header('Location: ../index.php');
exit();
}
即可,免被
header('Location: ../index.php');
成功进入welcome的安装界面。
另外这里一直过不去,索性注释掉,直接echoSuccess();通过了。
/*
// version tracking
@$db->delete('version', 1); // clear table of old accumulated entries
$vo = expVersion::swVersion();
$vo->created_at = time();
file_put_contents("vo.txt", $vo);
if (!@$db->insertObject($vo, 'version')) {
echoFailure(gt("Trying to Add Version to DB") . " (" . $db->error() . ")");
} else {
echoSuccess();
}
*/
echoSuccess();