2 rcs_id('$Id: Values.php,v 1.3 2003-12-07 19:23:48 carstenklapp Exp $')
4 Copyright 2002 $ThePhpWikiProgrammingTeam
6 This file is part of PhpWiki.
8 PhpWiki is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 PhpWiki is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with PhpWiki; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 * This is the master array that holds all of the configuration
30 This is a template for a constant or variable value.
37 'description' => array(
48 * This defines the Constant that holds the name of the wiki
52 'name' => 'WIKI_NAME',
54 'defaultValue' => 'PhpWiki',
55 'description' => array(
56 'short' => 'Name of your Wiki.',
57 'full' => 'This can be any string, but it should be short and informative.'
66 'name' => 'ENABLE_REVERSE_DNS',
68 'defaultValue' => true,
69 'description' => array(
70 'short' => 'Perform reverse DNS lookups',
71 'full' => 'If set, we will perform reverse dns lookups to try to convert ' .
72 'the users IP number to a host name, even if the http server ' .
73 'didn\'t do it for us.'
82 'name' => 'ADMIN_USER',
85 'description' => array(
86 'short' => 'Username of Administrator',
87 'full' => 'The username of the Administrator can be just about any string.'
96 'name' => 'ADMIN_PASSWD',
99 'description' => array(
100 'short' => 'Password of Administrator',
101 'full' => 'The password of the Administrator, please use a secure password.'
103 'validator' => array(
109 'type' => 'Constant',
110 'name' => 'ENCRYPTED_PASSWD',
112 'defaultValue' => true,
113 'description' => array(
114 'short' => 'Administrator password is encrypted.',
115 'full' => 'True if the Administrator password is encrypted using the embeded tool.'
117 'validator' => array(
123 'type' => 'Constant',
124 'name' => 'ZIPDUMP_AUTH',
126 'defaultValue' => true,
127 'description' => array(
128 'short' => 'Require privilage to make zip dumps.',
129 'full' => 'If true then only the Administrator will be allowed to make a zipped ' .
130 'archive of the Wiki.'
132 'validator' => array(
138 'type' => 'Constant',
139 'name' => 'ENABLE_RAW_HTML',
141 'defaultValue' => false,
142 'description' => array(
143 'short' => 'Enable the use of html in a WikiPage',
144 'full' => 'If true raw html will be respected in the markup of a WikiPage. ' .
145 '*WARNING*: this is a major security hole! Do not enable on a public ' .
148 'validator' => array(
154 'type' => 'Constant',
155 'name' => 'STRICT_MAILABLE_PAGEDUMPS',
157 'defaultValue' => false,
158 'description' => array(
159 'short' => 'Page dumps are valid RFC 2822 e-mail messages',
160 'full' => 'If you define this to true, (MIME-type) page-dumps (either zip ' .
161 'dumps, or "dumps to directory" will be encoded using the ' .
162 'quoted-printable encoding. If you\'re actually thinking of ' .
163 'mailing the raw page dumps, then this might be useful, since ' .
164 '(among other things,) it ensures that all lines in the message ' .
165 'body are under 80 characters in length. Also, setting this will ' .
166 'cause a few additional mail headers to be generated, so that the ' .
167 'resulting dumps are valid RFC 2822 e-mail messages. Probably, you ' .
168 'can just leave this set to false, in which case you get raw ' .
169 '(\'binary\' content-encoding) page dumps.'
171 'validator' => array(
177 'type' => 'Constant',
178 'name' => 'HTML_DUMP_SUFFIX',
180 'defaultValue' => '.html',
181 'description' => array(
182 'short' => 'Suffix for XHTML page dumps',
183 'full' => 'This suffix will be appended to the name of each page for a ' .
184 'XHTML page dump and the page links will be modified accordingly.'
186 'validator' => array(
192 'type' => 'Constant',
193 'name' => 'MAX_UPLOAD_SIZE',
195 'defaultValue' => (16 * 1024 * 1024), // 16MB
196 'description' => array(
197 'short' => 'Maximum file upload size',
198 'full' => 'The maximum file upload size in bytes.'
200 'validator' => array(
206 'type' => 'Constant',
207 'name' => 'MINOR_EDIT_TIMEOUT',
209 'defaultValue' => (7 * 24 * 60 * 60), // One week
210 'description' => array(
211 'short' => 'Length of time where \'Minor Edit\' is default',
212 'full' => 'If an edit is started less than this period of time from the ' .
213 'prior edit, the \'Minor Edit\' checkbox will be set.'
215 'validator' => array(
221 'type' => 'Variable',
222 'name' => 'DisabledActions',
224 'defaultValue' => array(),
225 'description' => array(
226 'short' => 'List of actions to disable',
227 'full' => 'Each action listed will be disabled.'
229 'validator' => array(
230 'type' => 'ArrayString',
253 'type' => 'Constant',
254 'name' => 'ACCESS_LOG',
256 'defaultValue' => '',
257 'description' => array(
258 'short' => 'Enable and location of Wiki Access Log',
259 'full' => 'If you define a location, PhpWiki will write in NCSA combined ' .
260 'format a log of all accesses.'
262 'validator' => array(
268 //$Log: not supported by cvs2svn $
269 //Revision 1.2 2003/01/28 18:55:25 zorloc
270 //I have added all of the values for Part One of our configuration values.
272 //Revision 1.1 2003/01/28 07:32:24 zorloc
273 //This file holds all of the config settings for the constants, variables,
274 //and arrays that can be customized/defined.
276 //I have done a template and one constant (WIKI_NAME). More to follow.
283 // c-hanging-comment-ender-p: nil
284 // indent-tabs-mode: nil