[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



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>