svn commit: samba-web r452 - in trunk: . scripts

deryck at samba.org deryck at samba.org
Mon Dec 6 21:22:54 GMT 2004


Author: deryck
Date: 2004-12-06 21:22:53 +0000 (Mon, 06 Dec 2004)
New Revision: 452

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

Log:

Updating script and info on samba.org since samba.org
is automatically sent to us1.samba.org now.  Also,
remove the reirect page since it's no longer in use.

--deryck

Modified:
   trunk/index.html
   trunk/scripts/js_redirect.py


Changeset:
Modified: trunk/index.html
===================================================================
--- trunk/index.html	2004-12-06 20:54:23 UTC (rev 451)
+++ trunk/index.html	2004-12-06 21:22:53 UTC (rev 452)
@@ -59,11 +59,11 @@
     </div>
   
     <div class="request">
-      <p>Visitors to http://samba.org/ are automatically redirected to one
-      of our mirrors.  If you'd like to change to a mirror closer to your 
-      location, you may choose a <span class="punch">mirror site</span> 
-      from the drop-down menu above. The popularity of Samba puts a strain on 
-      our network. By using a mirror site you can do your bit to reduce the load.</p>
+      <p>http://samba.org/ is automatically redirected to one of our US 
+      mirrors.  To change to a mirror closer to your location, choose a 
+      <span class="punch">mirror site</span> from the drop-down menu above.  
+      The popularity of Samba puts a strain on our network.  By using a 
+      mirror site you can do your bit to reduce the load.</p>
     </div>
 
 <!--#include virtual="/samba/footer.html" -->

Modified: trunk/scripts/js_redirect.py
===================================================================
--- trunk/scripts/js_redirect.py	2004-12-06 20:54:23 UTC (rev 451)
+++ trunk/scripts/js_redirect.py	2004-12-06 21:22:53 UTC (rev 452)
@@ -1,6 +1,6 @@
 #! /usr/bin/python
 
-# Create javascript for redirecting to a random mirror.
+# Create list of options for mirrors drop-down menu 
 
 import os, re
 
@@ -17,19 +17,6 @@
 mlist = mirrors.keys()
 mlist.sort()
 
-# For main samba.org redirect
-js = open('redirect_include.html', 'w')
-js.write('<script language="Javascript" type="text/javascript">\n')
-js.write('<!-- Hide from old browsers\n')
-js.write('randomMirror = new Array;\n')
-for i in range(len(mlist)):
-    js.write('randomMirror[' + str(i) + '] = ' + mlist[i] + '"\n')
-js.write('\n')
-js.write('n = Math.floor(Math.random()*' + str(len(mirrors.keys())) + ')\n')
-js.write('// end hide -->\n')
-js.write('</script>')
-js.close() 
-
 # For drop-down mirror selection list
 menu = open('menu_options.html', 'w')
 for m in mlist:



More information about the samba-cvs mailing list