From 4711869f52897077b52f76b54a74982de3ff0e9b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 11 Apr 2001 19:44:24 +0000 Subject: - fixed a small SQL bug in page.module - slightly improved story.module, node.module and book.module - made the "default theme" a setting from the setting page - polished a bit on the export function: we can now export the book or parts thereof through the following url: 1. http://drop.org/export/book/ (full book) 2. http://drop.org/export/book/nid (where nid is the node id to start with) The export routine demonstrates how it can be done yet the output is too basic and can only improve over time. --- modules/settings.module | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'modules/settings.module') diff --git a/modules/settings.module b/modules/settings.module index 1bbe64fdb..3cdb70233 100644 --- a/modules/settings.module +++ b/modules/settings.module @@ -3,7 +3,7 @@ $module = array("admin" => "settings_admin"); function settings_conf() { - global $conf, $cmodes, $corder; + global $conf, $cmodes, $corder, $themes; $output .= "

General settings

\n"; @@ -23,46 +23,53 @@ function settings_conf() { $output .= "
\n"; $output .= "The name displayed for anonymous users.

\n"; + $output .= "Default theme:
\n"; + foreach ($themes as $key=>$value) $options1 .= "\n"; + $output .= "
\n"; + $output .= "The default theme displayed for anonymous users.

\n"; + $output .= "


\n"; - $output .= "

Comment system

\n"; + $output .= "

Comment settings

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

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

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

\n"; $output .= "


\n"; - $output .= "

Submission system

\n"; + $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"; + foreach ($size as $key=>$value) $options5 .= " \n"; + $output .= "
\n"; $output .= "The maximum number of characters someone can enter in a form.

\n"; $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"; + foreach ($rate as $key=>$value) $options6 .= " \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 .= "
\n"; $output .= "The maximum submission rate for comments. Its purpose is to stop potential abuse or denial of service attacks.

\n"; + $output .= "


\n"; + return $output; } -- cgit v1.2.3