comment) { switch($op) { case t("Preview comment"): $theme->header(); comment_preview(check_input($pid), check_input($id), $subject, $comment); $theme->footer(); break; case t("Post comment"): comment_post(check_input($pid), check_input($id), check_input($subject), check_input($comment)); $theme->header(); node_view($node); comment_render($id, $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(); node_view($node); comment_render($id, $cid); $theme->footer(); break; case t("Moderate comments"): comment_moderate($moderate); $theme->header(); node_view($node); comment_render($id, $cid); $theme->footer(); break; default: $theme->header(); node_view($node); comment_render($id, $cid); $theme->footer(); } } else { $theme->header(); node_view($node); $theme->footer(); } } function node_failure() { global $theme; $theme->header(); $theme->box(t("Not found"), t("The node you are looking for does not exist yet or is no longer accessible:") ."
\n"); $theme->footer(); } function node_history($node) { global $status; if ($node->status == $status[expired] || $node->status == $status[posted]) { $output .= "nid\">". check_output($node->title) ."
$node->type - ". format_username($node->userid) ." - ". format_date($node->timestamp, "small") ."