From: Antoine Musso Date: Wed, 9 Mar 2005 15:12:19 +0000 (+0000) Subject: implement #1667, 5 second countdown before crashing database. Patch by ��var Arnfj... X-Git-Tag: 1.5.0alpha1~655 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=7b06b2383d27d7c6673f127dbfa1164c3e74e9eb;p=lhc%2Fweb%2Fwiklou.git implement #1667, 5 second countdown before crashing database. Patch by ��var Arnfj��r�� Bjarmason --- diff --git a/maintenance/update.php b/maintenance/update.php index 1bd6cb26a2..415b60fa79 100644 --- a/maintenance/update.php +++ b/maintenance/update.php @@ -15,9 +15,13 @@ $wgDatabase = Database::newFromParams( $wgDBserver, $wgDBadminuser, $wgDBadminpa print "Going to run database updates for $wgDBname\n"; print "Depending on the size of your database this may take a while!\n"; -print "Abort with control-c in the next five seconds or...\n"; -sleep(5); +print "Abort with control-c in the next five seconds to aboard.. "; +for ($i = 5; $i >= 0; --$i) { + echo $i; + sleep(1); + echo( ($i == 0) ? "\n" : chr(8) ); +} do_all_updates();