comment) { switch($op) { case t("Preview comment"): $theme->header(); comment_preview($edit); $theme->footer(); break; case t("Post comment"): comment_post($edit); $theme->header(); node_view($node); comment_render($edit[id], $cid); $theme->footer(); break; case t("Add comment"): $theme->header(); comment_reply(check_query($cid), check_query($id)); $theme->footer(); break; case "reply": $theme->header(); comment_reply(check_query($pid), check_query($id)); $theme->footer(); break; case t("Update settings"): comment_settings(check_query($mode), check_query($order), check_query($threshold)); $theme->header(); node_view($node); comment_render($id, $cid); $theme->footer(); break; case t("Update ratings"): node_moderate($moderate["node"]); comment_moderate($moderate["comment"]); $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(); } } else { $theme->header(); $theme->box(t("Access denied"), message_access()); $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) { if ($node->status == node_status("expired") || $node->status == node_status("posted")) { $output .= "
nid\">". check_output($node->title) ."
$node->type - ". format_name($node) ." - ". format_date($node->timestamp, "small") ."