]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - config/Values.php
Code Housecleaning: adjust line-endings to unix style.
[SourceForge/phpwiki.git] / config / Values.php
1 <?php
2 rcs_id('$Id: Values.php,v 1.3 2003-12-07 19:23:48 carstenklapp Exp $')
3 /*
4  Copyright 2002 $ThePhpWikiProgrammingTeam
5
6  This file is part of PhpWiki.
7
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.
12
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.
17
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
21  */
22
23 /**
24 * This is the master array that holds all of the configuration
25 * values.
26 */
27 $values = array(); 
28
29 /*
30 This is a template for a constant or variable value.
31  
32 $values[] = array(
33     'type' => '',
34     'name' => '',
35     'section' => ,
36     'defaultValue' => ,
37     'description' => array(
38         'short' => '',
39         'full' => ''
40     ),
41     'validator' => array(
42         'type' => ''
43     )
44 );
45 */
46
47 /**
48 * This defines the Constant that holds the name of the wiki
49 */
50 $values[] = array(
51     'type' => 'Constant',
52     'name' => 'WIKI_NAME',
53     'section' => 1,
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.'
58     ),
59     'validator' => array(
60         'type' => 'String'
61     )
62 );
63
64 $values[] = array(
65     'type' => 'Constant',
66     'name' => 'ENABLE_REVERSE_DNS',
67     'section' => 1,
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.'
74     ),
75     'validator' => array(
76         'type' => 'Boolean'
77     )
78 );
79
80 $values[] = array(
81     'type' => 'Constant',
82     'name' => 'ADMIN_USER',
83     'section' => 1,
84     'defaultValue' => "",
85     'description' => array(
86         'short' => 'Username of Administrator',
87         'full' => 'The username of the Administrator can be just about any string.'
88     ),
89     'validator' => array(
90         'type' => 'String'
91     )
92 );
93
94 $values[] = array(
95     'type' => 'Constant',
96     'name' => 'ADMIN_PASSWD',
97     'section' => 1,
98     'defaultValue' => "",
99     'description' => array(
100         'short' => 'Password of Administrator',
101         'full' => 'The password of the Administrator, please use a secure password.'
102     ),
103     'validator' => array(
104         'type' => 'String'
105     )
106 );
107
108 $values[] = array(
109     'type' => 'Constant',
110     'name' => 'ENCRYPTED_PASSWD',
111     'section' => 1,
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.'
116     ),
117     'validator' => array(
118         'type' => 'Boolean'
119     )
120 );
121
122 $values[] = array(
123     'type' => 'Constant',
124     'name' => 'ZIPDUMP_AUTH',
125     'section' => 1,
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.'
131     ),
132     'validator' => array(
133         'type' => 'Boolean'
134     )
135 );
136
137 $values[] = array(
138     'type' => 'Constant',
139     'name' => 'ENABLE_RAW_HTML',
140     'section' => 1,
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 ' .
146                   'Wiki.'
147     ),
148     'validator' => array(
149         'type' => 'Boolean'
150     )
151 );
152
153 $values[] = array(
154     'type' => 'Constant',
155     'name' => 'STRICT_MAILABLE_PAGEDUMPS',
156     'section' => 1,
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.'
170     ),
171     'validator' => array(
172         'type' => 'Boolean'
173     )
174 );
175
176 $values[] = array(
177     'type' => 'Constant',
178     'name' => 'HTML_DUMP_SUFFIX',
179     'section' => 1,
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.'
185     ),
186     'validator' => array(
187         'type' => 'String'
188     )
189 );
190
191 $values[] = array(
192     'type' => 'Constant',
193     'name' => 'MAX_UPLOAD_SIZE',
194     'section' => 1,
195     'defaultValue' => (16 * 1024 * 1024),  // 16MB
196     'description' => array(
197         'short' => 'Maximum file upload size',
198         'full' => 'The maximum file upload size in bytes.'
199     ),
200     'validator' => array(
201         'type' => 'Integer'
202     )
203 );
204
205 $values[] = array(
206     'type' => 'Constant',
207     'name' => 'MINOR_EDIT_TIMEOUT',
208     'section' => 1,
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.'
214     ),
215     'validator' => array(
216         'type' => 'Integer'
217     )
218 );
219
220 $values[] = array(
221     'type' => 'Variable',
222     'name' => 'DisabledActions',
223     'section' => 1,
224     'defaultValue' => array(),
225     'description' => array(
226         'short' => 'List of actions to disable',
227         'full' => 'Each action listed will be disabled.'
228     ),
229     'validator' => array(
230         'type' => 'ArrayString',
231         'list' => array(
232             'browse',
233             'verify',
234             'diff',
235             'search',
236             'edit',
237             'viewsource',
238             'lock',
239             'unlock',
240             'remove',
241             'upload',
242             'xmlrpc',
243             'zip',
244             'ziphtml',
245             'dumpserial',
246             'dumphtml',
247             'loadfile'
248         )
249     )
250 );
251
252 $values[] = array(
253     'type' => 'Constant',
254     'name' => 'ACCESS_LOG',
255     'section' => 1,
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.'
261     ),
262     'validator' => array(
263         'type' => 'String'
264     )
265 );
266
267
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.
271 //
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.
275 //
276 //I have done a template and one constant (WIKI_NAME).  More to follow.
277 //
278
279 // Local Variables:
280 // mode: php
281 // tab-width: 8
282 // c-basic-offset: 4
283 // c-hanging-comment-ender-p: nil
284 // indent-tabs-mode: nil
285 // End:
286
287 ?>