[GRASS-SVN] r40866 - grass-web/trunk/download
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Feb 8 09:25:46 EST 2010
Author: neteler
Date: 2010-02-08 09:25:46 -0500 (Mon, 08 Feb 2010)
New Revision: 40866
Modified:
grass-web/trunk/download/software.inc
Log:
auto-detect OS for download
Modified: grass-web/trunk/download/software.inc
===================================================================
--- grass-web/trunk/download/software.inc 2010-02-08 14:25:30 UTC (rev 40865)
+++ grass-web/trunk/download/software.inc 2010-02-08 14:25:46 UTC (rev 40866)
@@ -7,14 +7,45 @@
<A HREF="#citing">Citing GRASS</A>
]
+<p>
+<p>
+<center>
+<table bgcolor="#FFCC99" border=1 CELLPADDING=5>
+<tr>
+<td style="vertical-align: top;">
+<big>
+<?php
+ $userAgent = strtolower($_SERVER['HTTP_USER_AGENT']);
+ if (strpos($userAgent, 'linux')) {
+ $platform = 'linux';
+ echo "<img src=\"../images/logo_lin.png\" alt=\"GNU/Linux\"> Download latest GRASS 6.4 snapshot for <a href=\"../grass64/binary/linux/snapshot/\">GNU/Linux</a>!";
+ }
+ else if (strpos($userAgent, 'macintosh') || strpos($userAgent, 'mac platform x')) {
+ $platform = 'mac';
+ echo "<img src=\"../images/logo_mac.png\" alt=\"MacOSX\"> Download GRASS 6.4 for <a href=\"../grass64/binary/macosx/\">MacOSX</a>!";
+ }
+ else if (strpos($userAgent, 'windows') || strpos($userAgent, 'win32')) {
+ $platform = 'windows';
+ echo "<img src=\"../images/logo_win.png\" alt=\"MS-Windows\"> Download GRASS 6.4 for <a href=\"../grass64/binary/mswindows/native\">MS-Windows</a>!";
+ }
+?>
+</big>
+</td>
+</tr>
+</table>
+</center>
+
+
<hr>
-<h3>Software</h3>
+
+Download <a href="data.php">Sample data (Spearfish, North Carolina data sets etc.)</a> to try out this software easily.
+
+<hr>
+<h3>Detailed Software Download</h3>
<a name="software"></a>
• Download "<b>Binaries</b>": if you want to install ready-to-use GRASS.<br>
• Download "<b>Source Code</b>": if you want to develop your own GRASS
extensions or run GRASS on a special computer platform.<br>
-• Download <a href="data.php">Sample data (Spearfish etc.)</a>
- to try out this software easily.<br>
• <b>First time users should explore the
<a href="http://grass.bologna.enea.it/tutorial/">first steps tutorial</a>
after installing</b>.<br> <!-- by Lorenzo Moretti -->
More information about the grass-commit
mailing list