Revision: 1539 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1539&view=re... Author: any0n3 Date: 2010-09-03 10:56:47 +0000 (Fri, 03 Sep 2010)
Log Message: ----------- Added dynamic download page which creates link of the newest version of geany-plugins.
Modified Paths: -------------- www/staging/content/downloads.html
Modified: www/staging/content/downloads.html =================================================================== --- www/staging/content/downloads.html 2010-08-31 20:49:26 UTC (rev 1538) +++ www/staging/content/downloads.html 2010-09-03 10:56:47 UTC (rev 1539) @@ -1,3 +1,49 @@ <h2>Download Geany-Plugins</h2> -<a href="http://plugins.geany.org/geany-plugins/">You can download latest -releases of the Geany Plugins project from here.</a> +<?php + if($handle = opendir('geany-plugins')) + { + + $versions = Array(); + + while(false !== ($file = readdir($handle))) + { + if(preg_match("/.tar.gz/", $file)) + { + + $file = substr($file, 14); + $file = substr($file, 0, -7); + $versions[] = $file; + + } + } + + closedir($handle); + + $version = max($versions); + } + + echo "Download the latest <a href=\"./geany-plugins/geany-plugins-" . $version . ".NEWS\">Geany-Plugins</a> in version " . $version . ".<br />\n"; +?> +<table border="1"> + <tr> + <th>Name</th> + <th>Download</th> + <th>SIG</th> + </tr> + <tr> + <td>geany-plugins-<?php echo $version; ?>.tar.gz</td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.tar.gz">Download</a></td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.tar.gz.sig">SIG</a></td> + </tr> + <tr> + <td>geany-plugins-<?php echo $version; ?>.tar.bz2</td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.tar.bz2">Download</a></td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.tar.bz2.sig">SIG</a></td> + </tr> + <tr> + <td>geany-plugins-<?php echo $version; ?>.exe</td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.exe">Download</a></td> + <td><a href="./geany-plugins/geany-plugins-<?php echo $version; ?>.exe.sig">SIG</a></td> + </tr> +</table> +<br />Older versions of Geany-Plugins can be downloaded <a href="./geany-plugins">here</a>.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org