2001-03-24 16:37:44 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include "includes/common.inc";
|
|
|
|
|
|
|
|
function node_history($node) {
|
2001-03-25 10:57:01 +00:00
|
|
|
global $status;
|
|
|
|
if ($node->status == $status[expired] || $node->status == $status[posted]) {
|
|
|
|
$output .= "<DT><B>". format_date($node->timestamp) ." by ". format_username($node->userid) .":</B></DT><DD>". check_output($node->log, 1) ."<P></DD>";
|
|
|
|
}
|
|
|
|
if ($node->pid) {
|
|
|
|
$output .= node_history(node_get_object("nid", $node->pid));
|
|
|
|
}
|
|
|
|
return $output;
|
2001-03-24 16:37:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function node_refers($node) {
|
2001-03-25 10:57:01 +00:00
|
|
|
print "under construction";
|
2001-03-24 16:37:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
$node = ($title ? node_get_object(title, check_input($title)) : node_get_object(nid, check_input($id)));
|
|
|
|
|
|
|
|
if ($node && node_visible($node)) {
|
|
|
|
switch ($op) {
|
|
|
|
case "history":
|
2001-03-25 10:57:01 +00:00
|
|
|
$theme->header();
|
|
|
|
$theme->box(t("History"), node_info($node) ."<DL>". node_history($node) ."</DL>");
|
|
|
|
$theme->footer();
|
|
|
|
break;
|
2001-03-24 16:37:44 +00:00
|
|
|
default:
|
2001-03-28 07:03:47 +00:00
|
|
|
if ($user->id) user_load($user->userid);
|
2001-03-25 10:57:01 +00:00
|
|
|
node_view($node, 1);
|
2001-03-24 16:37:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$theme->header();
|
|
|
|
$theme->box(t("Warning: not found"), t("The content or data you requested does not exist or is not accessible."));
|
|
|
|
$theme->footer();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|