Revision: 1559 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1559&view=re... Author: any0n3 Date: 2010-09-04 22:11:51 +0000 (Sat, 04 Sep 2010)
Log Message: ----------- Added sha1/md5 file hasher and a switch button
Modified Paths: -------------- www/staging/content/downloads.html www/staging/index.php
Modified: www/staging/content/downloads.html =================================================================== --- www/staging/content/downloads.html 2010-09-04 21:53:15 UTC (rev 1558) +++ www/staging/content/downloads.html 2010-09-04 22:11:51 UTC (rev 1559) @@ -28,7 +28,20 @@ echo "<tr>"; echo " <th>Download</th>"; echo " <th>SIG</th>"; - echo " <th>MD5</th>"; + echo " <th>"; + if ($_GET['hash'] != "md5") + { + echo "<a href="?site=downloads&hash=md5">MD5</a> "; + } else { + echo "MD5 "; + } + echo "/"; + if ($_GET['hash'] != "sha1") + { + echo " <a href="?site=downloads&hash=sha1">SHA1</a> "; + } else { + echo "SHA1"; + } echo "</tr>";
if(file_exists($dir . "geany-plugins-" . $version . ".tar.gz") && @@ -37,7 +50,12 @@ echo "<tr>"; echo " <td><a href="./geany-plugins/geany-plugins-" . $version . ".tar.gz">geany-plugins-" . $version . ".tar.gz</a></td>"; echo " <td><a href="./geany-plugins/geany-plugins-" . $version . ".tar.gz.sig">SIG</a></td>"; - echo " <td>" . md5_file($dir . "geany-plugins-" . $version . ".tar.gz") . "</a>"; + if ($_GET['hash'] == "sha1") + { + echo " <td>" . sha1_file($dir . "geany-plugins-" . $version . ".tar.gz") . "</a>"; + } else { + echo " <td>" . md5_file($dir . "geany-plugins-" . $version . ".tar.gz") . "</a>"; + } echo "</tr>"; }
Modified: www/staging/index.php =================================================================== --- www/staging/index.php 2010-09-04 21:53:15 UTC (rev 1558) +++ www/staging/index.php 2010-09-04 22:11:51 UTC (rev 1559) @@ -68,7 +68,7 @@ <hr />
<ul> - <li><a href="index.php?site=downloads">Downloads</a></li> + <li><a href="index.php?site=downloads&hash=md5">Downloads</a></li> <li><a href="index.php?site=install">Install</a></li> </ul>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.