header(check_output($node->title)); node_view($node); if ($node->comment) { comment_render($id, $cid); } $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 no longer exist or is not accessible without the proper access rights.") ."\n"); $theme->footer(); } $number = ($title ? db_num_rows(db_query("SELECT nid FROM node WHERE title = '$title' AND status = 1")) : 1); if ($number > 1) { $result = db_query("SELECT n.*, u.name, u.uid FROM node n LEFT JOIN users u ON n.uid = u.uid WHERE n.title = '$title' AND n.status = 1 ORDER BY created DESC"); while ($node = db_fetch_object($result)) { if (node_access("view", $node)) { $output .= "
nid\">". check_output($node->title) ."
$node->type - ". format_name($node) ." - ". format_date($node->ccreated, "small") ."