Commit 4a28077f authored by Kjartan's avatar Kjartan
Browse files

- adding descriptions to modules (thanks Joe + Scott).

- fixed comment flat list view missing 1 comment.
- changed update.php around a bit.
    * security check isn't in effect if the db hasn't been updated.
    * instructions re-organized.
    * fixed some minor updates.
- updated database.mysql done by UnConeD.
- changelog update.
parent 59082a5f
......@@ -44,7 +44,7 @@ drupal 4.0.0, xx/xx/xxxx
* changed output to valid XHTML.
* improved multiple sites using the same Drupal database support.
* added support for session IDs in URLs instead of cookies.
* made front page a configuration setting.
* made the type of content on the front page configurable
* made each cloud site have its own settings.
* modules and themes can now be enabled/disabled using the administrative pages.
* added URL abstraction for links.
......
# MySQL dump 8.14
#
# Host: localhost Database: drupal
#--------------------------------------------------------
# Server version 3.23.38
#
# Table structure for table 'access'
#
......@@ -43,6 +37,7 @@ CREATE TABLE blocks (
region tinyint(1) NOT NULL default '0',
remove tinyint(1) NOT NULL default '0',
path varchar(255) NOT NULL default '',
custom tinyint(2) NOT NULL default '0',
PRIMARY KEY (name)
) TYPE=MyISAM;
......@@ -71,8 +66,8 @@ CREATE TABLE boxes (
info varchar(128) NOT NULL default '',
type tinyint(2) NOT NULL default '0',
PRIMARY KEY (bid),
UNIQUE KEY subject (title),
UNIQUE KEY info (info)
UNIQUE KEY info (info),
UNIQUE KEY subject (title)
) TYPE=MyISAM;
#
......@@ -168,8 +163,8 @@ CREATE TABLE feed (
link varchar(255) NOT NULL default '',
description text NOT NULL,
PRIMARY KEY (fid),
UNIQUE KEY link (url),
UNIQUE KEY title (title)
UNIQUE KEY title (title),
UNIQUE KEY link (url)
) TYPE=MyISAM;
#
......@@ -387,8 +382,8 @@ CREATE TABLE site (
refresh int(11) NOT NULL default '0',
threshold int(11) NOT NULL default '0',
PRIMARY KEY (sid),
UNIQUE KEY url (link),
UNIQUE KEY title (name)
UNIQUE KEY title (name),
UNIQUE KEY url (link)
) TYPE=MyISAM;
#
......@@ -551,6 +546,37 @@ CREATE TABLE watchdog (
# Insert some default values
#
INSERT INTO variable SET name='update_start', value='2002-04-23 : roles cleanup';
INSERT INTO blocks SET name='User information', module='user', delta='0', status='2', weight='0', region='1', remove='0', path='';
INSERT INTO blocks SET name='Log in', module='user', delta='1', status='2', weight='0', region='1', remove='0', path='';
INSERT INTO variable SET name='update_start', value='2002-05-15';
INSERT INTO system VALUES ('archive.module','archive','module','',1);
INSERT INTO system VALUES ('block.module','block','module','',1);
INSERT INTO system VALUES ('blog.module','blog','module','',1);
INSERT INTO system VALUES ('bloggerapi.module','bloggerapi','module','',1);
INSERT INTO system VALUES ('book.module','book','module','',1);
INSERT INTO system VALUES ('cloud.module','cloud','module','',1);
INSERT INTO system VALUES ('comment.module','comment','module','',1);
INSERT INTO system VALUES ('forum.module','forum','module','',1);
INSERT INTO system VALUES ('help.module','help','module','',1);
INSERT INTO system VALUES ('import.module','import','module','',1);
INSERT INTO system VALUES ('jabber.module','jabber','module','',1);
INSERT INTO system VALUES ('locale.module','locale','module','',1);
INSERT INTO system VALUES ('node.module','node','module','',1);
INSERT INTO system VALUES ('notify.module','notify','module','',1);
INSERT INTO system VALUES ('page.module','page','module','',1);
INSERT INTO system VALUES ('poll.module','poll','module','',1);
INSERT INTO system VALUES ('queue.module','queue','module','',1);
INSERT INTO system VALUES ('rating.module','rating','module','',1);
INSERT INTO system VALUES ('search.module','search','module','',1);
INSERT INTO system VALUES ('statistics.module','statistics','module','',1);
INSERT INTO system VALUES ('story.module','story','module','',1);
INSERT INTO system VALUES ('taxonomy.module','taxonomy','module','',1);
INSERT INTO system VALUES ('themes/example/example.theme','example','theme','Internet explorer, Netscape, Opera, Lynx',1);
INSERT INTO system VALUES ('themes/goofy/goofy.theme','goofy','theme','Internetexplorer, Netscape, Opera',1);
INSERT INTO system VALUES ('themes/marvin/marvin.theme','marvin','theme','Internet explorer, Netscape, Opera',1);
INSERT INTO system VALUES ('themes/sosim/sosim.theme','sosim','theme','MSIE/NN/Opera',1);
INSERT INTO system VALUES ('themes/unconed/unconed.theme','unconed','theme','Internet explorer, Netscape, Opera',1);
INSERT INTO system VALUES ('tracker.module','tracker','module','',1);
INSERT INTO system VALUES ('weblogs.module','weblogs','module','',1);
REPLACE variable SET value = 'marvin', name = 'theme_default';
REPLACE blocks SET name = 'User information', module = 'user', delta = '0', status = '1';
REPLACE blocks SET name = 'Log in', module = 'user', delta = '1', status = '1';
......@@ -46,7 +46,9 @@ function module_list() {
$result = db_query("SELECT name, filename FROM system WHERE type = 'module' AND status = '1' ORDER BY name");
while ($module = db_fetch_object($result)) {
$list[$module->name] = $module->name;
include_once "modules/$module->filename";
if (file_exists("modules/$module->filename")) {
include_once "modules/$module->filename";
}
}
asort($list);
}
......
......@@ -11,6 +11,11 @@ function import_help() {
<?php
}
function import_system($field){
$system["description"] = t("Used to import syndicated content (ie. news)");
return $system[$field];
}
function import_conf_options() {
$number = array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 100 => 100);
$output .= form_select("Items per block", "import_block_limit", variable_get("import_block_limit", 15), $number, "The maximum number of items displayed in one block.");
......
......@@ -11,6 +11,11 @@ function import_help() {
<?php
}
function import_system($field){
$system["description"] = t("Used to import syndicated content (ie. news)");
return $system[$field];
}
function import_conf_options() {
$number = array(5 => 5, 10 => 10, 15 => 15, 20 => 20, 25 => 25, 30 => 30, 35 => 35, 40 => 40, 45 => 45, 50 => 50, 55 => 55, 60 => 60, 65 => 65, 70 => 70, 75 => 75, 80 => 80, 85 => 85, 90 => 90, 95 => 95, 100 => 100);
$output .= form_select("Items per block", "import_block_limit", variable_get("import_block_limit", 15), $number, "The maximum number of items displayed in one block.");
......
<?php
// $Id$
function archive_system($field){
$system["description"] = t("Displays calendar navigation to old content.");
return $system[$field];
}
function archive_display($original = 0) {
// Prevent future dates:
......
<?php
// $Id$
function archive_system($field){
$system["description"] = t("Displays calendar navigation to old content.");
return $system[$field];
}
function archive_display($original = 0) {
// Prevent future dates:
......
......@@ -38,6 +38,11 @@ function block_help() {
<?php
}
function block_system($field){
$system["description"] = t("Displays content in small boxes, generally along the side of the page.");
return $system[$field];
}
function block_perm() {
return array("administer blocks");
}
......
......@@ -38,6 +38,11 @@ function block_help() {
<?php
}
function block_system($field){
$system["description"] = t("Displays content in small boxes, generally along the side of the page.");
return $system[$field];
}
function block_perm() {
return array("administer blocks");
}
......
<?php
// $Id$
function blog_system($field){
$system["description"] = t("Enables keeping an online journal.");
return $system[$field];
}
function blog_conf_options() {
$output .= form_textarea("Explanation or submission guidelines", "blog_help", variable_get("blog_help", ""), 55, 4, "This text will be displayed at the top of the blog submission form. Useful for helping or instructing your users.");
$output .= form_select(t("Minimum number of words in a node"), "minimum_blog_size", variable_get("minimum_blog_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal blog entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts."));
......
<?php
// $Id$
function blog_system($field){
$system["description"] = t("Enables keeping an online journal.");
return $system[$field];
}
function blog_conf_options() {
$output .= form_textarea("Explanation or submission guidelines", "blog_help", variable_get("blog_help", ""), 55, 4, "This text will be displayed at the top of the blog submission form. Useful for helping or instructing your users.");
$output .= form_select(t("Minimum number of words in a node"), "minimum_blog_size", variable_get("minimum_blog_size", 0), array(0 => "0 words", 10 => "10 words", 25 => "25 words", 50 => "50 words", 75 => "75 words", 100 => "100 words", 125 => "125 words", 150 => "150 words", 175 => "175 words", 200 => "200 words"), t("The minimum number of words a personal blog entry should consist of. This can be useful to rule out submissions that do not meet the site's standards, such as short test posts."));
......
......@@ -368,6 +368,11 @@ function bloggerapi_perm() {
return array("access bloggerapi");
}
function bloggerapi_system($field){
$system["description"] = t("Allows users post to Drupal via alternate methods or different tools.");
return $system[$field];
}
function bloggerapi_help() {
?>
<h3>Introduction</h3>
......
<?php
// $Id$
function book_system($field){
$system["description"] = t("Allows users to collaboratively author a book.");
return $system[$field];
}
function book_node($field) {
global $user;
......
<?php
// $Id$
function book_system($field){
$system["description"] = t("Allows users to collaboratively author a book.");
return $system[$field];
}
function book_node($field) {
global $user;
......
......@@ -17,6 +17,11 @@ function cloud_help($type = "administrator") {
return $output;
}
function cloud_system($field){
$system["description"] = t("Tracks other sites and displays last date changed.");
return $system[$field];
}
function cloud_cron() {
$result = db_query("SELECT * FROM site WHERE timestamp = 0 OR timestamp + refresh < ". time());
......@@ -64,7 +69,7 @@ function cloud_update($site) {
$data .= fgets($fp, 128);
}
if (abs($site["size"] - strlen($data)) > $site["threshold"]) {
if (abs($site["size"] - strlen($data)) >= $site["threshold"]) {
db_query("UPDATE site SET size = '". strlen($data) ."', timestamp = '". time() ."' WHERE link = '%s'", $site["link"]);
}
......@@ -78,7 +83,7 @@ function cloud_update($site) {
function cloud_form($edit = array()) {
$period = array(900 => format_interval(900), 1800 => format_interval(1800), 3600 => format_interval(3600), 7200 => format_interval(7200), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 64800 => format_interval(64800), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200));
$threshold = array(0 => "0 bytes", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes");
$threshold = array(1 => "1 byte", 10 => "10 bytes", 20 => "20 bytes", 40 => "40 bytes", 60 => "60 bytes", 80 => "80 bytes", 100 => "100 bytes", 120 => "120 bytes", 140 => "140 bytes", 160 => "160 bytes", 320 => "320 bytes", 640 => "640 bytes");
$form .= form_textfield("Site name", "name", $edit["name"], 50, 128, "The name of the website you want to monitor for updates.");
$form .= form_textfield("Site URL", "link", $edit["link"], 50, 255, "The URL of the website you want to monitor for updates.");
......
......@@ -13,6 +13,11 @@ function comment_help() {
return $output;
}
function comment_system($field){
$system["description"] = t("Enables user commenting.");
return $system[$field];
}
function comment_settings($mode, $order, $threshold) {
global $user;
......@@ -516,7 +521,7 @@ function comment_render($nid, $cid = 0) {
}
if ($mode == 1) {
if (db_result($result)) {
if (db_num_rows($result)) {
print "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n";
print " <tr><th>". t("Subject") ."</th><th>". t("Author") ."</th><th>". t("Date") ."</th></tr>\n";
while ($comment = db_fetch_object($result)) {
......
......@@ -13,6 +13,11 @@ function comment_help() {
return $output;
}
function comment_system($field){
$system["description"] = t("Enables user commenting.");
return $system[$field];
}
function comment_settings($mode, $order, $threshold) {
global $user;
......@@ -516,7 +521,7 @@ function comment_render($nid, $cid = 0) {
}
if ($mode == 1) {
if (db_result($result)) {
if (db_num_rows($result)) {
print "<table border=\"0\" cellpadding=\"2\" cellspacing=\"2\">\n";
print " <tr><th>". t("Subject") ."</th><th>". t("Author") ."</th><th>". t("Date") ."</th></tr>\n";
while ($comment = db_fetch_object($result)) {
......
<?php
function drupal_system($field){
$system["description"] = t("You'll need this :-)");
return $system[$field];
}
function drupal_conf_options() {
$output .= form_textfield("Drupal server", "drupal_server", variable_get("drupal_server", "http://www.drupal.org/xmlrpc.php"), 55, 128, "The URL of your root Drupal XML-RPC server.");
$output .= form_select("Drupal directory", "drupal_directory", variable_get("drupal_directory", 0), array("Disabled", "Enabled"), "If enabled, your Drupal site will make itself know to the Drupal directory at the specified Drupal XML-RPC server. For this to work properly, you have to set your site's name, e-mail address, slogan and mission statement.");
......
<?php
function drupal_system($field){
$system["description"] = t("You'll need this :-)");
return $system[$field];
}
function drupal_conf_options() {
$output .= form_textfield("Drupal server", "drupal_server", variable_get("drupal_server", "http://www.drupal.org/xmlrpc.php"), 55, 128, "The URL of your root Drupal XML-RPC server.");
$output .= form_select("Drupal directory", "drupal_directory", variable_get("drupal_directory", 0), array("Disabled", "Enabled"), "If enabled, your Drupal site will make itself know to the Drupal directory at the specified Drupal XML-RPC server. For this to work properly, you have to set your site's name, e-mail address, slogan and mission statement.");
......
<?php
// $Id$
function forum_system($field){
$system["description"] = t("Enables threaded discussions.");
return $system[$field];
}
function forum_node($field) {
$info["name"] = t("discussion forum");
$info["description"] = t("A forum is a threaded discussion, enabling users to communicate about a particular topic.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment