From 1f79863053350f1a7d6cb654ac615123bc3b5133 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 25 Mar 2001 10:57:01 +0000 Subject: - large commit of everything else that has been queued in my backlog: it's not 100% stable yet --- node.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'node.php') diff --git a/node.php b/node.php index c58274a50..ca65a800c 100644 --- a/node.php +++ b/node.php @@ -2,30 +2,32 @@ include "includes/common.inc"; -function node_update($node) { -} - function node_history($node) { + global $status; + if ($node->status == $status[expired] || $node->status == $status[posted]) { + $output .= "
". format_date($node->timestamp) ." by ". format_username($node->userid) .":
". check_output($node->log, 1) ."

"; + } + if ($node->pid) { + $output .= node_history(node_get_object("nid", $node->pid)); + } + return $output; } function node_refers($node) { + print "under construction"; } $node = ($title ? node_get_object(title, check_input($title)) : node_get_object(nid, check_input($id))); if ($node && node_visible($node)) { switch ($op) { - case "update": -// node_update($node); -// break; case "history": -// node_history($node); -// break; - case "referers": -// node_referers($node); -// break; + $theme->header(); + $theme->box(t("History"), node_info($node) ."
". node_history($node) ."
"); + $theme->footer(); + break; default: - node_view($node); + node_view($node, 1); } } else { -- cgit v1.2.3