[GRASS-SVN] r29896 - grass-web/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 30 06:23:34 EST 2008


Author: neteler
Date: 2008-01-30 06:23:34 -0500 (Wed, 30 Jan 2008)
New Revision: 29896

Modified:
   grass-web/trunk/index.php
Log:
fix the fix

Modified: grass-web/trunk/index.php
===================================================================
--- grass-web/trunk/index.php	2008-01-30 10:51:24 UTC (rev 29895)
+++ grass-web/trunk/index.php	2008-01-30 11:23:34 UTC (rev 29896)
@@ -58,8 +58,7 @@
   else
      echo "<font size=\"-1\"><i>You are at a GRASS mirror site in $MYSTATE (other
                    <a href=\"mirrors.php\">mirror sites</a>)<br>";
-} else {
-  if (function_exists('fopen') && $allow_url_fopen ) {
+} elseif (function_exists('fopen') && allow_url_fopen ) {
      $MYIP = $_SERVER['SERVER_ADDR'];
      $file = fopen ("http://api.hostip.info/get_html.php?ip=$MYIP", "r");
      if (!$file) {
@@ -72,10 +71,9 @@
      echo "<font size=\"-1\"><i>You are a GRASS mirror site in $MYSTATE (other
    	                   <a href=\"mirrors.php\">mirror sites</a>)<br>";
      fclose($file);
-   } else {
-     echo "<font size=\"-1\"><i>You are at a GRASS mirror site
-                   (other <a href=\"mirrors.php\">mirror sites</a>)<br>";
-  }
+} else {
+    echo "<font size=\"-1\"><i>You are at a GRASS mirror site
+	   (other <a href=\"mirrors.php\">mirror sites</a>)<br>";
 }
 ?>
                    This site is updated daily: LASTUPDATED</i> <!-- processed by cron/sed -->



More information about the grass-commit mailing list