From 2f718ee52a9a6f7eb1ba1cffeab1d3c9d7dd68f0 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 29 Sep 2009 19:22:48 +0200 Subject: [PATCH] add script to update rss stream --- docs/rss_web.php | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/rss_web.php 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 "