Bacula-users

Re: [Bacula-users] "Latest Files" link on bacula.org

2013-03-05 03:04:24
Subject: Re: [Bacula-users] "Latest Files" link on bacula.org
From: Geert Stappers <Geert.Stappers AT vanadgroup DOT com>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Tue, 5 Mar 2013 09:01:53 +0100
Op 2013-02-21 om 19:20 schreef Uwe Schuerkamp:
> Hi folks,
> 
> the "current files" link on the bacula website still points to release
> 5.2.6 which might confuse some people ;) 
> 

I had a closer look.

My git clone http://git.bacula.org/docs has
file home-page/en/page/dl.php with
function getfiles() {
   $ch = curl_init();
   curl_setopt($ch, CURLOPT_URL, 
"http://sourceforge.net/projects/bacula/files/";);
   curl_setopt($ch, CURLOPT_HEADER, false);
   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
   curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
   $res = curl_exec($ch);
   curl_close($ch);

   $res = strstr($res, "All Files");
//   echo "res=$res";
   $res = str_replace("\n", "", $res);
   $res = str_replace("\r", "", $res);

   // get list of all available files and their attributes
   $count = preg_match_all(
      //                                  cat    vers    name
      "!href=\"(/projects/bacula/files/([^/]+)/([^/]+)/([^/]+)/download)\"" .
      //            size                     date             downloads
      ".*?<td>([\d\.]+ [a-zA-Z]+)</td>.*?<td>(.*?)</td>.*?<td>(.*?)</td>!",
      $res, $files, PREG_SET_ORDER);

   // remove duplicates (due to "latest files" list)
   $out = array_filter_unique(
      $files, create_function('$a,$b', 'return strcmp($a[1], $b[1]);'));
   return $out;
}

What I see is that the string 'All Files' is gone from 
http://sourceforge.net/projects/bacula/files/


So far for this week.

Cheers
Geert Stappers
http://www.vanadcimplicity.com/
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Bacula-users] "Latest Files" link on bacula.org, Geert Stappers <=