create_time; } else { $last_mod_time = time(); } $create_date = gmdate('D, d M Y H:i:s', $last_mod_time) . ' GMT'; header("Expires: ".gmdate('D, d M Y H:i:s', time())." GMT"); header("Last-Modified: ".$create_date); header("Content-Type: application/xml"); $description = "Community notifications"; $channel_image = URL_BASE."rss_image.gif"; $language = "en-us"; echo " ".PROJECT." ".URL_BASE." ".$description." ".COPYRIGHT_HOLDER." ".$create_date." ".$language." ".$channel_image." ".PROJECT." ".URL_BASE." "; foreach ($notifies as $notify) { switch ($notify->type) { case NOTIFY_FRIEND_REQ: friend_req_rss($notify, $title, $msg, $url); break; case NOTIFY_FRIEND_ACCEPT: friend_accept_rss($notify, $title, $msg, $url); break; case NOTIFY_PM: pm_rss($notify, $title, $msg, $url); break; case NOTIFY_SUBSCRIBED_POST: subscribe_rss($notify, $title, $msg, $url); break; } $news_date=gmdate('D, d M Y H:i:s',$notify->create_time) . ' GMT'; $unique_url=URL_BASE."home.php"; echo " $title ".htmlentities($url)." $news_date "; } echo " "; ?>