svn commit: samba-web r740 - in trunk: .

deryck at samba.org deryck at samba.org
Thu Jul 7 20:16:22 GMT 2005


Author: deryck
Date: 2005-07-07 20:16:22 +0000 (Thu, 07 Jul 2005)
New Revision: 740

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=740

Log:
If the mirror redirect script fails to write a list of
US mirrors, fall back to us1 for redirect.

deryck

Modified:
   trunk/redirect_us.html


Changeset:
Modified: trunk/redirect_us.html
===================================================================
--- trunk/redirect_us.html	2005-07-07 19:34:09 UTC (rev 739)
+++ trunk/redirect_us.html	2005-07-07 20:16:22 UTC (rev 740)
@@ -11,10 +11,23 @@
 
 <!--#include virtual="/samba/redirect_include.html" -->
 
+<script type="text/javascript">
+<!-- Hide from old browsers
+function loadUSMirror()
+{
+        if (randomMirror.length > 0) { 
+                window.location = randomMirror[n];
+        } else {
+                window.location = "http://us1.samba.org/samba/";
+        }
+}
+// end hide -->
+</script>
+
 </head>
 
 
-<body onload="javascript:window.location=randomMirror[n]">
+<body onload="loadUSMirror()">
 <noscript>
 <h2>Samba -- Opening Windows to a Wider World</h2>
 <h3>Please choose a mirror</h3>



More information about the samba-cvs mailing list