</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" -->
#! /usr/bin/python
-# Create javascript for redirecting to a random mirror.
+# Create list of options for mirrors drop-down menu
import os, re
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: