query("SELECT * FROM sections WHERE section_id='$id'"); while($cms->next_record()) { $section_name=$cms->f('h1'); $r = new MakeRSS('Sezioni dell\'area tematica '.$section_name.' su '.$config_sitedir, $config_sitedir, 'Feed RSS di '.$config_sitetitle); //$r->AddImage('Shiftzero.com', 'http://www.shiftzero.com/images/logo.gif', 'http://www.shiftzero.com'); } $cms->query("SELECT * FROM page_elements INNER JOIN section_compose ON page_elements.id = section_compose.father_id INNER JOIN nav_menu ON section_compose.father_id = nav_menu.father_order_id WHERE section_compose.section_id='$id' && status='attiva' && left_content!='no' && archived!='si' ORDER BY father_order DESC"); while($cms->next_record()) { $title=stripasterisk(html_entity_decode($cms->f('h1'), ENT_QUOTES)); $link=$config_sitedir."/pageview2.php?i=".$cms->f('id'); //$abstract=clean_abstract(stripslashes($cms->f('abstract'))); //if($abstract=="") $abstract="No description"; $subtitle=html_entity_decode($cms->f('h2'), ENT_QUOTES); if($subtitle=="") $subtitle="No description"; //$description=$abstract; $description=$subtitle; $author=$config_sitetitle; /* ELIMINO LA DATA DI PUBBLICAZIONE $pubDate=$cms->f('updated'); $data->query("SELECT UNIX_TIMESTAMP('$pubDate') as pubdate"); while($data->next_record()) { $pubDate=$data->f('pubdate'); } $pubDate=date("D, j M Y H:i:s +0100", $pubDate); //$r->AddArticle($title, $link, $description, $author, $optional=array(pubDate => $pubDate)); */ $r->AddArticle($title, $link, $description, $author); } $r->Output(); } elseif($basename=="pageview2.php") { $cms->query("SELECT * FROM page_elements WHERE id='$id'"); while($cms->next_record()) { $father_name=$cms->f('h1'); $r = new MakeRSS('Approfondimenti della sezione '.$father_name.' su '.$config_sitedir, $config_sitedir, 'Feed RSS di '.$config_sitetitle); //$r->AddImage('Shiftzero.com', 'http://www.shiftzero.com/images/logo.gif', 'http://www.shiftzero.com'); } $cms->query("SELECT * FROM page_elements INNER JOIN hierarchy ON page_elements.id = hierarchy.son_id WHERE father_id='$id' && status='attiva' && left_content!='no' && archived!='si' ORDER BY ord DESC"); while($cms->next_record()) { $title=stripasterisk(html_entity_decode($cms->f('h1'), ENT_QUOTES)); $link=$config_sitedir."/pageview2.php?i=".$cms->f('id')."&sl=1"; //$abstract=clean_abstract(stripslashes($cms->f('abstract'))); //if($abstract=="") $abstract="No description"; $subtitle=html_entity_decode($cms->f('h2'), ENT_QUOTES); if($subtitle=="") $subtitle="No description"; //$description=$abstract; $description=$subtitle; $author=$config_sitetitle; /* ELIMINO LA DATA DI PUBBLICAZIONE $pubDate=$cms->f('updated'); $data->query("SELECT UNIX_TIMESTAMP('$pubDate') as pubdate"); while($data->next_record()) { $pubDate=$data->f('pubdate'); } $pubDate=date("D, j M Y H:i:s +0100", $pubDate); $r->AddArticle($title, $link, $description, $author, $optional=array(pubDate => $pubDate)); */ $r->AddArticle($title, $link, $description, $author); } $r->Output(); } ?>