<?php Header( 'Content-Type: application/rss+xml' );echo "<?xml version='1.0' encoding='iso-8859-1' ?><rss version='2.0'>   <channel>      <title>NomIg. | AudioVisual and Ambient Video</title>      <link>http://www.nomig.net</link>      <description><![CDATA[NomIg. began as a creative duo founded on a shared interest in investigating the relationships between audio and video. NomIg.'s artistic interests lie in applying compositional techniques, usually reserved for music, to digital video. What results is an awareness of a symbiotic relationship between sight and sound; not only a symbiosis in their unification, but also in editing, post-production and performance techniques as well. Together the duo are committed to approaching audiovisual art in terms of what can be learned from the intersections between musical and cinematic points of view on both theoretical and practical levels.]]></description><image><url>http://www.nomig.net/imgs/logo.jpg</url><title>NomIg. | AudioVisual and Ambient Video Artists</title><link>http://www.nomig.net</link></image>      <language>en-us</language>";	  define('IN_VALIDATE', true);include("../nomigdb_gen.php");//for de-cleaning the input textsfunction decodeText($_str) {  $trans_tbl = get_html_translation_table (HTML_ENTITIES);  $trans_tbl = array_flip ($trans_tbl);  $_str = strtr($_str, $trans_tbl); // if ($_form) {  // $_nl = "/r/n";  //} else {   $_nl=array("<br>", "<em>", "</em>", "<b>", "</b>", "<br>");   $find=array("#BR#", "#EM#", "#/EM#",  "#B#", "#/B#", "\n");  //}  $_str=str_replace($find, $_nl, $_str);  return($_str);}#get pix$pixsql=mysql_query("SELECT filename, id, subnav, sub_title FROM photos");while($row=mysql_fetch_array($pixsql)) {$pixarr[]=array(subnav=>$row['subnav'],sub_title=>$row['sub_title'],id=>$row['id'], filename=>$row['filename']);}//for 10 most recently edited items//$sql=mysql_query("SELECT * FROM items WHERE dated!='00000000000000' ORDER BY 'dated' DESC LIMIT 10");//just for news items$sql=mysql_query("SELECT * FROM items WHERE subnav='News' AND navid='maison' ORDER BY 'position' ASC");while($row=mysql_fetch_array($sql)) {##search and replace illegal xml characters$search = array('@&(quot|#34);@i','@&(apos|#34);@i', '/@&(amp|#38);@i/');$replace = array('&quot;','&apos;', '&amp;');$row['text']=preg_replace($search, $replace, $row['text']);$decodedtext=decodeText($row['text']);echo "<item><title>".$row['title']."</title><description>";for($x=0;$x<count($pixarr);$x++) {if($x < 10) {	if($pixarr[$x][sub_title]==$row['title'] && $pic!='1') {	$pic=1;	echo "<![CDATA[<br><img style='border: 1px solid black' src='http://www.nomig.net/photos/".$pixarr[$x][filename]."'>&nbsp;&nbsp;&nbsp;<br><br>]]>";	}	}$pic=0;echo  "<![CDATA[".$decodedtext."]]></description><link><![CDATA[http://www.nomig.net/index.php?subsub=".$row['subnav']."&navid=".$row['navid']."&text=".($row['position']-1)."]]></link><guid isPermaLink='false'><![CDATA[http://www.nomig.net/index.php?subsub=".$row['subnav']."&navid=".$row['navid']."&text=".($row['position']-1)."]]></guid></item>";}}echo "</channel></rss>";?>	  