diff options
Diffstat (limited to 'node.php')
-rw-r--r-- | node.php | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/node.php b/node.php new file mode 100644 index 000000000..c58274a50 --- /dev/null +++ b/node.php @@ -0,0 +1,37 @@ +<?php + +include "includes/common.inc"; + +function node_update($node) { +} + +function node_history($node) { +} + +function node_refers($node) { +} + +$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; + default: + node_view($node); + } +} +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(); +} + +?>
\ No newline at end of file |