cvs: phpweb /include layout.inc

From: Date: Thu, 29 Mar 2001 14:56:40 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-4588@lists.php.net to get a copy of this message
cmv Thu Mar 29 06:56:40 2001 EDT Modified files: /phpweb/include layout.inc Log: fix small bug with mirror drop down listing and the "---" entry Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.27 phpweb/include/layout.inc:1.28 --- phpweb/include/layout.inc:1.27 Tue Mar 27 08:09:31 2001 +++ phpweb/include/layout.inc Thu Mar 29 06:56:40 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.27 2001/03/27 16:09:31 cmv Exp $ */ +/* $Id: layout.inc,v 1.28 2001/03/29 14:56:40 cmv Exp $ */ # spacer() @@ -303,7 +303,9 @@ <!-- function gotomirror(form) { url = form.country.options[form.country.selectedIndex].value; - window.location.href = url; + if (url != '<? echo $MYSITE; ?>') { + window.location.href = url; + } return false; } //--> @@ -322,11 +324,17 @@ endif; print_link('/mirrors.php', 'mirror sites:', false, 'class="small"'); echo " <select class=\"small\" name=\"country\" onchange=\"gotomirror(this.form)\">\n"; - echo "<option value=\"-1\">--\n"; +# echo "<option value=\"-1\">--\n"; reset($MIRRORS); while (list($url,$mirror) = each($MIRRORS)) { if ($mirror[4] == 1) { /* only list full mirrors here */ - echo "<option value=\"$url\">".$COUNTRIES[$mirror[0]]." ($mirror[1])\n"; + if ($url==$MYSITE) { + echo '<option value="' . $url . '" SELECTED>' . $COUNTRIES[$mirror[0]] . + ' (' . $mirror[1] . ") *\n"; + } else { + echo '<option value="' . $url . '">' . $COUNTRIES[$mirror[0]] . + ' (' . $mirror[1] . ")\n"; + } } } echo "</select> ";

« previous php.mirrors (#4588) next »