Changeset 4297 for trunk/website

Show
Ignore:
Timestamp:
11/13/05 23:43:39 (3 years ago)
Author:
emostar
Message:

Add some download stats from the SF RSS feed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/website/download.php

    r4287 r4297  
    11<? 
    22  include "header.php"; 
     3 
     4   require_once('rss_fetch.inc'); 
     5   $rss = fetch_rss("http://sourceforge.net/export/rss2_projfiles.php?group_id=254"); 
     6   $strDownload = ""; 
     7   if ($rss->items) 
     8   { 
     9     foreach ($rss->items as $item) 
     10     { 
     11       $title = $item['title']; 
     12       $desc = $item['description']; 
     13       if (preg_match("/1.3.2 released/", $title)) 
     14       { 
     15 
     16echo $desc; 
     17         preg_match("/bz2 (.*) to.*/", $desc, $matches); 
     18print_r($matches); 
     19         $strDownload .= "<I>". $matches[1] . ")</I>"; 
     20       } 
     21     } 
     22    } 
    323?> 
    424 
     
    2141                    <td style="width: 30%"><br><a href="http://prdownloads.sourceforge.net/licq/licq-1.3.2.tar.bz2?download">licq-1.3.2.tar.bz2</a><br> 
    2242                    <a href="http://prdownloads.sourceforge.net/licq/licq-1.3.2.tar.gz?download">licq-1.3.2.tar.gz</a></td> 
    23                     <td>Latest Stable Release<br>(bz2 md5sum: 0471bb8fed91eefb23dfe153c9a4a806)<br>(gz md5sum: d8412c20f106aa01d8b9b4f89d8d3130)</td> 
     43                    <td>Latest Stable Release<br>(bz2 md5sum: 0471bb8fed91eefb23dfe153c9a4a806)<br>(gz md5sum: d8412c20f106aa01d8b9b4f89d8d3130)<BR><?echo $strDownload?></td> 
    2444                  </tr> 
    2545                  <tr>