"9") { $news = "9"; } // include project constants and news file // require_once("../project/project.inc"); require_once("../project/project_news.inc"); // Create channel header and open XML content // $description = "BOINC project ".PROJECT.": Main page News"; $channel_image = URL_BASE . "/rss_image.jpg"; $create_date = gmdate('D, d M Y H:i:s') . ' GMT'; $language = "en-us"; echo " ".PROJECT." ".URL_BASE." ".$description." ".COPYRIGHT_HOLDER." ".$create_date." ".$language." ".$channel_image." ".PROJECT." ".URL_BASE." "; // write news items // $tot = count($project_news); $news = min( $tot, $news); for( $item=0; $item < $news; $item++ ) { $j = $tot - $item; if( count($project_news[$item]) == 2) { $d = strtotime($project_news[$item][0]); $d = strftime("%a, %d %b %Y", $d); echo " Project News ".strip_tags($project_news[$item][0])." ".URL_BASE."all_news.php#$j $item ".strip_tags($project_news[$item][1])." $d "; } } // Close XML content // echo " "; ?>