[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-commits
Subject:    [Bacula-commits] git: Bacula Documentation branch, master,
From:       "Eric Bollengier" <ricozz () users ! sourceforge ! net>
Date:       2009-09-29 17:23:06
Message-ID: E1MsgPr-0001aq-Tv () cj8yhf1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Bacula Documentation".

The branch, master has been updated
       via  2f718ee52a9a6f7eb1ba1cffeab1d3c9d7dd68f0 (commit)
       via  3e7d83306da7230f01a14ae799a9d9c2bda77929 (commit)
      from  b786d1de9cf6ae457aee0f53f862204dfb695ae2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2f718ee52a9a6f7eb1ba1cffeab1d3c9d7dd68f0
Author: Eric Bollengier <eric@eb.homelinux.org>
Date:   Tue Sep 29 19:22:48 2009 +0200

    add script to update rss stream

commit 3e7d83306da7230f01a14ae799a9d9c2bda77929
Author: Eric Bollengier <eric@eb.homelinux.org>
Date:   Tue Sep 29 18:33:05 2009 +0200

    tweak blog entries

-----------------------------------------------------------------------

Summary of changes:
diff --git a/docs/home-page/de/inc/header.php b/docs/home-page/de/inc/header.php
index f29a958..17e9abe 100644
--- a/docs/home-page/de/inc/header.php
+++ b/docs/home-page/de/inc/header.php
@@ -168,11 +168,15 @@
            </ul>
         </div>
 
+        <div class="menuHead"> Latest <a \
href="http://sourceforge.net/apps/wordpress/bacula/"><font \
color=white>Blog</font></a> Entries </div> +        <div class="menuItem">
+<? require_once("../rss.html"); /* update it with rss_web.php in crontab */ ?>
+        </div>
+
         <!-- Projects -->
         <div class="menuHead"> Projekte </div>
         <div class="menuItem">
            <ul class="menuitem">
-           <li class="menuItem"> <a \
                href="http://sourceforge.net/apps/wordpress/bacula/"> Blog </a></li>
            <li class="menuItem"> <a \
href="http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula;a=blob;f=bacula/projects"> \
                Projekte </a> </li>
            <li class="menuItem"> <a href="<? echo $spath ?>/?page=vote"> Project \
Vote </a> </li>  </ul>
diff --git a/docs/home-page/en/inc/header.php b/docs/home-page/en/inc/header.php
index b246b17..633a97a 100644
--- a/docs/home-page/en/inc/header.php
+++ b/docs/home-page/en/inc/header.php
@@ -171,11 +171,15 @@
            </ul>
         </div>
 
+        <div class="menuHead"> Latest <a \
href="http://sourceforge.net/apps/wordpress/bacula/"><font \
color=white>Blog</font></a> Entries </div> +        <div class="menuItem">
+<? require_once("../rss.html"); /* update it with rss_web.php in crontab */ ?>
+        </div>
+
         <!-- Projects -->
         <div class="menuHead"> Projects </div>
         <div class="menuItem">
            <ul class="menuitem">
-           <li class="menuItem"> <a \
                href="http://sourceforge.net/apps/wordpress/bacula/"> Blog </a></li>
            <li class="menuItem"> <a \
href="http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula;a=blob;f=bacula/projects"> \
                Projects </a> </li>
            <li class="menuItem"> <a href="<? echo $spath ?>/?page=vote"> Project \
Vote </a> </li>  </ul>
@@ -190,11 +194,11 @@
   -->
            </ul>
         </div>
+
         <div class="menuHead">  </div>
         <div class="icons">
            <a href="http://www.ukfast.net"><img \
src="../images/bacula_ukfast_logo.gif" alt="www.ukfast.net"></a>  </div>
-
    </div>
    
    <div class="pageTopRight">
diff --git a/docs/home-page/es/inc/header.php b/docs/home-page/es/inc/header.php
index b246b17..1209abb 100644
--- a/docs/home-page/es/inc/header.php
+++ b/docs/home-page/es/inc/header.php
@@ -171,11 +171,15 @@
            </ul>
         </div>
 
+        <div class="menuHead"> Latest <a \
href="http://sourceforge.net/apps/wordpress/bacula/"><font \
color=white>blog</font></a> entries </div> +        <div class="menuItem">
+<? require_once("../rss.html"); /* update it with rss_web.php in crontab */ ?>
+        </div>
+
         <!-- Projects -->
         <div class="menuHead"> Projects </div>
         <div class="menuItem">
            <ul class="menuitem">
-           <li class="menuItem"> <a \
                href="http://sourceforge.net/apps/wordpress/bacula/"> Blog </a></li>
            <li class="menuItem"> <a \
href="http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula;a=blob;f=bacula/projects"> \
                Projects </a> </li>
            <li class="menuItem"> <a href="<? echo $spath ?>/?page=vote"> Project \
Vote </a> </li>  </ul>
diff --git a/docs/home-page/fr/inc/header.php b/docs/home-page/fr/inc/header.php
index 9e23a57..d4997b0 100644
--- a/docs/home-page/fr/inc/header.php
+++ b/docs/home-page/fr/inc/header.php
@@ -183,12 +183,16 @@
             fonctionnalit&eacute;s </a></li>
         </ul>
       </div>
+
+        <div class="menuHead"> Latest <a \
href="http://sourceforge.net/apps/wordpress/bacula/"><font \
color=white>Blog</font></a> Entries </div> +        <div class="menuItem">
+<? require_once("../rss.html"); /* update it with rss_web.php in crontab */ ?>
+        </div>
   
       <!-- Projects -->
       <div class="menuHead"> Projets </div>
       <div class="menuItem">
         <ul class="menuitem">
-          <li class="menuItem"> <a \
                href="http://sourceforge.net/apps/wordpress/bacula/"> Blog </a></li>
           <li class="menuItem"> <a \
href="http://bacula.git.sourceforge.net/git/gitweb.cgi?p=bacula;a=blob;f=bacula/projects"> \
                Projects </a> </li>
           <li class="menuItem"> <a href="<? echo $spath ?>/?page=vote"> Projet Vote \
</a> </li>  </ul>
diff --git a/docs/rss_web.php b/docs/rss_web.php
new file mode 100644
index 0000000..56208f6
--- /dev/null
+++ b/docs/rss_web.php
@@ -0,0 +1,33 @@
+<?php
+/* ------------------------------------------------------
+ This script is used in crontab to update /var/www/bacula/rss.html
+ file with latest Blog entries
+------------------------------------------------------- */
+
+$site = "http://sourceforge.net/apps/wordpress/bacula/feed/";
+$fp = @fopen($site,"r");
+while(!feof($fp)) $raw .= @fgets($fp, 4096);
+fclose($fp);
+
+echo "<ul class='menuitem'>\n";
+if( eregi("<item>(.*)</item>", $raw, $rawitems ) ) {
+ $items = explode("<item>", $rawitems[0]);
+
+ for( $i = 0; ($i < count($items)-1) && ($i < 5); $i++ ) {
+  eregi("<title>(.*)</title>",$items[$i+1], $title );
+  eregi("<link>(.*)</link>",$items[$i+1], $url );
+  eregi("<pubDate>(.*)</pubDate>", $item[$i+1], $date);
+
+  // Try to avoid cross scripting problem
+  $t = str_replace(array("<", ">", '"', "'" ),
+                   array("", "", "", ""), $title[1]);
+
+  $u = str_replace(array("<", ">", '"', "'" ),
+                   array("", "", "", ""), $url[1]);
+
+  echo "<li class='menuItem'><a href='".$u."'>".$t."</a>\n";
+ }
+}
+echo "</ul>\n";
+
+?>


hooks/post-receive
-- 
Bacula Documentation

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Bacula-commits mailing list
Bacula-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic