[or-cvs] r14711: (ticket 78) Will alert the user if the update script stops r (torstatus/trunk/web)

kasimir at seul.org kasimir at seul.org
Sun May 25 02:31:19 UTC 2008


Author: kasimir
Date: 2008-05-24 22:31:18 -0400 (Sat, 24 May 2008)
New Revision: 14711

Modified:
   torstatus/trunk/web/index.php
Log:
(ticket 78) Will alert the user if the update script stops running

Modified: torstatus/trunk/web/index.php
===================================================================
--- torstatus/trunk/web/index.php	2008-05-25 00:59:32 UTC (rev 14710)
+++ torstatus/trunk/web/index.php	2008-05-25 02:31:18 UTC (rev 14711)
@@ -2205,7 +2205,32 @@
 
 </div></div></div>
 
+<?php
 
+// Determine whether the server is updating properly
+if ((time() - strtotime($LastUpdate)) >= 18000)
+{
+	?>
+<br/>
+<div class="dropcontainer">
+<div class="dropshadow2">
+<div class="innerbox">
+
+<table class="torcheck" cellpadding="0" cellspacing="0">
+<tr><td>
+<div style="padding: 3px;">
+It appears that the tns_update script has stopped running.<br/>
+It is advisable to use another mirror until this problem is corrected.
+</div>
+</td></tr>
+</table>
+
+</div></div></div>
+	<?php
+}
+
+?>
+
 <table cellspacing="2" cellpadding="2" class="body">
 
 <tr>



More information about the tor-commits mailing list