summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-15 17:20:55 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-15 17:20:55 +0000
commitf959b1ba2f603034591462e1bf4f5f75408ebeb2 (patch)
tree570fc9008849ec130443872f610648b8cf94f6f4
parent021cced42186862a9444ed6a2641baea3620d2fd (diff)
downloadbrdo-f959b1ba2f603034591462e1bf4f5f75408ebeb2.tar.gz
brdo-f959b1ba2f603034591462e1bf4f5f75408ebeb2.tar.bz2
- Removed old export framework.
-rw-r--r--export.php9
-rw-r--r--modules/export.module83
2 files changed, 0 insertions, 92 deletions
diff --git a/export.php b/export.php
deleted file mode 100644
index 5b2142a15..000000000
--- a/export.php
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-include_once "includes/common.inc";
-
-$uri = parse_url($REQUEST_URI);
-
-foreach (module_list() as $module) module_invoke($module, "export", $uri["query"]);
-
-?> \ No newline at end of file
diff --git a/modules/export.module b/modules/export.module
deleted file mode 100644
index c96ee2d8e..000000000
--- a/modules/export.module
+++ /dev/null
@@ -1,83 +0,0 @@
-<?php
-
-function export_export_rdf() {
- global $status;
-
- header("Content-Type: text/plain");
-
- print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
- print "<rdf:RDF\n";
- print " xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n";
- print " xmlns=\"http://my.netscape.com/rdf/simple/0.9/\">\n";
-
- print "<channel>\n";
- print " <title>". variable_get(site_name, "drupal") ."</title>\n";
- print " <link>". path_uri() ."</link>\n";
- print " <description>". variable_get(site_slogan, "") ."</description>\n";
- print "</channel>\n";
-
- $result = db_query("SELECT * FROM node WHERE promote = '1' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10");
-
- while ($node = db_fetch_object($result)) {
- print "<item>\n";
- print " <title>". check_export($node->title) ."</title>\n";
- print " <link>". path_uri() ."node.php?id=$node->nid</link>\n";
- print "</item>\n";
- }
-
- print "</rdf:RDF>\n";
-}
-
-function export_export_rss() {
- global $status;
-
- header("Content-Type: text/plain");
-
- print "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
- print "<rdf:RDF\n";
-
- print "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"\n";
- print "xmlns=\"http://purl.org/rss/1.0/\">\n\n";
-
- print "<channel rdf:about=\"". path_uri() ."export.php?headlines.rss\">\n";
- print " <title>". variable_get(site_name, "drupal") ."</title>\n";
- print " <link>". path_uri() ."</link>\n";
- print " <description>". variable_get(site_slogan, "") ."</description>\n";
-
- print " <items>\n";
- print " <rdf:Seq>\n";
-
- $result = db_query("SELECT * FROM node WHERE promote = '1' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10");
-
- while ($node = db_fetch_object($result)) {
- print " <rdf:li resource=\"". path_uri() ."node.php?id=$node->nid\" />\n";
- }
-
- print " </rdf:Seq>\n";
- print " </items>\n";
- print "</channel>\n\n";
-
- $result = db_query("SELECT * FROM node WHERE promote = '1' AND status = '$status[posted]' ORDER BY timestamp DESC LIMIT 10");
-
- while ($node = db_fetch_object($result)) {
- print "<item rdf:about=\"". path_uri() ."node.php?id=$node->nid\">\n";
- print " <title>". check_export($node->title) ."</title>\n";
- print " <link>". path_uri() ."node.php?id=$node->nid</link>\n";
- print "</item>\n";
- }
-
- print "</rdf:RDF>\n";
-}
-
-function export_export($query) {
- switch ($query) {
- case "headlines.rss":
- export_export_rss();
- break;
- case "headlines.rdf":
- case "default":
- export_export_rdf();
- }
-}
-
-?>