Add some browser output when restoring a lot of users

This commit is contained in:
stronk7
2008-02-03 00:46:32 +00:00
parent 8f92c1f78b
commit 9ddb243f13
+14 -1
View File
@@ -2184,6 +2184,8 @@
$languages = get_list_of_languages();
/// Iterate over all users loaded from xml
$counter = 0;
foreach ($info->users as $userid) {
$rec = backup_getid($restore->backup_unique_code,"user",$userid);
$user = $rec->info;
@@ -2463,7 +2465,18 @@
}
}
}
}
//Do some output
$counter++;
if ($counter % 10 == 0) {
if (!defined('RESTORE_SILENTLY')) {
echo ".";
if ($counter % 200 == 0) {
echo "<br />";
}
}
backup_flush(300);
}
} /// End of loop over all the users loaded from xml
}
return $status;