From: Eric Bollengier Date: Tue, 29 Sep 2009 17:22:48 +0000 (+0200) Subject: add script to update rss stream X-Git-Tag: Release-3.0.3~2^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f718ee52a9a6f7eb1ba1cffeab1d3c9d7dd68f0;p=bacula%2Fdocs add script to update rss stream --- diff --git a/docs/rss_web.php b/docs/rss_web.php new file mode 100644 index 00000000..56208f63 --- /dev/null +++ b/docs/rss_web.php @@ -0,0 +1,33 @@ +\n"; +if( eregi("(.*)", $raw, $rawitems ) ) { + $items = explode("", $rawitems[0]); + + for( $i = 0; ($i < count($items)-1) && ($i < 5); $i++ ) { + eregi("(.*)",$items[$i+1], $title ); + eregi("(.*)",$items[$i+1], $url ); + eregi("(.*)", $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 "