"._NORESULT.""); CloseTable(); return; } $string = get_file("news/$news.xml"); $title = get_xml_element("fn:title",$string); $header = stripslashes(get_xml_element("fn:header",$string)); $body = stripslashes(get_xml_element("fn:body",$string)); echo "

$title


"; echo "$header

$body
"; echo "
"; echo "

"._ARTTR." $sitename - $url
"; echo _URLREF." $url"."index.php?mod=read&id=$news"; echo "
"; } else { if($file=="") { if(!file_exists("sections/$mod/section.php") AND !file_exists("sections/$mod/gallery")) { OpenTable(); print("
"._NORESULT."
"); CloseTable(); return; } } else { if(!file_exists("sections/$mod/$file")) { OpenTable(); print("
"._NORESULT."
"); CloseTable(); return; } } $mod_title = eregi_replace("^([0-9]*)_|(none)_", "", $mod); $mod_title = str_replace("_", " ", $mod_title); echo "

$mod_title


" ; if($file=="") { if(file_exists("sections/$mod/section.php")) include("sections/$mod/section.php"); } else include("sections/$mod/$file"); /* Gestisce la galleria con gallery */ if(file_exists("sections/$mod/gallery")) { echo "

"; include("gallery/gallery.php"); } echo "
"; echo "

"._ARTTR." $sitename - $url
"; echo _URLREF." $url"."index.php?mod=$mod
"; } ?>