From fead09a8de391e2419bdac150a8b63c0228d16a2 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 30 Apr 2001 17:13:08 +0000 Subject: Welp. Large commit ahead. CHANGES: - Added "read" and "write" permissions into drupal but removed it again because - when finished after 3 hours of work - it was considered nothing but added complexity that didn't buy us anything. :I (I'll explain this in detail on the mailing list, I guess.) - Added a very simple help.module to group all available documentation on a single page. - Fixed bug in node_control(), book.module: UnConeD forgot to global $user when updating the combobox code. - Removed static wishlist.module: in future, the wishlist can be maintained as a page in our collaborative book. - Revised most of settings.module: tidied up the code and the descriptions to accompany the settings and introduced a new "default maximum number of nodes to display on the main page" variable. - Revised most of comment.module: the administration interface looks better now, integrated node permissions, and -finally- made it possible to delete comments. - Polished on: + account.module + structure.module + locale.module + module.module + forum.module - Form-ified: + account.php + account.module + setting.module + cvs.module + submit.php + comment.module + forum.module + book.module + page.module + locale.module - Updated CHANGELOG INFO: - Designed a "generic tracker system with optional backends" on paper. The idea is to allow registered users to hot-list certain topics, individual nodes or threads (comments) and to "plug-in" output backends like - for instance - an e-mail digest. The design requires "intelligent blocks" though. TODO: - I want to tidy up the headline.module and backend.class as well as merge in headlineRSS10.module. Julian spent quite some time working on headline.module but I'm not sure what he changed and whether he'd contribute it back? --- modules/account.module | 71 +++++++++++++-------------- modules/book.module | 42 ++++++++-------- modules/book/book.module | 42 ++++++++-------- modules/comment.module | 73 +++++++--------------------- modules/comment/comment.module | 73 +++++++--------------------- modules/cvs.module | 5 +- modules/forum.module | 27 +++++------ modules/forum/forum.module | 27 +++++------ modules/locale.module | 37 +++++++------- modules/locale/locale.module | 37 +++++++------- modules/module.module | 2 +- modules/node.module | 10 ++-- modules/node/node.module | 10 ++-- modules/page.module | 28 ++++------- modules/page/page.module | 28 ++++------- modules/settings.module | 106 +++++++++++++---------------------------- modules/story.module | 41 ++++++---------- modules/story/story.module | 41 ++++++---------- modules/structure.module | 4 +- modules/wishlist.module | 64 ------------------------- 20 files changed, 257 insertions(+), 511 deletions(-) delete mode 100644 modules/wishlist.module (limited to 'modules') diff --git a/modules/account.module b/modules/account.module index 72687a0e0..6dbf54977 100644 --- a/modules/account.module +++ b/modules/account.module @@ -69,7 +69,7 @@ function account_ac() { $output .= "\n"; $output .= " \n"; while ($rule = db_fetch_object($result)) { - $output .= " \n"; + $output .= " \n"; } $output .= " \n"; $output .= " \n"; @@ -117,7 +117,7 @@ function account_blocks($id) { } function account_nodes($id) { - $result = db_query("SELECT * FROM node WHERE author = $id ORDER BY timestamp DESC"); + $result = db_query("SELECT * FROM node WHERE author = $id ORDER BY timestamp DESC LIMIT 30"); while ($node = db_fetch_object($result)) { $output .= "
  • nid\">$node->title ($node->type)
  • \n"; } @@ -125,7 +125,7 @@ function account_nodes($id) { } function account_comments($id) { - $result = db_query("SELECT * FROM comments WHERE author = '$id' ORDER BY timestamp DESC"); + $result = db_query("SELECT * FROM comments WHERE author = '$id' ORDER BY timestamp DESC LIMIT 30"); while ($comment = db_fetch_object($result)) { $output .= "
  • lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">$comment->subject
  • \n"; } @@ -158,33 +158,28 @@ function account_edit($name) { $access .= ""; } - $status = array(0 => "blocked", 1 => "not confirmed", 2 => "open"); + $status = array("blocked", "not confirmed", "open"); $result = db_query("SELECT * FROM users WHERE userid = '$name'"); if ($account = db_fetch_object($result)) { - foreach ($status as $key=>$value) { - $stat .= " \n"; - } - module_iterate("access"); - $output .= "\n"; - $output .= "ID:
    $account->id

    \n"; - $output .= "Username:
    ". check_output($account->userid) ."

    \n"; - $output .= "Status:

    \n"; - $output .= "Administrator access:

    \n"; - $output .= "Real name:
    name). "\">

    \n"; - $output .= "Real e-mail address:
    real_email) ."\">

    \n"; - $output .= "Fake e-mail address:
    fake_email) ."\">

    \n"; - $output .= "URL of homepage:
    url) ."\">

    \n"; - $output .= "Bio information:

    \n"; - $output .= "Signature:

    \n"; - $output .= "userid\">\n"; - $output .= "\n"; - $output .= "\n"; - $output .= "\n"; - return $output; + $form .= form_item("ID", $account->id); + $form .= form_item(t("Username"), check_output($account->userid)); + $form .= form_select(t("Status"), "status", $account->status, array("blocked", "not confirmed", "open")); + $form .= form_item(t("Administrator access"), ""); + $form .= form_textfield(t("Real name"), "name", $account->name, 30, 55); + $form .= form_textfield(t("Real e-mail address"), "real_email", $account->real_email, 30, 55); + $form .= form_textfield(t("Fake e-mail address"), "fake_email", $account->fake_email, 30, 55); + $form .= form_textfield(t("Homepage"), "url", $account->url, 30, 55); + $form .= form_textarea(t("Bio"), "bio", $account->bio, 35, 5); + $form .= form_textarea(t("Signature"), "signature", $account->signature, 35, 5); + $form .= form_hidden("userid", $account->userid); + $form .= form_submit("View account"); + $form .= form_submit("Save account"); + + return form("admin.php?mod=account", $form); } } @@ -194,7 +189,10 @@ function account_view($name) { $result = db_query("SELECT * FROM users WHERE userid = '$name'"); if ($account = db_fetch_object($result)) { - $output .= "
    \n"; + $form .= form_hidden("userid", $account->userid); + $form .= form_submit("Edit account"); + $form .= form_submit("Delete account"); + $output .= "

    masktypereasonoparations
    $rule->mask$rule->type". check_output($rule->reason) ."id\">delete rule
    $rule->mask$rule->type". check_output($rule->reason) ."id\">delete rule
    Use regular expressions (regexs) to specify the mask pattern.
    \n"; $output .= " \n"; $output .= " \n"; @@ -203,19 +201,19 @@ function account_view($name) { $output .= " \n"; $output .= " \n"; $output .= " \n"; - $output .= " \n"; + $output .= " \n"; $output .= " \n"; $output .= " \n"; - $output .= " \n"; - $output .= " \n"; + $output .= " \n"; + $output .= " \n"; $output .= " \n"; $output .= " \n"; $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; + $output .= " \n"; + $output .= " \n"; + $output .= " \n"; $output .= "
    ID:$account->id
    Username:$account->userid
    Real name:". check_output($account->name) ."
    Real e-mail address:". format_email($account->real_email) ."
    Fake e-mail address:". check_output($account->fake_email) ."
    URL of homepage:". format_url($account->url) ."
    Homepage:". format_url($account->url) ."
    Last access:". format_date($account->last_access) ." from ". check_output($account->last_host) ."
    User rating:". check_output($account->rating) ."
    Bio information:". check_output($account->bio) ."
    Signature:". check_output($account->signature) ."
    Bio:". check_output($account->bio) ."
    Signature:". check_output($account->signature) ."
    Theme:". check_output($account->theme) ."
    Timezone:". check_output($account->timezone / 3600) ."
    Selected blocks:". check_output(account_blocks($account->id)) ."
    Submitted nodes:". check_output(account_nodes($account->id)) ."
    Submitted comments:". check_output(account_comments($account->id)) ."
    userid\">
    Recent nodes:". check_output(account_nodes($account->id)) ."
    Recent comments:". check_output(account_comments($account->id)) ."
    ". form("admin.php?mod=account", $form) ."
    \n"; - $output .= "\n"; + return $output; } } @@ -244,13 +242,12 @@ function account_admin() { print status(account_ac_check($edit)); print account_ac(); break; - case "delete rule": + case "delete": print status(account_ac_del($id)); print account_ac(); break; case "Delete account": - case "delete": - print status(account_delete(check_input($name))); + print status(account_delete($edit[userid])); print account_overview(account_query($type)); break; case "Edit account": @@ -268,8 +265,8 @@ function account_admin() { print search_data($keys, $mod); break; case "Save account": - print status(account_edit_save(check_input($name), $edit)); - print account_view(check_input($name)); + print status(account_edit_save(check_input($edit[userid]), $edit)); + print account_view(check_input($edit[userid])); break; case "View account": case "view": diff --git a/modules/book.module b/modules/book.module index 70dcd6da4..78d4e5680 100644 --- a/modules/book.module +++ b/modules/book.module @@ -94,47 +94,43 @@ function book_toc($parent = 0, $indent = "", $toc = array()) { function book_form($edit = array()) { global $allowed_html, $PHP_SELF, $REQUEST_URI, $user; - $output .= "
    \n"; - - $output .= form_item(t("Author"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); - $output .= form_hidden(userid, $edit[userid]); - $output .= form_textfield(t("Subject"), "title", $edit[title], 50, 128); - $output .= form_item(t("Category"), category_form_select("book", $edit)); + $form .= form_item(t("Author"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); + $form .= form_hidden(userid, $edit[userid]); + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= form_item(t("Category"), category_form_select("book", $edit)); if ($edit[pid]) { $node = node_get_object("nid", $edit[pid]); - $output .= form_item(t("Parent"), "id\">". check_output($node->title) ."", t("The parent subject or category the page belongs in.")); - $output .= form_hidden("parent". $edit[parent]); + $form .= form_item(t("Parent"), "id\">". check_output($node->title) ."", t("The parent subject or category the page belongs in.")); + $form .= form_hidden("parent". $edit[parent]); } else { - $output .= form_select(t("Parent"), "parent", user_access($user, "book") ? array_merge(array(0 => " "), book_toc()) : book_toc(), $edit[parent], t("The parent subject or category the page belongs in.")); + $form .= form_select(t("Parent"), "parent", $edit[parent], user_access($user, "book") ? array_merge(array(0 => " "), book_toc()) : book_toc(), t("The parent subject or category the page belongs in.")); } - $output .= form_textarea(t("Content"), "body", $edit[body], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); - $output .= form_textarea(t("Log message"), "log", $edit[log], 50, 5, t("An explanation of the additions or updates being made to help the group understand your motivations.")); + $form .= form_textarea(t("Content"), "body", $edit[body], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); + $form .= form_textarea(t("Log message"), "log", $edit[log], 50, 5, t("An explanation of the additions or updates being made to help the group understand your motivations.")); if (user_access($user, "book")) { - $output .= form_select(t("Weight"), "weight", array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30), $edit[weight], t("The heavier nodes will sink and the lighter nodes will be positioned nearer the top.")); + $form .= form_select(t("Weight"), "weight", $edit[weight], array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30), t("The heavier nodes will sink and the lighter nodes will be positioned nearer the top.")); } + $form .= form_hidden("pid", $edit[pid]); + $form .= form_hidden("nid", $edit[nid]); + if (!$edit) { - $output .= form_submit(t("Preview")); + $form .= form_submit(t("Preview")); } else if (!$edit[title]) { - $output .= "". t("Warning: you did not supply a title.") ."

    \n"; - $output .= form_submit(t("Preview")); + $form .= "". t("Warning: you did not supply a title.") ."

    \n"; + $form .= form_submit(t("Preview")); } else { - $output .= form_submit(t("Preview")); - $output .= form_submit(t("Submit")); + $form .= form_submit(t("Preview")); + $form .= form_submit(t("Submit")); } - $output .= form_hidden("pid", $edit[pid]); - $output .= form_hidden("nid", $edit[nid]); - - $output .= "

    \n"; - - return $output; + return form($REQUEST_URI, $form); } function book_save($edit) { diff --git a/modules/book/book.module b/modules/book/book.module index 70dcd6da4..78d4e5680 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -94,47 +94,43 @@ function book_toc($parent = 0, $indent = "", $toc = array()) { function book_form($edit = array()) { global $allowed_html, $PHP_SELF, $REQUEST_URI, $user; - $output .= "
    \n"; - - $output .= form_item(t("Author"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); - $output .= form_hidden(userid, $edit[userid]); - $output .= form_textfield(t("Subject"), "title", $edit[title], 50, 128); - $output .= form_item(t("Category"), category_form_select("book", $edit)); + $form .= form_item(t("Author"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); + $form .= form_hidden(userid, $edit[userid]); + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= form_item(t("Category"), category_form_select("book", $edit)); if ($edit[pid]) { $node = node_get_object("nid", $edit[pid]); - $output .= form_item(t("Parent"), "id\">". check_output($node->title) ."", t("The parent subject or category the page belongs in.")); - $output .= form_hidden("parent". $edit[parent]); + $form .= form_item(t("Parent"), "id\">". check_output($node->title) ."", t("The parent subject or category the page belongs in.")); + $form .= form_hidden("parent". $edit[parent]); } else { - $output .= form_select(t("Parent"), "parent", user_access($user, "book") ? array_merge(array(0 => " "), book_toc()) : book_toc(), $edit[parent], t("The parent subject or category the page belongs in.")); + $form .= form_select(t("Parent"), "parent", $edit[parent], user_access($user, "book") ? array_merge(array(0 => " "), book_toc()) : book_toc(), t("The parent subject or category the page belongs in.")); } - $output .= form_textarea(t("Content"), "body", $edit[body], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); - $output .= form_textarea(t("Log message"), "log", $edit[log], 50, 5, t("An explanation of the additions or updates being made to help the group understand your motivations.")); + $form .= form_textarea(t("Content"), "body", $edit[body], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); + $form .= form_textarea(t("Log message"), "log", $edit[log], 50, 5, t("An explanation of the additions or updates being made to help the group understand your motivations.")); if (user_access($user, "book")) { - $output .= form_select(t("Weight"), "weight", array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30), $edit[weight], t("The heavier nodes will sink and the lighter nodes will be positioned nearer the top.")); + $form .= form_select(t("Weight"), "weight", $edit[weight], array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30), t("The heavier nodes will sink and the lighter nodes will be positioned nearer the top.")); } + $form .= form_hidden("pid", $edit[pid]); + $form .= form_hidden("nid", $edit[nid]); + if (!$edit) { - $output .= form_submit(t("Preview")); + $form .= form_submit(t("Preview")); } else if (!$edit[title]) { - $output .= "". t("Warning: you did not supply a title.") ."

    \n"; - $output .= form_submit(t("Preview")); + $form .= "". t("Warning: you did not supply a title.") ."

    \n"; + $form .= form_submit(t("Preview")); } else { - $output .= form_submit(t("Preview")); - $output .= form_submit(t("Submit")); + $form .= form_submit(t("Preview")); + $form .= form_submit(t("Submit")); } - $output .= form_hidden("pid", $edit[pid]); - $output .= form_hidden("nid", $edit[nid]); - - $output .= "

    \n"; - - return $output; + return form($REQUEST_URI, $form); } function book_save($edit) { diff --git a/modules/comment.module b/modules/comment.module index cee88f998..5c2f9005f 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -15,90 +15,53 @@ function comment_find($keys) { function comment_edit($id) { $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.cid = '$id'"); - $comment = db_fetch_object($result); - $output .= "
    \n"; - - $output .= "Author:
    \n"; - $output .= format_username($comment->userid) ."

    \n"; - - $output .= "Subject:
    \n"; - $output .= "subject) ."\">

    \n"; + $form .= form_item(t("Author"), format_username($comment->userid)); + $form .= form_textfield(t("Subject"), "subject", $comment->subject, 50, 128); + $form .= form_textarea(t("Comment"), "comment", $comment->comment, 50, 10); + $form .= form_submit("Save comment"); - $output .= "Comment:
    \n"; - $output .= "

    \n"; - - $output .= "\n"; - $output .= "

    \n"; - - print $output; + return form("admin.php?mod=comment&id=$id", $form); } -function comment_save($id, $subject, $comment) { - db_query("UPDATE comments SET subject = '$subject', comment = '$comment' WHERE cid = '$id'"); - watchdog("message", "comment: modified '$subject'"); +function comment_save($id, $edit) { + db_query("UPDATE comments SET subject = '". check_input($edit[subject]) ."', comment = '". check_input($edit[comment]) ."' WHERE cid = '$id'"); + watchdog("message", "comment: modified '$edit[subject]'"); } -function comment_display($order = "date") { - // Initialize variables: - $fields = array("author" => "author", "date" => "timestamp DESC", "subject" => "subject"); - - // Perform SQL query: - $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON u.id = c.author ORDER BY c.$fields[$order] LIMIT 50"); +function comment_display() { + $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON u.id = c.author ORDER BY timestamp DESC LIMIT 50"); - // Display comments: $output .= "\n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - + $output .= " \n"; while ($comment = db_fetch_object($result)) { - $output .= " \n"; + $output .= " \n"; } - $output .= "
    \n"; - $output .= "
    \n"; - $output .= " \n"; - $output .= " \n"; - $output .= "
    \n"; - $output .= "
    subjectauthoroperations
    subjectauthordateoperations
    lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."". format_username($comment->userid) ."cid\">edit
    lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."". format_username($comment->userid) ."". format_date($comment->timestamp, "small") ."cid\">edit commentcid\">delete comment
    \n"; - print $output; + return $output; } function comment_admin() { - global $op, $id, $mod, $keys, $subject, $comment, $order; + global $op, $id, $edit, $mod, $keys, $order; print "overview | search comment
    \n"; switch ($op) { case "edit": - comment_edit($id); + print comment_edit($id); break; case "search": print search_form($keys); print search_data($keys, $mod); break; case "Save comment": - comment_save(check_input($id), check_input($subject), check_input($comment)); - comment_display(); - break; - case "Update": - comment_display(check_input($order)); + print status(comment_save(check_input($id), $edit)); + print comment_display(); break; default: - comment_display(); + print comment_display(); } } diff --git a/modules/comment/comment.module b/modules/comment/comment.module index cee88f998..5c2f9005f 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -15,90 +15,53 @@ function comment_find($keys) { function comment_edit($id) { $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON c.author = u.id WHERE c.cid = '$id'"); - $comment = db_fetch_object($result); - $output .= "
    \n"; - - $output .= "Author:
    \n"; - $output .= format_username($comment->userid) ."

    \n"; - - $output .= "Subject:
    \n"; - $output .= "subject) ."\">

    \n"; + $form .= form_item(t("Author"), format_username($comment->userid)); + $form .= form_textfield(t("Subject"), "subject", $comment->subject, 50, 128); + $form .= form_textarea(t("Comment"), "comment", $comment->comment, 50, 10); + $form .= form_submit("Save comment"); - $output .= "Comment:
    \n"; - $output .= "

    \n"; - - $output .= "\n"; - $output .= "

    \n"; - - print $output; + return form("admin.php?mod=comment&id=$id", $form); } -function comment_save($id, $subject, $comment) { - db_query("UPDATE comments SET subject = '$subject', comment = '$comment' WHERE cid = '$id'"); - watchdog("message", "comment: modified '$subject'"); +function comment_save($id, $edit) { + db_query("UPDATE comments SET subject = '". check_input($edit[subject]) ."', comment = '". check_input($edit[comment]) ."' WHERE cid = '$id'"); + watchdog("message", "comment: modified '$edit[subject]'"); } -function comment_display($order = "date") { - // Initialize variables: - $fields = array("author" => "author", "date" => "timestamp DESC", "subject" => "subject"); - - // Perform SQL query: - $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON u.id = c.author ORDER BY c.$fields[$order] LIMIT 50"); +function comment_display() { + $result = db_query("SELECT c.*, u.userid FROM comments c LEFT JOIN users u ON u.id = c.author ORDER BY timestamp DESC LIMIT 50"); - // Display comments: $output .= "\n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - + $output .= " \n"; while ($comment = db_fetch_object($result)) { - $output .= " \n"; + $output .= " \n"; } - $output .= "
    \n"; - $output .= "
    \n"; - $output .= " \n"; - $output .= " \n"; - $output .= "
    \n"; - $output .= "
    subjectauthoroperations
    subjectauthordateoperations
    lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."". format_username($comment->userid) ."cid\">edit
    lid&cid=$comment->cid&pid=$comment->pid#$comment->cid\">". check_output($comment->subject) ."". format_username($comment->userid) ."". format_date($comment->timestamp, "small") ."cid\">edit commentcid\">delete comment
    \n"; - print $output; + return $output; } function comment_admin() { - global $op, $id, $mod, $keys, $subject, $comment, $order; + global $op, $id, $edit, $mod, $keys, $order; print "overview | search comment
    \n"; switch ($op) { case "edit": - comment_edit($id); + print comment_edit($id); break; case "search": print search_form($keys); print search_data($keys, $mod); break; case "Save comment": - comment_save(check_input($id), check_input($subject), check_input($comment)); - comment_display(); - break; - case "Update": - comment_display(check_input($order)); + print status(comment_save(check_input($id), $edit)); + print comment_display(); break; default: - comment_display(); + print comment_display(); } } diff --git a/modules/cvs.module b/modules/cvs.module index 5deee6d53..701a377ee 100644 --- a/modules/cvs.module +++ b/modules/cvs.module @@ -17,10 +17,7 @@ function cvs_cron() { } function cvs_conf() { - $output .= "Recepient for log messages:
    \n"; - $output .= "
    \n"; - $output .= "The e-mail address to mail the CVS log messages to. Multiple recipients can be specified by putting a comma between each address.

    \n"; - return $output; + return form_textfield(t("CVS digest recepient"), "cvs_mail", variable_get(cvs_mail, "root@localhost"), 30, 55, t("The e-mail address to mail the CVS log messages to. Multiple recipients can be specified by putting a comma between each address.")); } function cvs_page() { diff --git a/modules/forum.module b/modules/forum.module index e5500f7a5..a67c31434 100644 --- a/modules/forum.module +++ b/modules/forum.module @@ -14,25 +14,22 @@ function forum_status() { return array(dumped, posted); } +function forum_view($node) { + global $theme; + $output .= "

    Forum / nid\">". check_output($node->title) .":

    ". check_output($node->body) ."

    "; + $theme->box(t("Discussion forum"), $output); +} + function forum_form($edit = array()) { global $format; - $output .= "
    \n"; - - $output .= "Subject:
    \n"; - $output .= "

    \n"; - - $output .= structure_form("forum", $edit); - - $output .= "Body:
    \n"; - $output .= "

    \n"; - - $output .= "\n"; - - $output .= "\n"; - $output .= "

    \n"; + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("forum", $edit); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 10); + $form .= form_hidden("nid", $edit[nid]); + $form .= form_submit("Save forum"); - return $output; + return form("admin.php?mod=forum", $form); } function forum_save($edit) { diff --git a/modules/forum/forum.module b/modules/forum/forum.module index e5500f7a5..a67c31434 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -14,25 +14,22 @@ function forum_status() { return array(dumped, posted); } +function forum_view($node) { + global $theme; + $output .= "

    Forum / nid\">". check_output($node->title) .":

    ". check_output($node->body) ."

    "; + $theme->box(t("Discussion forum"), $output); +} + function forum_form($edit = array()) { global $format; - $output .= "
    \n"; - - $output .= "Subject:
    \n"; - $output .= "

    \n"; - - $output .= structure_form("forum", $edit); - - $output .= "Body:
    \n"; - $output .= "

    \n"; - - $output .= "\n"; - - $output .= "\n"; - $output .= "

    \n"; + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("forum", $edit); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 10); + $form .= form_hidden("nid", $edit[nid]); + $form .= form_submit("Save forum"); - return $output; + return form("admin.php?mod=forum", $form); } function forum_save($edit) { diff --git a/modules/locale.module b/modules/locale.module index 5fd20b48e..1ddde9a7c 100644 --- a/modules/locale.module +++ b/modules/locale.module @@ -39,21 +39,16 @@ function locale_save($id, $edit) { } function locale_edit($id) { - global $languages; + global $languages, $REQUEST_URI; + $result = db_query("SELECT * FROM locales WHERE id = '$id'"); if ($translation = db_fetch_object($result)) { - $output .= "
    \n"; - $output .= "Original string:
    \n"; - $output .= "
    ". wordwrap(check_output($translation->string)) ."

    "; - foreach ($languages as $code=>$language) { - $output .= "$language:
    "; - $output .= (strlen($translation->string) > 30) ? "

    " : "$code) ."\">

    "; - } - $output .= "\n"; - $output .= "\n"; - $output .= "

    \n"; - - print $output; + $form .= form_item(t("Original text"), "
    ". wordwrap(check_output($translation->string)) ."
    "); + foreach ($languages as $code=>$language) $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); + $form .= form_hidden("id", $id); + $form .= form_submit("Save translations"); + + return form($REQUEST_URI, $form); } } @@ -67,6 +62,7 @@ function locale_languages($translation) { function locale_overview() { $result = db_query("SELECT * FROM locales ORDER BY string"); + $output .= "\n"; $output .= " \n"; while ($locale = db_fetch_object($result)) { @@ -74,7 +70,8 @@ function locale_overview() { $output .= " "; } $output .= "
    stringlanguagesoperations
    ". check_output($locale->string) ."
    $locale->location
    $languagesid\">editid\">delete
    \n"; - print $output; + + return $output; } function locale_admin() { @@ -84,20 +81,20 @@ function locale_admin() { switch ($op) { case "delete": - locale_delete(check_input($id)); - locale_overview(); + print status(locale_delete(check_input($id))); + print locale_overview(); break; case "help": - locale_help(); + print locale_help(); break; case "edit": - locale_edit(check_input($id)); + print locale_edit(check_input($id)); break; case "Save translations": - locale_save(check_input($id), $edit); + print locale_save(check_input($id), $edit); // fall through default: - locale_overview(); + print locale_overview(); } } diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 5fd20b48e..1ddde9a7c 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -39,21 +39,16 @@ function locale_save($id, $edit) { } function locale_edit($id) { - global $languages; + global $languages, $REQUEST_URI; + $result = db_query("SELECT * FROM locales WHERE id = '$id'"); if ($translation = db_fetch_object($result)) { - $output .= "
    \n"; - $output .= "Original string:
    \n"; - $output .= "
    ". wordwrap(check_output($translation->string)) ."

    "; - foreach ($languages as $code=>$language) { - $output .= "$language:
    "; - $output .= (strlen($translation->string) > 30) ? "

    " : "$code) ."\">

    "; - } - $output .= "\n"; - $output .= "\n"; - $output .= "

    \n"; - - print $output; + $form .= form_item(t("Original text"), "
    ". wordwrap(check_output($translation->string)) ."
    "); + foreach ($languages as $code=>$language) $form .= (strlen($translation->string) > 30) ? form_textarea($language, $code, $translation->$code, 50, 10) : form_textfield($language, $code, $translation->$code, 50, 128); + $form .= form_hidden("id", $id); + $form .= form_submit("Save translations"); + + return form($REQUEST_URI, $form); } } @@ -67,6 +62,7 @@ function locale_languages($translation) { function locale_overview() { $result = db_query("SELECT * FROM locales ORDER BY string"); + $output .= "\n"; $output .= " \n"; while ($locale = db_fetch_object($result)) { @@ -74,7 +70,8 @@ function locale_overview() { $output .= " "; } $output .= "
    stringlanguagesoperations
    ". check_output($locale->string) ."
    $locale->location
    $languagesid\">editid\">delete
    \n"; - print $output; + + return $output; } function locale_admin() { @@ -84,20 +81,20 @@ function locale_admin() { switch ($op) { case "delete": - locale_delete(check_input($id)); - locale_overview(); + print status(locale_delete(check_input($id))); + print locale_overview(); break; case "help": - locale_help(); + print locale_help(); break; case "edit": - locale_edit(check_input($id)); + print locale_edit(check_input($id)); break; case "Save translations": - locale_save(check_input($id), $edit); + print locale_save(check_input($id), $edit); // fall through default: - locale_overview(); + print locale_overview(); } } diff --git a/modules/module.module b/modules/module.module index 2ae3edb81..e4140ce22 100644 --- a/modules/module.module +++ b/modules/module.module @@ -5,7 +5,7 @@ $module = array("help" => "module_help", function module_help() { ?> - The module administration page provide you a list of all available modules. Moreover, it allows you to "rehash" modules. Whenever you install a new module or when an existing module has been changed or updated, it requires "rehasing": when you rehash a module, the module is registered to the engine and properly initialized. + The module administration page provide you a list of all available modules. Moreover, it allows you to "rehash" modules. Whenever you install a new module or when an existing module has been changed or updated, it requires "rehashing": when you rehash a module, the module is registered to the engine and properly initialized. nid\" METHOD=\"post\">\n"; $output .= form_item("Title", check_output($node->title)); - $output .= form_select("Author", "author", array($node->author => $node->userid, $user->id => $user->userid), $node->author); - $output .= form_select("Status", "status", node_status($node), $node->status); - $output .= form_select("Comment", "comment", node_comment_status(), $node->comment); - $output .= form_select("Promote", "promote", node_promote_status(), $node->promote); - $output .= form_select("Date", "timestamp", array($node->timestamp => format_date($node->timestamp) ." (original)", time() => format_date(time()) ." (current)"), $node->timestamp); + $output .= form_select("Author", "author", $node->author, array($node->author => $node->userid, $user->id => $user->userid)); + $output .= form_select("Status", "status", $node->status, node_status($node)); + $output .= form_select("Comment", "comment", $node->comment, node_comment_status()); + $output .= form_select("Promote", "promote", $node->promote, node_promote_status()); + $output .= form_select("Date", "timestamp", $node->timestamp, array($node->timestamp => format_date($node->timestamp) ." (original)", time() => format_date(time()) ." (current)")); $output .= form_hidden("nid", $node->nid); $output .= form_submit("View node"); $output .= form_submit("Save node"); diff --git a/modules/node/node.module b/modules/node/node.module index af5292fb4..d88f852d7 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -44,11 +44,11 @@ function node_admin_edit($id) { $output .= "
    nid\" METHOD=\"post\">\n"; $output .= form_item("Title", check_output($node->title)); - $output .= form_select("Author", "author", array($node->author => $node->userid, $user->id => $user->userid), $node->author); - $output .= form_select("Status", "status", node_status($node), $node->status); - $output .= form_select("Comment", "comment", node_comment_status(), $node->comment); - $output .= form_select("Promote", "promote", node_promote_status(), $node->promote); - $output .= form_select("Date", "timestamp", array($node->timestamp => format_date($node->timestamp) ." (original)", time() => format_date(time()) ." (current)"), $node->timestamp); + $output .= form_select("Author", "author", $node->author, array($node->author => $node->userid, $user->id => $user->userid)); + $output .= form_select("Status", "status", $node->status, node_status($node)); + $output .= form_select("Comment", "comment", $node->comment, node_comment_status()); + $output .= form_select("Promote", "promote", $node->promote, node_promote_status()); + $output .= form_select("Date", "timestamp", $node->timestamp, array($node->timestamp => format_date($node->timestamp) ." (original)", time() => format_date(time()) ." (current)")); $output .= form_hidden("nid", $node->nid); $output .= form_submit("View node"); $output .= form_submit("Save node"); diff --git a/modules/page.module b/modules/page.module index 0e188fe19..c6a2fbb86 100644 --- a/modules/page.module +++ b/modules/page.module @@ -31,28 +31,16 @@ function page_status() { } function page_form($edit = array()) { - global $format; + global $format, $REQUEST_URI; - $output .= "\n"; + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("page", $edit); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 10); + $form .= form_select(t("Type"), "format", $edit[format], $format); + $form .= form_hidden("nid", $edit[nid]); + $form .= form_submit("Save page"); - $output .= "Subject:
    \n"; - $output .= "

    \n"; - - $output .= structure_form("page", $edit); - - $output .= "Body:
    \n"; - $output .= "

    \n"; - - $output .= "Type:
    \n"; - foreach ($format as $key=>$value) $options .= "\n"; - $output .= "

    \n"; - - $output .= "\n"; - - $output .= "\n"; - $output .= "

    \n"; - - return $output; + return form($REQUEST_URI, $form); } function page_save($edit) { diff --git a/modules/page/page.module b/modules/page/page.module index 0e188fe19..c6a2fbb86 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -31,28 +31,16 @@ function page_status() { } function page_form($edit = array()) { - global $format; + global $format, $REQUEST_URI; - $output .= "
    \n"; + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("page", $edit); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 10); + $form .= form_select(t("Type"), "format", $edit[format], $format); + $form .= form_hidden("nid", $edit[nid]); + $form .= form_submit("Save page"); - $output .= "Subject:
    \n"; - $output .= "

    \n"; - - $output .= structure_form("page", $edit); - - $output .= "Body:
    \n"; - $output .= "

    \n"; - - $output .= "Type:
    \n"; - foreach ($format as $key=>$value) $options .= "\n"; - $output .= "

    \n"; - - $output .= "\n"; - - $output .= "\n"; - $output .= "

    \n"; - - return $output; + return form($REQUEST_URI, $form); } function page_save($edit) { diff --git a/modules/settings.module b/modules/settings.module index 8fdd27276..6952bbae6 100644 --- a/modules/settings.module +++ b/modules/settings.module @@ -5,85 +5,47 @@ $module = array("admin" => "settings_admin"); function settings_conf() { global $conf, $cmodes, $corder, $themes; + // general settings: $output .= "

    General settings

    \n"; - - $output .= "Sitename:
    \n"; - $output .= "
    \n"; - $output .= "The name of this website.

    \n"; - - $output .= "E-mail address:
    \n"; - $output .= "
    \n"; - $output .= "A valid e-mail address for this website, used by the auto-mailer to when creating new user accounts.

    \n"; - - $output .= "URL of site:
    \n"; - $output .= "
    \n"; - $output .= "The fully qualified URL of this website: starts with \"http://\" and ends with a trailing slash!

    \n"; - - $output .= "Footer message:
    \n"; - $output .= "
    \n"; - $output .= "This text will be displayed at the bottom of each page. Useful to add a copyright notice to your pages.

    \n"; - - $output .= "Anonymous user:
    \n"; - $output .= "
    \n"; - $output .= "The name displayed for anonymous users.

    \n"; - + $output .= form_textfield(t("Name"), "site_name", variable_get(site_name, "drupal"), 30, 55, t("The name of this website.")); + $output .= form_textfield(t("Slogan"), "site_slogan", variable_get(site_slogan, ""), 30, 55, t("The slogan of this website")); + $output .= form_textfield(t("URL"), "site_url", variable_get(site_url, "http://drupal/"), 30, 55, t("The fully qualified URL of this website: starts with \"http://\" and ends with a trailing slash!")); + $output .= form_textfield(t("E-mail address"), "site_mail", variable_get(site_mail, "root@localhost"), 30, 55, t("A valid e-mail address for this website, used by the auto-mailer to create new user accounts.")); + $output .= form_textarea(t("Footer message"), "site_footer", variable_get(site_footer, ""), 55, 3, t("This text will be displayed at the bottom of each page. Useful for adding a copyright notice to your pages.")); + $output .= form_textfield(t("Anonymous user"), "anonymous", variable_get(anonymous, "Anonymous"), 30, 55, t("The name used to indicate anonymous users.")); $output .= "


    \n"; - $output .= "

    Comment settings

    \n"; - - $output .= "Default display mode:
    \n"; - foreach ($cmodes as $key=>$value) $options1 .= "\n"; - $output .= "
    \n"; - $output .= "The default mode in which comments are displayed.

    \n"; - - $output .= "Default display order:
    \n"; - foreach ($corder as $key=>$value) $options2 .= "\n"; - $output .= "
    \n"; - $output .= "The default order in which comments are displayed.

    \n"; - $output .= "Default threshold:
    \n"; - for ($i = -1; $i < 6; $i++) $options3 .= " "; - $output .= "
    \n"; - $output .= "The default threshold used to filter comments.

    \n"; + // node settings: + $output .= "

    Node settings

    \n"; + $output .= form_select(t("Default number of nodes to display"), "default_nodes_main", variable_get(default_nodes_main, 10), array(10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30), t("The default maximum number of nodes to display on the main page.")); + $output .= "
    \n"; + // comment settings: + $output .= "

    Comment settings

    \n"; + $output .= form_select(t("Default display mode"), "default_comment_mode", $conf[default_comment_mode], $cmodes, t("The default mode in which comments are displayed.")); + $output .= form_select(t("Default display order"), "default_comment_order", $conf[default_comment_order], $corder, t("The default order in which comments are displayed.")); + for ($count = -1; $count < 6; $count++) $threshold[$count] = t("Filter") ." - $count"; + $output .= form_select(t("Default filter threshold"), "default_comment_threshold", $conf[default_comment_threshold], $threshold, t("The default threshold used to filter comments.")); $output .= "
    \n"; - $output .= "

    Submission settings

    \n"; + // submission settings: + $output .= "

    Submission settings

    \n"; $size = array(1000 => "1.000 characters", 5000 => "5.000 characters", 10000 => "10.000 characters", 15000 => "15.000 characters", 30.000 => "30.000 characters", 50000 => "50.000 characters", 100000 => "100.000 characters"); - - $output .= "Maximum submission size:
    \n"; - foreach ($size as $key=>$value) $options4 .= " \n"; - $output .= "
    \n"; - $output .= "The maximum number of characters someone can enter in a form.

    \n"; - + $output .= form_select(t("Maximum submission size"), "max_input_size", variable_get(max_input_size, 10000), $size, t("The maximum number of characters someone can enter in a form.")); $rate = array(1 => "Maximum 1 every second", 5 => "Maximum 1 every 5 seconds", 15 => "Maximum 1 every 15 seconds", 30 => "Maximum 1 every 30 seconds", 60 => "Maximum 1 every minute", 300 => "Maximum 1 every 5 minutes", 900 => "Maximum 1 every 15 minutes", 1800 => "Maximum 1 every 30 minutes", 3600 => "Maximum 1 every hour", 21600 => "Maximum 1 every 6 hour", 43200 => "Maximum 1 every 12 hour"); - - $output .= "Maximum node rate:
    \n"; - foreach ($rate as $key=>$value) $options5 .= " \n"; - $output .= "
    \n"; - $output .= "The maximum submission rate for nodes. Its purpose is to stop potential abuse or denial of service attacks.

    \n"; - - $output .= "Maximum comment rate:
    \n"; - foreach ($rate as $key=>$value) $options6 .= " \n"; - $output .= "$options7
    \n"; - $output .= "The default theme displayed for anonymous users.

    \n"; + // theme settings: + $output .= "

    Theme settings

    \n"; + foreach ($themes as $key=>$value) $options .= "\n"; + $output .= form_item(t("Default theme"), "", t("The default theme as seen by new visitors and anonymous users.")); $output .= "
    \n"; + // development settings: $output .= "

    Development settings

    \n"; - - $output .= "Display timings:
    \n"; - foreach (array("Disabled", "Enabled") as $key=>$value) $options8 .= "\n"; - $output .= "
    \n"; - $output .= "Display the time it took to generate a page: for drupal development only.

    \n"; - + $output .= form_select(t("Display timings"), "dev_timing", variable_get(dev_timing, 0), array("Disabled", "Enabled"), t("Display the time it took to generate a page: for drupal development only.")); $output .= "


    \n"; return $output; @@ -119,14 +81,12 @@ function settings_overview() { module_iterate("settings_module"); - $output .= "
    \n"; - $output .= settings_conf(); - $output .= $settings; - $output .= "\n"; - $output .= "\n"; - $output .= "
    \n"; + $form .= settings_conf(); + $form .= $settings; + $form .= form_submit("Save settings"); + $form .= form_submit("Reset to defaults"); - return $output; + return form("admin.php?mod=settings", $form); } function settings_admin() { diff --git a/modules/story.module b/modules/story.module index 2a14200fc..665f221b1 100644 --- a/modules/story.module +++ b/modules/story.module @@ -55,48 +55,35 @@ function story_view($node, $main = 0) { function story_form($edit = array()) { global $allowed_html, $REQUEST_URI, $user; - $output .= "
    \n"; - - $output .= "". t("Your name") .":
    \n"; - $output .= "\n"; - $output .= format_username(($edit[userid] ? $edit[userid] : $user->userid)) ."

    "; - - $output .= "". t("Subject") .":
    \n"; - $output .= "

    \n"; - - $output .= structure_form("story", $edit); - - $output .= "". t("Abstract") .":
    \n"; - $output .= "
    \n"; - $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

    \n"; - - $output .= "". t("Body") .":
    \n"; - $output .= "
    \n"; - $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

    \n"; + $form .= form_item(t("Your name"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); + $form .= form_hidden("userid", $edit[userid]); + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("story", $edit); + $form .= form_textarea(t("Abstract"), "abstract", $edit[abstract], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 15, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); if (user_access($user, "story")) { - $output .= "\n"; - $output .= "\n"; + $form .= form_hidden("timestamp", $edit[timestamp]); + $form .= form_hidden("nid", $edit[nid]); } if (!$edit) { - $output .= "\n"; + $form .= form_submit(t("Preview")); } else if (!$edit[title]) { $output .= "". t("Warning: you did not supply a subject.") ."

    \n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); } else if (!$edit[abstract]) { $output .= "". t("Warning: you did not supply an abstract.") ."

    \n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); } else { - $output .= "\n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); + $form .= form_submit(t("Submit")); } - $output .= "

    \n"; - return $output; + return form($REQUEST_URI, $form); } function story_save($edit) { diff --git a/modules/story/story.module b/modules/story/story.module index 2a14200fc..665f221b1 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -55,48 +55,35 @@ function story_view($node, $main = 0) { function story_form($edit = array()) { global $allowed_html, $REQUEST_URI, $user; - $output .= "
    \n"; - - $output .= "". t("Your name") .":
    \n"; - $output .= "\n"; - $output .= format_username(($edit[userid] ? $edit[userid] : $user->userid)) ."

    "; - - $output .= "". t("Subject") .":
    \n"; - $output .= "

    \n"; - - $output .= structure_form("story", $edit); - - $output .= "". t("Abstract") .":
    \n"; - $output .= "
    \n"; - $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

    \n"; - - $output .= "". t("Body") .":
    \n"; - $output .= "
    \n"; - $output .= "". t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html) .".

    \n"; + $form .= form_item(t("Your name"), format_username(($edit[userid] ? $edit[userid] : $user->userid))); + $form .= form_hidden("userid", $edit[userid]); + $form .= form_textfield(t("Subject"), "title", $edit[title], 50, 64); + $form .= structure_form("story", $edit); + $form .= form_textarea(t("Abstract"), "abstract", $edit[abstract], 50, 10, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); + $form .= form_textarea(t("Body"), "body", $edit[body], 50, 15, t("Allowed HTML tags") .": ". htmlspecialchars($allowed_html)); if (user_access($user, "story")) { - $output .= "\n"; - $output .= "\n"; + $form .= form_hidden("timestamp", $edit[timestamp]); + $form .= form_hidden("nid", $edit[nid]); } if (!$edit) { - $output .= "\n"; + $form .= form_submit(t("Preview")); } else if (!$edit[title]) { $output .= "". t("Warning: you did not supply a subject.") ."

    \n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); } else if (!$edit[abstract]) { $output .= "". t("Warning: you did not supply an abstract.") ."

    \n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); } else { - $output .= "\n"; - $output .= "\n"; + $form .= form_submit(t("Preview")); + $form .= form_submit(t("Submit")); } - $output .= "

    \n"; - return $output; + return form($REQUEST_URI, $form); } function story_save($edit) { diff --git a/modules/structure.module b/modules/structure.module index 8bcc21978..2f5138431 100644 --- a/modules/structure.module +++ b/modules/structure.module @@ -105,9 +105,9 @@ function topic_overview() { $tree = topic_tree(); $output .= "\n"; - $output .= " \n"; + $output .= " \n"; foreach ($tree as $id=>$name) { - $output .= " \n"; + $output .= " \n"; } $output .= "
    nameread accesswrite accessoperations
    nameoperations
    ". check_output($name) ."allalledit topic
    ". check_output($name) ."edit topic
    \n"; return $output; diff --git a/modules/wishlist.module b/modules/wishlist.module deleted file mode 100644 index a1d789a38..000000000 --- a/modules/wishlist.module +++ /dev/null @@ -1,64 +0,0 @@ - "wishlist_page", - "help" => "wishlist_help"); - -function wishlist_page() { - ?> -

    Wishlist

    - $Id$ - -

    Users

    - - -

    Adminstration

    - - -

    Engine

    - - -

    Modules

    - - -

    Themes

    - - feature wishlist."; -} - -?> \ No newline at end of file -- cgit v1.2.3