diff --git a/modules/backend.module b/modules/backend.module index ab8c6ab9e7f..a06b26caaf9 100644 --- a/modules/backend.module +++ b/modules/backend.module @@ -8,7 +8,36 @@ $module = array("page" => "backend_page", include "includes/common.inc"; include "modules/backend.class"; -function backend_page() { +function backend_rdf() { + global $site_name, $site_url; + + header("Content-Type: text/plain"); + + print "\n"; + print "\n"; + + print "\n"; + print " $site_name\n"; + print " $site_url\n"; + print " $site_name\n"; + print "\n"; + + $result = db_query("SELECT * FROM stories WHERE status = 2 ORDER BY timestamp DESC LIMIT 10"); + + while ($story = db_fetch_object($result)) { + print "\n"; + print " $story->subject\n"; + print " ". $site_url ."discussion.php?id=$story->id\n"; + print "\n"; + } + + print "\n"; + +} + +function backend_blocks() { global $theme; // Get channel info: @@ -44,6 +73,18 @@ function backend_page() { $theme->footer(); } +function backend_page() { + global $type; + + switch($type) { + case "rdf": + backend_rdf(); + break; + default: + backend_blocks(); + } +} + function backend_cron() { $result = db_query("SELECT * FROM channel"); while ($channel = db_fetch_object($result)) {