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

grass at intevation.de grass at intevation.de
Wed Nov 8 12:00:31 EST 2006


Author: markus

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

Modified Files:
	main.inc 
Log Message:
RSS feed also for events; workaround PHP3 on mirrors

Index: main.inc
===================================================================
RCS file: /grassrepository/web/main.inc,v
retrieving revision 1.81
retrieving revision 1.82
diff -u -d -r1.81 -r1.82
--- main.inc	8 Nov 2006 16:25:39 -0000	1.81
+++ main.inc	8 Nov 2006 17:00:29 -0000	1.82
@@ -49,52 +49,55 @@
 </SCRIPT>
 
    <!-- MAIN: NEWS SECTION -->
-   <center>
-   <h4>Latest News!
-   <a href="http://grass.itc.it/rss.xml"><img src="rss-icon.gif" alt="RSS Feed" border=0></a></h4>
-    </center>
-
-   <ul>
    <?php
    if (version_compare(phpversion(), "4.0.2" , ">=")) {
      include("rss.php");
      $r1 =& new XML_RSS('rss.xml');
+     $r2 =& new XML_RSS('rss_events.xml');
+
+     echo "<center>\n
+      <h4>Latest News!\n
+      <a href=\"http://grass.itc.it/rss.xml\"><img src=\"rss-icon.gif\" alt=\"RSS Feed\" border=0></a></h4>\n
+      </center>\n
+     <ul>\n";
+
      $r1->parse();
      foreach ($r1->getItems() as $value) {
        $format = '%d %b %Y';
        echo "<li>".strftime($format,strtotime($value['pubdate'])).": <a href=\"".$value['link']."\"><strong>
 ".$value["title"]."</strong></a> - ".$value["description"]."</li>\n";
      }
+
+   echo "</ul>\n
+    <center>\n
+    <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
+    <ul>\n";
+
+     $r2->parse();
+     foreach ($r2->getItems() as $value) {
+       $format = '%d %b %Y';
+       echo "<li><a href=\"".$value['link']."\"><strong>".$value["title"]."</strong></a> - ".$value["description"]."</li>\n";
+     }
+
    } else {
-     echo "<li>The display of the news section requires PHP >=4.0.2 to be installed. Sorry.</li>\n";
-     // not yet there -  require('manually_written_news.html');
+     echo "<p><p>The full display of the news section requires PHP >=4.0.2 to be installed. Sorry.</li>\n";
+     // not yet there -  require('manually_written_news_events.html');
+    echo "<center>\n
+      <h4>Latest News!\n
+      <a href=\"http://grass.itc.it/rss.xml\"><img src=\"rss-icon.gif\" alt=\"RSS Feed\" border=0></a></h4>\n
+      </center>\n";
+    echo "<center>\n
+      <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";
+
    }
    ?>
    </ul>
 
- <center>         
-  <h4>Upcoming Conferences/Short Courses:</h4>
- </center>
-
-  <center>
-  <a href="http://foss4g2006.org/"><img src="images/foss4g_banner.gif" alt="FOSS4G 2006 banner"></a>
-  </center>
-  <ul>
-  <li> <a href="http://www.foss4g2006.org">FOSS4G 2006 - Open Source Geospatial Communities 
-      JOINT CONFERENCE</a> -
-      September 12-15 2006, Lausanne, Switzerland. This conference will unite the MapServer, GRASS,
-      EOGEO, and other Open Source communities at an international venue. 
-      <a href="http://www.foss4g2006.org/confRegistrationFormDisplay.py?confId=1">Register</a> to
-      meet your favourite FOSS4G projects! -
-      <a href="http://foss4g2006.org/site/gallery/index.php">Photo gallery</a> </li>
-  <li> <a href="http://gis.vsb.cz/GIS_Ostrava/GIS_Ova_2007/index.php">GIS
-Ostrava 2007</a>  28. - 31. January 2007, Ostrava, Czech. First meeting
-of Czech and Slovak users of GRASS and other FOSS4G software. Details in <a href="http://grass.fsv.cvut.cz/wiki/index.php/CS_e-konference">Mailing list</a></li>
-  <li> <a href="http://gislab.dirap.unipa.it/grass_meeting/grass_meeting.htm">GRASS and GFOSS Users Meeting, Palermo (Italy)</a>, 14-16 Feb. 2007</li>
-  <li> <a href="http://www.sigte.udg.es/jornadassiglibre/">Open Source GIS Users Meeting, Girona (Spain)</a>, 5-7 March 2007</a> </li>
- </ul>
-<P>
-
+<p>
 <div align="right">
 [ <a href="newsarchive.html">News Archive</a> |
   <i>Submit related announcements 





More information about the grass-web mailing list