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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jan 30 05:51:24 EST 2008


Author: neteler
Date: 2008-01-30 05:51:24 -0500 (Wed, 30 Jan 2008)
New Revision: 29895

Modified:
   grass-web/trunk/index.php
Log:
check also allow_url_fopen

Modified: grass-web/trunk/index.php
===================================================================
--- grass-web/trunk/index.php	2008-01-30 10:03:53 UTC (rev 29894)
+++ grass-web/trunk/index.php	2008-01-30 10:51:24 UTC (rev 29895)
@@ -59,7 +59,7 @@
      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')) {
+  if (function_exists('fopen') && $allow_url_fopen ) {
      $MYIP = $_SERVER['SERVER_ADDR'];
      $file = fopen ("http://api.hostip.info/get_html.php?ip=$MYIP", "r");
      if (!$file) {



More information about the grass-commit mailing list