[Pomp-commits] r342 - www

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Sep 28 21:26:18 CEST 2010


Author: kingaa
Date: 2010-09-28 21:26:17 +0200 (Tue, 28 Sep 2010)
New Revision: 342

Modified:
   www/index.php
Log:

- fix broken link


Modified: www/index.php
===================================================================
--- www/index.php	2010-09-28 17:38:21 UTC (rev 341)
+++ www/index.php	2010-09-28 19:26:17 UTC (rev 342)
@@ -3,8 +3,9 @@
 $group_name=ereg_replace('([^\.]*)\..*$','\1',$_SERVER['HTTP_HOST']);
 $themeroot='http://r-forge.r-project.org/themes/rforge/';
 $rforgepkgs = "http://r-forge.r-project.org/R/?group_id=214";
-$cranpage = file_get_contents("http://cran.at.r-project.org/web/packages/pomp/");
-preg_match("/<tr><td valign=top>Version:<\/td>\\n<td>(.+?)<\/td>/",$cranpage,$matches);
+$cranpage = "http://cran.at.r-project.org/web/packages/pomp/";
+$crancontents = file_get_contents($cranpage);
+preg_match("/<tr><td valign=top>Version:<\/td>\\n<td>(.+?)<\/td>/",$crancontents,$matches);
 $cranversion = $matches[1];
 $rforgepage = file_get_contents($rforgepkgs);
 preg_match("/Rev\.: <b>(.+?)<\/b>/",$rforgepage,$matches);
@@ -46,8 +47,8 @@
 <td align="left" width="40%">
 <ul>
 <li><a href="./index.php?nav=about">About <i>pomp</i></a></li>
-<li><a href="http://<?php echo $domain; ?>/R/<?php echo $group_name;?>">Development Version (Rev. <?php print $svnrevision; ?>)</a></li>
-<li><a href="http://cran.at.r-project.org/web/packages/pomp/">Release Version (<?php print $cranversion; ?>) on CRAN</a></li>
+<li><a href="<?php echo $rforgepkgs;?>">Development Version (Rev. <?php print $svnrevision; ?>)</a></li>
+<li><a href="<?php echo $cranpage;?>">Release Version (<?php print $cranversion; ?>) on CRAN</a></li>
 <li><a target="_blank" href="http://cran.at.r-project.org/web/packages/pomp/pomp.pdf"><i>pomp</i> manual (PDF)</a></li>
 <li><a href="http://lists.r-forge.r-project.org/pipermail/pomp-announce/"><i>pomp-announce</i> mailing list archives</a></li>
 <li><a href="./index.php?nav=bib">References to the literature</a></li>



More information about the pomp-commits mailing list