[GRASS-SVN] r44090 - grass-web/trunk
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 30 05:29:30 EDT 2010
Author: neteler
Date: 2010-10-30 02:29:30 -0700 (Sat, 30 Oct 2010)
New Revision: 44090
Modified:
grass-web/trunk/index.php
Log:
fix once more official site detection
Modified: grass-web/trunk/index.php
===================================================================
--- grass-web/trunk/index.php 2010-10-30 09:25:44 UTC (rev 44089)
+++ grass-web/trunk/index.php 2010-10-30 09:29:30 UTC (rev 44090)
@@ -74,8 +74,12 @@
$line = fgets ($file, 34);
$MYSTATETMP = explode(":", $line);
$MYSTATE = $MYSTATETMP[1];
- echo "<font size=\"-1\"><i>You are at a GRASS mirror site in $MYSTATE (other
- <a href=\"mirrors.php\">mirror sites</a>)<br>";
+ if ($MYIP == "140.211.15.75") {
+ echo "<font size=\"-1\"><i>You are at the official GRASS site in $MYSTATE
+ (<a href=\"mirrors.php\">mirror sites</a>)<br>";
+ } else {
+ echo "<font size=\"-1\"><i>You are at a GRASS mirror site in $MYSTATE (other <a href=\"mirrors.php\">mirror sites</a>)<br>";
+ }
fclose($file);
}
} else {
More information about the grass-commit
mailing list