<? include 'scripts/settings_front_login.php' ;  ?>
<? include 'scripts/settings_checktime.php' ; ?> 
 <rss version="2.0">
 <channel>
  <title>Hot Air Tour RSS</title> 
  <link>http://hotairtour.org</link> 
  <language>en-us</language> 
  <managingEditor>info@hotairtour.org</managingEditor>
	<description>This is an RSS feed that covers the latest Hot Air Tour news.</description>

<? 

$query_allrss = mysql_query( " SELECT * FROM content where (publish='1' and pubdate <= $checktime and (parent='home' or parent='u_events' or parent='l_events')) "
    		. " ORDER BY "
      . " CASE "
    . " WHEN priority=0 THEN 10 "
  . " ELSE priority "
       . " END, "
       . " CASE "
      . " WHEN pubdate=0 THEN publisher_ts  "
     . " ELSE CAST(pubdate *1000000 as DATETIME) "
   . " END desc limit 0 , 7 " ) ;


while($allrss_object = mysql_fetch_object($query_allrss)) {

    $allrss_uniquename = stripslashes($allrss_object->uniquename) ;
     $allrss_title = stripslashes($allrss_object->title) ;
     $allrss_parent = stripslashes($allrss_object->parent) ;
     $allrss_parent2 = stripslashes($allrss_object->parent) ;		 
     $allrss_subtitle = stripslashes($allrss_object->subtitle) ;
     $allrss_graphic = stripslashes($allrss_object->graphic_s) ;
     $allrss_graphic2 = stripslashes($allrss_object->graphic_s) ;		 
     $allrss_graphic_caption = stripslashes($allrss_object->graphic_text) ;
     $allrss_body = stripslashes($allrss_object->body) ;
     $allrss_credit = stripslashes($allrss_object->credit) ;
     $allrss_preview = stripslashes($allrss_object->previewgraph) ;

// Special Dateline processing
     $dateline_pubdate = stripslashes($allrss_object->pubdate) ;
     $dateline_publisher_ts = stripslashes($allrss_object->publisher_ts) ;
     include 'scripts/functions_datelinerss.php' ; 
     $allrss_dateline = $dateline_out ;
// 	<pubDate><? echo $allrss_dateline ;   ?></pubDate>
?>
 
 
<item>
  <title><? echo $allrss_title ;  ?></title> 
  <link>http://www.kstreetproject.com/index.php?content=<? echo $allrss_uniquename ;  ?></link> 
	<description><? echo $allrss_graphic_caption ;  ?></description>

  <guid>http://www.kstreetproject.com/index.php?content=<? echo $allrss_uniquename ;  ?></guid>
	</item>




<?

}
?>
</channel>
  </rss>