"9") { $news = "9"; } } // inclue 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 = MASTER_URL . "rss_image.jpg"; $create_date = gmdate('D, d M Y H:i:s') . ' GMT'; $language = "en-us"; echo "\n" ."\n\n " .PROJECT."\n " .MASTER_URL."\n " .$description."\n " .COPYRIGHT_HOLDER."\n " .$create_date."\n " .$language."\n \n " .$channel_image."\n " .PROJECT."\n " .MASTER_URL."\n \n"; // - Create news items // $news = min( count($project_news), $news); for( $item=0; $item < $news; $item++ ) { if( count($project_news[$item]) == 2) { echo " \n Project News " .strip_tags($project_news[$item][0])."\n " .MASTER_URL."\n " .strip_tags($project_news[$item][1])."\n "; } } // Close XML content // echo "\n"; ?>