[GRASSweb-list] markus: web main.inc,1.82,1.83

grass at intevation.de grass at intevation.de
Thu Nov 9 14:04:31 EST 2006


Author: markus

Update of /grassrepository/web
In directory doto:/tmp/cvs-serv16543

Modified Files:
	main.inc 
Log Message:
more PHP3 paranoia

Index: main.inc
===================================================================
RCS file: /grassrepository/web/main.inc,v
retrieving revision 1.82
retrieving revision 1.83
diff -u -d -r1.82 -r1.83
--- main.inc	8 Nov 2006 17:00:29 -0000	1.82
+++ main.inc	9 Nov 2006 19:04:29 -0000	1.83
@@ -49,7 +49,9 @@
 </SCRIPT>
 
    <!-- MAIN: NEWS SECTION -->
-   <?php
+ <?php
+
+  if (function_exists('version_compare')) { // some PHP3 madness
    if (version_compare(phpversion(), "4.0.2" , ">=")) {
      include("rss.php");
      $r1 =& new XML_RSS('rss.xml');
@@ -92,8 +94,8 @@
       <h4>Upcoming GRASS/FOSS4G related events:\n
       <a href=\"http://grass.itc.it/rss_events.xml\"><img src=\"rss-icon.gif\" alt=\"RSS Events Feed\" border=0></a></h4>\n
       </center>\n";
-
-   }
+    }
+   } // we don't care for PHP3
    ?>
    </ul>
 





More information about the grass-web mailing list