}; if (empty($parseLimit)) { $parseLimit = 10; }; if (empty($parseEnglobantDebut)) { echo $this->Format("//Le paramètre \"tagbegin\" est manquant.//"); $ok = false; }; if (empty($parseEnglobantFin)) { echo $this->Format("//Le paramètre \"tagend\" est manquant.//"); $ok = false; }; if (empty($parseDonnee1)) { echo $this->Format("//Le paramètre \"link\" est manquant.//"); $ok = false; }; if (empty($parseDonnee2)) { echo $this->Format("//Le paramètre \"title\" est manquant.//"); $ok = false; }; if ($ok == true) { parseRSS($parseUrl,$parseLimit,$parseEnglobantDebut,$parseEnglobantFin,$parseDonnee1,$parseDonnee2,$parseDonnee3); }; ?>
function displayData() { global $chanTitle, $chanLink, $chanDesc, $rss, $items, $itemCount, $imgTitle, $imgLink, $imgUrl; global $items, $itemCount; ?> <? /* echo '<a href="'.codirovkaReader($chanLink).'" target="_blank">'.codirovkaReader($chanTitle).'</a> ' ; */ ?> <? /* echo codirovkaReader($chanDesc); */ ?> <? /* echo '<a href="'.codirovkaReader($imgLink).'" target="_blank"><img src="'.codirovkaReader($imgUrl).'" alt="'.codirovkaReader($imgTitle).'" border="0" /></a> '; */ ?> <? //for($i = 0;$i < count($items)-1;$i++) { for($i = 0;$i < 5;$i++) { if(@$items[$i]['link']<>''){ ?> <? echo '<strong><font size="2" color="#8c2313">'.codirovkaReader(@$items[$i]['title']).'</font></strong><br><br>'; ?> <? /* echo '<br><br>'.codirovkaReader(@$items[$i]['pubdate']).'<br><br>'; */ ?> <? echo '<font size="2">'.codirovkaReader(@$items[$i]['desc']).'</font><br><hr><br>'; ?> <? /* echo '<br><a href="'.codirovkaReader(@$items[$i]['link']).'" target="_blank"> '.codirovkaReader(@$items[$i]['link']).'</a> <hr size="1">' ;*/ ?> <? } } ?> <? } parseRSS($url); ?> <br> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
$values[$i][$item][] = $feed; } else { $values[$i][$item] = $feed; } } else { $values[$i][$value['tag']] = $value['value']; } } //RETURN ARRAY VALUES return $values[0]; } /****************************************************************************************************************** SAMPLE USAGE OF FUNCTION ******************************************************************************************************************/ //PARSE THE RSS FEED INTO ARRAY $xml = parseRSS($feed_address); //SAMPLE USAGE OF echo "<table>"; function CleanFeed($input) { $stupid_array = array("‘", "’"); $output = str_replace($stupid_array, "'", $input); $output = strip_tags($output, "<br>"); $output = str_replace("<br /><br />", "<br />", $output); $output = trim($output, "<br />"); $output = mb_convert_encoding($output, 'HTML-ENTITIES', "UTF-8"); return $output; } foreach ($xml['RSS']['CHANNEL']['ITEM'] as $item) { $feed_title = CleanFeed($item['TITLE']); $feed_link = $item['LINK'];
<li><a id="various2" href="#tour">tour dates</a></li> <li><a href="#" id="film-toggle">film</a></li> <li><a href="#" id="image-toggle">photos</a></li> <li><a id="various3" href="#contact">booking/contact</a></li> <li><a id="various4" href="#links">links</a></li> <li style="display:none;"><a id="various5" href="#splash">splash</a></li> </ul> </div> <!--START NEWS--> <div style="display: none;"> <div id="news" style="width:400px;height:400px;overflow:auto;"> <h1>News</h1> <? $news=parseRSS('http://www.artistdata.com/summer-people/news/rss'); //http://feeds.artistdata.com/rss.newfeeds/artist/AR-14A9D5045FF1C56F/rss foreach($news as $tmp) { $item=$tmp['_c']; echo '<h2>'.$item['title']['_v'].'</h2>'; echo '<p>'.$item['description']['_v'].'<p>'; } ?> </div> </div> <!--END NEWS--> <!--START TOUR--> <div style="display: none;"> <div id="tour" style="width:500px;height:450px;overflow:auto;"> <h1>Tour Dates</h1>