Present all output+errors at the end

This commit is contained in:
f0o
2015-09-02 00:13:14 +01:00
parent 574e4c5290
commit 501cf5a6ef
3 changed files with 11 additions and 5 deletions

View File

@@ -91,6 +91,7 @@ if ($tmp[0] <= $db_rev) {
return;
}
$limit = @$limit?: $_REQUEST['offset'];
foreach ($filelist as $file) {
list($filename,$extension) = explode('.', $file, 2);
if ($filename > $db_rev) {
@@ -99,7 +100,7 @@ foreach ($filelist as $file) {
$limit++;
if ( abs($limit-$_REQUEST['offset']) > 6) {
$_SESSION['offset'] = $limit;
echo '<b>Updating, please wait..</b><sub>'.date('r').'</sub><script>window.location.href = "install.php?offset='.$limit.'";</script>';
$GLOBALS['refresh'] = '<b>Updating, please wait..</b><sub>'.date('r').'</sub><script>window.location.href = "install.php?offset='.$limit.'";</script>';
return;
}
}