"headlineRSS10_export"); include_once "includes/common.inc"; include_once "modules/backend.class"; function headlineRSS10_export($uri) { global $status, $HTTP_REFERER, $HTTP_USER_AGENT; if ($uri[2] == "headlinesRSS10.rdf") { watchdog("message", "grabbed 'headlinesRSS10.rdf' - referring url: $HTTP_REFERER - user agent: $HTTP_USER_AGENT"); header("Content-Type: text/plain"); print "\n"; print "\n\n"; print "\n"; print " ". variable_get(site_name, "drupal") ."\n"; print " ". variable_get(site_url, "http://drupal/") ."\n"; print " ". variable_get(site_name, "drupal") ."\n"; print " \n"; print " \n"; $result = db_query("SELECT * FROM node WHERE type = 'story' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10"); while ($node = db_fetch_object($result)) { print " nid\" />\n"; } print " \n"; print " \n"; print "\n\n"; $result = db_query("SELECT * FROM node WHERE type = 'story' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10"); while ($node = db_fetch_object($result)) { print "nid\">\n"; print " ". check_export($node->title) ."\n"; print " ". variable_get(site_url, "http://drupal/") ."node.php?id=$node->nid\n"; if ($node->abstract) print " ". check_output($node->abstract, 1) ."\n"; print "\n"; } print "\n"; } } ?>