story($story, "[ ". t("reply to this story") ." ]"); 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 t("Add comment"): $theme->header(); comment_reply(check_input($cid), check_input($id)); $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(); } ?>