Author: deryck Date: 2004-12-02 19:39:59 +0000 (Thu, 02 Dec 2004) New Revision: 448
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-web&rev=448 Log: Use auto-generated mirror list for news redirect, and use the drop-down options created from the same script. --deryck Modified: trunk/header2.html trunk/news/header2.html Changeset: Modified: trunk/header2.html =================================================================== --- trunk/header2.html 2004-12-02 17:05:36 UTC (rev 447) +++ trunk/header2.html 2004-12-02 19:39:59 UTC (rev 448) @@ -62,7 +62,7 @@ <form action="no_script_yet.cgi" name="mirrorForm"> <select name="mirrorLocation" onchange="changeMirror(this.form.mirrorLocation)"> <option selected="selected">Choose A Mirror</option> - <!--#include virtual="/samba/mirror_options.html" --> + <!--#include virtual="/samba/menu_options.html" --> </select> <noscript> <input type="submit" value="Go" /> Modified: trunk/news/header2.html =================================================================== --- trunk/news/header2.html 2004-12-02 17:05:36 UTC (rev 447) +++ trunk/news/header2.html 2004-12-02 19:39:59 UTC (rev 448) @@ -27,22 +27,8 @@ } </style> -<script type="text/javascript"> -<!-- Hide from old browsers -newsMirrors = new Array -newsMirrors[0] = "http://us1.samba.org/samba/news/" -newsMirrors[1] = "http://us3.samba.org/samba/news/" -newsMirrors[2] = "http://us4.samba.org/samba/news/" +<!--#include virtual="/samba/redirect_news.html" --> -n=Math.floor(Math.random()*3) - -if (document.location == "http://samba.org/samba/news/" || document.location == "http://www.samba.org/samba/news/") { - - document.location = newsMirrors[n] -} -// end hide --> -</script> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Language" content="en-us" /> <meta name="keywords" content="Samba SMB CIFS" />