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