summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-24 16:14:22 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-24 16:14:22 +0000
commit03e4aef5f055c492d8b8dc72d474eb0e7c2ca8c0 (patch)
treeb48559bc7da688a5a8b3fecdb5f985f8d61c3c47
parent9f044b7b73cafdff9630ecc9d2bd9de77ba62a16 (diff)
downloadbrdo-03e4aef5f055c492d8b8dc72d474eb0e7c2ca8c0.tar.gz
brdo-03e4aef5f055c492d8b8dc72d474eb0e7c2ca8c0.tar.bz2
- we are not going to use story.php anymore: it will be a more generic
node.php
-rw-r--r--story.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/story.php b/story.php
deleted file mode 100644
index fd60f0939..000000000
--- a/story.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-include_once "includes/common.inc";
-include_once "includes/story.inc";
-
-function story_render($id, $cid) {
- global $theme, $user;
-
- $story = db_fetch_object(db_query("SELECT s.*, u.userid FROM stories s LEFT JOIN users u ON s.author = u.id WHERE s.id = '$id'"));
-
- if (story_visible($story)) {
- $theme->story($story, "[ <A HREF=\"story.php?op=reply&id=$id&pid=0\">". t("reply to this story") ."</A> ]");
- comment_render($id, $cid);
- }
- else {
- $theme->box(t("Warning message"), t("The story you requested is not available or does not exist."));
- }
-}
-
-switch($op) {
- case t("Preview comment"):
- $theme->header();
- comment_preview(check_input($pid), check_input($id), ($subject ? check_output($subject) : ""), ($comment ? check_output($comment) : ""));
- $theme->footer();
- break;
- case t("Post comment"):
- comment_post(check_input($pid), check_input($id), check_input($subject), check_input($comment));
- $theme->header();
- story_render(check_input($id), check_input($cid));
- $theme->footer();
- break;
- case "reply":
- $theme->header();
- comment_reply(check_input($pid), check_input($id));
- $theme->footer();
- break;
- case t("Update settings"):
- comment_settings(check_input($mode), check_input($order), check_input($threshold));
- $theme->header();
- story_render(check_input($id), check_input($cid));
- $theme->footer();
- break;
- case t("Moderate comments"):
- comment_moderate($moderate);
- $theme->header();
- story_render(check_input($id), check_input($cid));
- $theme->footer();
- break;
- default:
- $theme->header();
- story_render(check_input($id), check_input($cid));
- $theme->footer();
-}
-
-?>