2001-03-10 11:07:52 +00:00
|
|
|
<?php
|
2000-05-18 19:52:00 +00:00
|
|
|
|
2001-02-17 12:59:24 +00:00
|
|
|
include_once "includes/common.inc";
|
|
|
|
|
2001-06-17 20:35:48 +00:00
|
|
|
page_header();
|
|
|
|
|
2001-03-25 10:57:01 +00:00
|
|
|
$theme->header();
|
2000-06-16 13:45:57 +00:00
|
|
|
|
2001-06-29 22:08:57 +00:00
|
|
|
if (user_access("post content")) {
|
2001-03-25 10:57:01 +00:00
|
|
|
if ($mod) {
|
2001-05-05 13:57:29 +00:00
|
|
|
module_invoke($mod, "user");
|
2001-02-17 15:38:37 +00:00
|
|
|
}
|
2001-01-21 19:41:11 +00:00
|
|
|
else {
|
This a rather large commit that needs a lot of fine-tuning. If you
update, you'll break your site as you need switching from structure
to index.module: so this can be considered an intermediate commit.
If you upgrade, and you are welcome to, just create a collection
called "section" (for now) and assign your nodes some attributes
in the described format.
Feedback and bugreports are welcomed. Questions will be answered.
CHANGES:
- comment system:
+ when replying to a node (rather then to a comment), that
node is displayed above the reply form.
+ when replying to a comment (rather then to a node), that
comment is displayd above the reply form.
- removed structure.inc, removed structure.module.
- node.inc:
+ added 2 new node functions called 'node_attribute_edit()' and
'node_attribute_save()' used to 'hook in' any indexing system
including your home-brewed stuff if you'd want to. Currently,
index.module is the facto default index system.
See story.module for usage.
- book.module, story.module, poll.module, page.module, forum.module:
+ added preview functionality to administration section (via node
module).
+ removed all references to structure.inc (category, topic).
- moderate.module:
+ removed all references to structure.inc (category, topic).
- book.module, story.module, page.module, forum.module:
+ increased the sizes of some textareas.
- submit.php:
+ removed all references to structure.inc (category, topic).
- marvin.theme:
+ removed dead code: function story() was depricated.
- unconed.theme:
+ removed hardcoded references to drop.org.
- marvin.theme, unconed.theme, jeroen.theme, yaroon.theme, example.theme:
+ removed all references to structure.inc (category, topic).
TODO:
- file.module, trip_link.module:
+ update preview functionality:
see story.module for example.
+ remove references to 'cid' and 'tid', use 'attribute' instead:
see story.module for example.
- extend and build upon index.module as well as making it configurable
2001-06-10 15:01:20 +00:00
|
|
|
foreach (module_list() as $name) {
|
2001-07-07 10:32:17 +00:00
|
|
|
if (module_hook($name, "user")) $options .= "<option value=\"$name\">$name</option>";
|
2001-04-19 19:59:48 +00:00
|
|
|
}
|
2001-04-30 17:13:08 +00:00
|
|
|
|
2001-07-07 10:32:17 +00:00
|
|
|
$form .= form_item(t("Submission type"), "<SELECT NAME=\"mod\">$options</SELECT>");
|
2001-04-30 17:13:08 +00:00
|
|
|
$form .= form_submit(t("Next step"));
|
|
|
|
|
|
|
|
$output .= form("submit.php", $form, "get");
|
2001-01-26 13:38:46 +00:00
|
|
|
|
2001-03-25 10:57:01 +00:00
|
|
|
$theme->box("Submit", $output);
|
|
|
|
}
|
2000-05-18 19:52:00 +00:00
|
|
|
}
|
2001-03-25 10:57:01 +00:00
|
|
|
else {
|
2001-06-20 20:00:40 +00:00
|
|
|
$theme->box("Submit", message_access());
|
2000-05-18 19:52:00 +00:00
|
|
|
}
|
2001-04-30 17:13:08 +00:00
|
|
|
|
2001-03-25 10:57:01 +00:00
|
|
|
$theme->footer();
|
2000-05-18 19:52:00 +00:00
|
|
|
|
2001-06-17 20:35:48 +00:00
|
|
|
page_footer();
|
|
|
|
|
2000-11-03 07:57:28 +00:00
|
|
|
?>
|