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