From 11c1d52551919a7c83891d3adfe49541493ad61b Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 7 Jul 2003 18:46:36 +0000 Subject: [PATCH] Added some flush --- backup/restore_execute.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backup/restore_execute.html b/backup/restore_execute.html index 860134ef0b876..0af87a5e6ebba 100644 --- a/backup/restore_execute.html +++ b/backup/restore_execute.html @@ -107,6 +107,7 @@ $coursecreator_count = 0; $admin_count = 0; $other_count = 0; + $counter = 0; //Iterate, filling counters foreach ($recs as $rec) { //Get full record, using backup_getids @@ -128,6 +129,15 @@ } else if ($record->info == "new" or $record->info == "exists") { $other_count++; } + //Do some output + $counter++; + if ($counter % 10 == 0) { + echo "."; + if ($counter % 200 == 0) { + echo "
"; + } + backup_flush(300); + } } //Now print information gathered echo " (new: ".$new_count.", existing: ".$exists_count.")"; @@ -233,4 +243,8 @@ error ("An error has ocurred"); } + //Print final message + print_simple_box(get_string("restorefinished"),"CENTER"); + print_continue($moodle_home."/course/view.php?id=".$restore->course_id); + ?>