]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - config/config-dist.ini
improved make
[SourceForge/phpwiki.git] / config / config-dist.ini
1 ; This is the main configuration file for PhpWiki.
2 ; Note that seartain characters are used as comment char and therefore 
3 ; these entries must be in double-quotes. Such as ":", ";", "," and "|"
4 ;
5 ; This file is divided into seven parts: Parts Zero, One, Two, Three,
6 ; Four, Five and Six. Each one has different configuration settings you can
7 ; change; in all cases the default should work on your system,
8 ; however, we recommend you tailor things to your particular setting.
9
10 ;=========================================================================
11 ; Part Zero: Tricky Options
12 ;=========================================================================
13 ;
14 ; If PHP needs help in finding where you installed the rest of the PhpWiki
15 ; code, you can set the include_path here.
16 ;
17 ; Define PHP's include path so that it can find the PHP source code
18 ; for this PhpWiki.
19 ; You shouldn't need to do this unless you've moved index.php out
20 ; of the PhpWiki install directory. But if you define it, be sure to include either 
21 ; the system pear path or the phpwiki/lib/pear path.
22 ; Note that on Windows-based servers, you should use ; rather than :
23 ; as the path separator.
24 ;INCLUDE_PATH = ".:/usr/local/httpd/phpwiki:/usr/share/pear"
25
26 ; Set DEBUG to 1 to view the XHTML and CSS validator icons, page
27 ; processing timer, and possibly other debugging messages at the
28 ; bottom of each page. 2 for a more verbose level. Default: 0
29 ;DEBUG = 1
30
31 ; Enable the new method of handling WikiUsers.  This is currently an
32 ; experimental feature, although it is considered fairly stable.  It's best
33 ; to leave it on, and only disable it if you have problems with it.
34 ; Default: true
35 ;ENABLE_USER_NEW = false
36
37 ; Experimental new edit feature. Default: true
38 ;ENABLE_EDIT_TOOLBAR = false
39 ; Adds two additional buttons in EDIT_TOOLBAR, Search&Replace and Undo
40 ; Currently broken. Default: false
41 ;JS_SEARCHREPLACE = true
42
43 ;==========================================================================
44 ; Part One: Authentication and security settings.
45 ;
46 ; See Part Three for more.
47 ;==========================================================================
48 ;
49 ; The name of your wiki.
50 ;
51 ; This is used to generate a keywords meta tag in the HTML templates,
52 ; in bookmark titles for any bookmarks made to pages in your wiki,
53 ; and during RSS generation for the <title> of the RSS channel.
54 ;
55 ; To use your own logo and signature files, name them PhpWikiLogo.png
56 ; and PhpWikiSignature.png and put them into themes/default/images
57 ; (substituting "PhpWiki" in the filename with the name you define
58 ; here).
59 ;
60 ; It is recommended this be a relatively short WikiWord like the
61 ; InterWiki monikers found in the InterWikiMap. (For examples, see
62 ; lib/interwiki.map).
63 WIKI_NAME = PhpWiki
64
65 ; Visitor Hostname Lookup
66 ;
67 ; If set, reverse dns lookups will be performed to attempt to convert
68 ; the user's IP number into a host name, in the case where the http
69 ; server does not do this.
70 ENABLE_REVERSE_DNS = true
71
72 ; Username and password of administrator.
73 ;
74 ; Set these to your preferences. For heaven's sake pick a good
75 ; password and use the passencrypt.php tool to encrypt the password from
76 ; prying eyes.
77 ; http://wolfram.org/writing/howto/password.html
78
79 ; Logging into the wiki with the admin user and password allows you to lock,
80 ; unlock, or remove pages and to perform other PhpWikiAdministration
81 ; functions. On all other occasions you should simply log in with your
82 ; regular WikiName.
83 ;ADMIN_USER = 
84 ;ADMIN_PASSWD =
85
86 ; It is recommended that you use the passencrypt.php utility to encode the
87 ; admin password, in the event that someone gains ftp or ssh access to the
88 ; server and directory containing phpwiki. Once you have pasted the
89 ; encrypted password into ADMIN_PASSWD, uncomment this next line.
90 ENCRYPTED_PASSWD = true
91
92 ; Private ZIP Dumps of All Wiki Pages
93 ;
94 ; If true, only the admin user can make zip dumps. Otherwise anyone
95 ; may download all wiki pages as a single zip archive.
96 ZIPDUMP_AUTH = false
97
98 ; The RawHtml plugin allows page authors to embed real, raw HTML into Wiki
99 ; pages.  This is a possible security threat, as much HTML (or, rather,
100 ; JavaScript) can be very risky.  If you are in a controlled environment,
101 ; however, it could be of use.
102 ENABLE_RAW_HTML = false;
103
104 ; If you define this to true, (MIME-type) page-dumps (either zip dumps,
105 ; or "dumps to directory" will be encoded using the quoted-printable
106 ; encoding.  If you're actually thinking of mailing the raw page dumps,
107 ; then this might be useful, since (among other things,) it ensures
108 ; that all lines in the message body are under 80 characters in length.
109 ;
110 ; Also, setting this will cause a few additional mail headers
111 ; to be generated, so that the resulting dumps are valid
112 ; RFC 2822 e-mail messages.
113 ;
114 ; Probably you can just leave this set to false, in which case you get
115 ; raw ('binary' content-encoding) page dumps.
116 STRICT_MAILABLE_PAGEDUMPS = false
117
118 ; Here you can change the default dump directories.
119 ; (Can be overridden by the directory argument)
120 DEFAULT_DUMP_DIR = /tmp/wikidump
121 HTML_DUMP_DIR    = /tmp/wikidumphtml
122 ; Filename suffix used for XHTML page dumps.
123 ; If you don't want any suffix just comment this out.
124 HTML_DUMP_SUFFIX = .html
125
126 ; The maximum file upload size, in bytes.
127 ; The default, 16777216, is 16MB.
128 MAX_UPLOAD_SIZE = 16777216
129
130 ; If the last edit is older than MINOR_EDIT_TIMEOUT seconds, the
131 ; default state for the "minor edit" checkbox on the edit page form
132 ; will be off.
133 ; The default, 604800, is one week (7 days)
134 MINOR_EDIT_TIMEOUT = 604800
135
136 ; Actions listed in this array will not be allowed.  The complete list
137 ; of actions can be found in lib/main.php with the function
138 ; getActionDescription.
139 ; DISABLED_ACTIONS = "dumpserial : loadfile"
140
141 ; PhpWiki can generate an access_log (in "NCSA combined log" format)
142 ; for you. If you want one, define this to the name of the log
143 ; file. The server must have write access to the directory specified.
144 ;ACCESS_LOG = /var/tmp/wiki_access_log
145
146 ; By default PhpWiki will try to have PHP compress its output
147 ; before sending it to the browser (if you have a recent enough
148 ; version of PHP and the browser supports it.)
149 ; Define COMPRESS_OUTPUT to false to prevent output compression.
150 ; Define COMPRESS_OUTPUT to true to force output compression,
151 ; even if we think your version of PHP does this in a buggy
152 ; fashion.
153 ; Leave it undefined to leave the choice up to PhpWiki.
154 ;
155 ; WARNING: Compressing the output has been reported to cause serious problems
156 ; when PHP is running as a CGI or on MacOSX.
157 ;COMPRESS_OUTPUT = false
158
159 ; This controls how PhpWiki sets the HTTP cache control
160 ; headers (Expires: and Cache-Control:) 
161 ;
162 ; Choose one of:
163 ;
164 ; NO_CACHE: This is roughly the old (pre 1.3.4) behavior.  PhpWiki will
165 ;       instruct proxies and browsers never to cache PhpWiki output.
166 ;       This was previously called 'NONE', but NONE was treated specially 
167 ;       by parse_ini_config().
168 ;
169 ; STRICT: Cached pages will be invalidated whenever the database global
170 ;       timestamp changes.  This should behave just like NONE (modulo
171 ;       bugs in PhpWiki and your proxies and browsers), except that
172 ;       things will be slightly more efficient.
173 ;
174 ; LOOSE: Cached pages will be invalidated whenever they are edited,
175 ;       or, if the pages include plugins, when the plugin output could
176 ;       concievably have changed.
177 ;
178 ;       Behavior should be much like STRICT, except that sometimes
179 ;       wikilinks will show up as undefined (with the question mark)
180 ;       when in fact they refer to (recently) created pages.
181 ;       (Hitting your browsers reload or perhaps shift-reload button
182 ;       should fix the problem.)
183 ;
184 ; ALLOW_STALE: Proxies and browsers will be allowed to used stale pages.
185 ;       (The timeout for stale pages is controlled by CACHE_CONTROL_MAX_AGE.)
186 ;
187 ;       This setting will result in quirky behavior.  When you edit a
188 ;       page your changes may not show up until you shift-reload the
189 ;       page, etc...
190 ;
191 ;       This setting is generally not advisable, however it may be useful
192 ;       in certain cases (e.g. if your wiki gets lots of page views,
193 ;       and few edits by knowledgable people who won't freak over the quirks.)
194 ;
195 ; The recommended default is currently LOOSE.
196 ;
197 CACHE_CONTROL = LOOSE
198
199 ; Maximum page staleness, in seconds.
200 ;
201 ; This only has effect if CACHE_CONTROL is set to ALLOW_STALE.
202 CACHE_CONTROL_MAX_AGE = 600
203
204 ; PhpWiki normally caches a preparsed version (i.e. mostly
205 ; converted to HTML) of the most recent version of each page.
206 ; (Parsing the wiki-markup takes a fair amount of CPU.)
207 ;
208 ; Define WIKIDB_NOCACHE_MARKUP to true to disable the
209 ; caching of marked-up page content.
210 ;
211 ; Note that you can also disable markup caching on a per-page
212 ; temporary basis by addinging a query arg of '?nocache=1'
213 ; to the URL to the page.  (Use '?nocache=purge' to completely
214 ; discard the cached version of the page.)
215 ;
216 ; You can also purge the cached markup globally by using the
217 ; "Purge Markup Cache" button on the PhpWikiAdministration page.
218 ;WIKIDB_NOCACHE_MARKUP = true
219
220 ;======================================================================
221 ; Part Two: Database Selection
222 ;======================================================================
223
224 ; Select the database type:
225 ;
226 ;       SQL:   access one of several SQL databases using the PEAR DB library.
227 ;       ADODB: uses the ADODB library for data access.
228 ;       dba: use one of the standard UNIX dbm libraries.
229 ;       file: use a flat file database.
230 ;       cvs: use a CVS server to store everything.
231 DATABASE_TYPE = dba
232    
233 ; prefix for filenames or table names
234 ;
235 ; Currently you MUST EDIT THE SQL file too (in the schemas/
236 ; directory because we aren't doing on the fly sql generation
237 ; during the installation.
238 ; Note: This prefix is NOT prepended to the default DBAUTH_
239 ;       tables user, pref and member!
240 ;DATABASE_PREFIX = phpwiki_
241
242 ; For SQL based backends, specify the database as a DSN (Data Source Name),
243 ; a kind of URL for databases.
244 ;
245 ; The most general form of a DSN looks like:
246 ;
247 ;       dbtype(dbsyntax)://username:password@protocol+hostspec/database
248 ;
249 ; For a MySQL database, the following should work:
250 ;
251 ;       mysql://user:password@host/databasename
252 ;
253 ; To connect over a unix socket, use something like
254 ;
255 ;       mysql://user:password@unix(/path/to/socket)/databasename
256 ;
257 ; Valid values for dbtype are mysql, pgsql, or sqlite.
258 ;
259 DATABASE_DSN = "mysql://guest@unix(/var/lib/mysql/mysql.sock)/test"
260
261 ; A table to store session information.  Only needed by SQL backends.
262 ;
263 ; A word of warning - any prefix defined above will be prepended to whatever
264 ; is given here.
265 DATABASE_SESSION_TABLE = session
266
267 ; For the file and dba backends, this specifies where the data files will be
268 ; located.  Ensure that the user that the webserver runs as has write access
269 ; to this directory.
270 ;
271 ; WARNING: leaving this as the default of '/tmp' will almost guarantee that
272 ; you'll lose your wiki data at some stage.
273 DATABASE_DIRECTORY = /tmp
274
275 ; For the dba backend, this defines which DBA variant you wish to use.
276 ;       gdbm - commonly available
277 ;       db2 - Berkeley DB v2; not supported by modern versions of PHP
278 ;       db3 - Berkeley DB v3; as per db2. The best on Windows
279 ;       db4 - Berkeley DB v4; current version, however PHP has some issues
280 ;               with it's db4 support.
281 ;       dbm - Older dba handler; suffers from limits on the size of data
282 ;               items
283 DATABASE_DBA_HANDLER = gdbm
284
285 ; How long will the system wait for a database operation to complete?
286 ; Specified in seconds.
287 DATABASE_TIMEOUT = 20
288
289 ; The login code now uses PHP's session support. Usually, the default
290 ; configuration of PHP is to store the session state information in
291 ; /tmp. That probably will work fine, but fails e.g. on clustered
292 ; servers where each server has their own distinct /tmp (this is the
293 ; case on SourceForge's project web server.) You can specify an
294 ; alternate directory in which to store state information like so
295 ; (whatever user your httpd runs as must have read/write permission
296 ; in this directory):
297 ;SESSION_SAVE_PATH = some_other_directory
298
299 ;========================================================================
300 ; Section 3a: Page revisions
301 ;
302 ; The next section controls how many old revisions of each page are
303 ; kept in the database.
304 ;========================================================================
305 ;
306 ; There are two basic classes of revisions: major and minor. Which
307 ; class a revision belongs in is determined by whether the author
308 ; checked the "this is a minor revision" checkbox when they saved the
309 ; page.
310
311 ; There is, additionally, a third class of revisions: author
312 ; revisions. The most recent non-mergable revision from each distinct
313 ; author is an author revision.
314 ;
315 ; The expiry parameters for each of those three classes of revisions
316 ; can be adjusted seperately. For each class there are five
317 ; parameters (usually, only two or three of the five are actually
318 ; set) which control how long those revisions are kept in the
319 ; database.
320 ;
321 ;   MAX_KEEP: If set, this specifies an absolute maximum for the
322 ;             number of archived revisions of that class. This is
323 ;             meant to be used as a safety cap when a non-zero
324 ;             min_age is specified. It should be set relatively high,
325 ;             and it's purpose is to prevent malicious or accidental
326 ;             database overflow due to someone causing an
327 ;             unreasonable number of edits in a short period of time.
328 ;
329 ;   MIN_AGE:  Revisions younger than this (based upon the supplanted
330 ;             date) will be kept unless max_keep is exceeded. The age
331 ;             should be specified in days. It should be a
332 ;             non-negative, real number,
333 ;
334 ;   MIN_KEEP: At least this many revisions will be kept.
335 ;
336 ;   KEEP: No more than this many revisions will be kept.
337 ;
338 ;   MAX_AGE:  No revision older than this age will be kept.
339 ;
340 ; Definitions of terms used above:
341 ;
342 ; Supplanted date: Revisions are timestamped at the instant that they
343 ; cease being the current revision. Revision age is computed using
344 ; this timestamp, not the edit time of the page.
345 ;
346 ; Merging: When a minor revision is deleted, if the preceding
347 ; revision is by the same author, the minor revision is merged with
348 ; the preceding revision before it is deleted. Essentially: this
349 ; replaces the content (and supplanted timestamp) of the previous
350 ; revision with the content after the merged minor edit, the rest of
351 ; the page metadata for the preceding version (summary, mtime, ...)
352 ; is not changed.
353 ;
354 ; Keep up to 8 major edits, but keep them no longer than a month.
355 MAJOR_MAX_AGE = 32
356 MAJOR_KEEP = 8
357
358 ; Keep up to 4 minor edits, but keep them no longer than a week.
359 MINOR_MAX_AGE = 7
360 MINOR_KEEP = 4
361
362 ; Keep the latest contributions of the last 8 authors up to a year.
363 ; Additionally, (in the case of a particularly active page) try to
364 ; keep the latest contributions of all authors in the last week (even
365 ; if there are more than eight of them,) but in no case keep more
366 ; than twenty unique author revisions.
367 AUTHOR_MAX_AGE = 365
368 AUTHOR_KEEP = 8
369 AUTHOR_MIN_AGE = 7
370 AUTHOR_MAX_KEEP = 20
371
372 ;========================================================================
373 ; Part Three: User Authentication
374 ;========================================================================
375 ;
376 ; New user authentication configuration:
377 ; We support three basic authentication methods and a stacked array 
378 ; of advanced auth methods to get and check the passwords:
379 ;
380 ; ALLOW_ANON_USER         default true
381 ; ALLOW_ANON_EDIT         default true
382 ; ALLOW_BOGO_LOGIN        default true
383 ; ALLOW_USER_PASSWORDS    default true
384
385 ; allow anon users to view existing pages
386 ALLOW_ANON_USER = true
387 ; allow anon users to edit pages
388 ALLOW_ANON_EDIT = true
389
390 ; If ALLOW_BOGO_LOGIN is true, users are allowed to login (with
391 ; any/no password) using any userid which: 
392 ;  1) is not the ADMIN_USER, and
393 ;  2) is a valid WikiWord (matches $WikiNameRegexp.)
394 ; If true, users may be created by themselves. Otherwise we need seperate auth. 
395 ; If such a user will create a so called HomePage with his userid, he will 
396 ; be able to store his preferences and password there.
397 ALLOW_BOGO_LOGIN = true
398
399 ; True User Authentication:
400 ; To require user passwords:
401 ;   ALLOW_ANON_USER = false
402 ;   ALLOW_ANON_EDIT = false
403 ;   ALLOW_BOGO_LOGIN = false,
404 ;   ALLOW_USER_PASSWORDS = true.
405 ; Otherwise any anon or bogo user might login without any or a wrong password.
406 ALLOW_USER_PASSWORDS = true
407
408 ; Many different methods can be used to check user's passwords:
409 ;   BogoLogin:     WikiWord username, with no *actual* password checking,
410 ;                   although the user will still have to enter one.
411 ;   PersonalPage:  Store passwords in the users homepage metadata (simple)
412 ;   Db:            Use DBAUTH_AUTH_* (see below) with PearDB or 
413 ;                   ADODB only.
414 ;   LDAP:          Authenticate against LDAP_AUTH_HOST with LDAP_BASE_DN
415 ;   IMAP:          Authenticate against IMAP_AUTH_HOST (email account)
416 ;   POP3:          Authenticate against POP3_AUTH_HOST (email account)
417 ;   File:          Store username:crypted-passwords in .htaccess like files. 
418 ;                  Use Apache's htpasswd to manage this file.
419 ;   HttpAuth:      Use the protection by the webserver (.htaccess) or 
420 ;                  enforce it
421 ;
422 ; Several of these methods can be used together, in the manner specified by
423 ; USER_AUTH_POLICY, below.  To specify multiple authentication methods,
424 ; separate the name of each one with colons.
425 USER_AUTH_ORDER = "PersonalPage : Db"
426
427 ; For "security" purposes, you can specify that a password be at least a
428 ; certain number of characters long.  This applies even to the BogoLogin
429 ; method.
430 PASSWORD_LENGTH_MINIMUM = 2
431     
432 ; The following policies are available for user authentication:
433 ;       first-only: use only the first method in USER_AUTH_ORDER
434 ;       old:        ignore USER_AUTH_ORDER and try to use all available 
435 ;                       methods as in the previous PhpWiki releases (slow)
436 ;       strict:     check if the user exists for all methods: 
437 ;                       on the first existing user, try the password. 
438 ;                       dont try the other methods on failure then
439 ;       stacked:    check the given user - password combination for all
440 ;                       methods and return true on the first success.
441 USER_AUTH_POLICY = stacked
442
443 ; LDAP authentication options:
444 ;
445 ; The LDAP server to connect to.  Can either be a hostname, or a complete
446 ; URL to the server (useful if you want to use ldaps or specify a different
447 ; port number).
448 ;LDAP_AUTH_HOST = "ldap://localhost:389"
449
450 ; The organizational or domain BASE DN: e.g. "dc=mydomain,dc=com".
451 ;
452 ; Note: ou=Users and ou=Groups are used for GroupLdap Membership
453 ; Better use LDAP_OU_USERS and LDAP_OU_GROUP with GROUP_METHOD=LDAP.
454 ;LDAP_BASE_DN = "ou=Users,o=Development,dc=mycompany.com"
455
456 ; Some LDAP servers need some more options, such as the Windows Active
457 ; Directory Server.  Specify the options (as allowed by the PHP LDAP module)
458 ; and their values as NAME=value pairs separated by colons.
459 ; LDAP_SET_OPTION = "LDAP_OPT_PROTOCOL_VERSION=3:LDAP_OPT_REFERRALS=0"
460
461 ; DN to initially bind to the LDAP server as. This is needed if the server doesn't 
462 ; allow anonymous queries. (Windows Active Directory Server)
463 ; LDAP_AUTH_USER = "CN=ldapuser,ou=Users,o=Development,dc=mycompany.com"
464
465 ; Password to use to initially bind to the LDAP server, as the DN 
466 ; specified in the LDAP_AUTH_USER option (above).
467 ; LDAP_AUTH_PASSWORD = secret
468
469 ; If you want to match usernames against an attribute other than uid,
470 ; specify it here. Default: uid
471 ; LDAP_SEARCH_FIELD = sAMAccountName
472
473 ; If you have an organizational unit for all users, define it here.
474 ; This narrows the search, and is needed for LDAP group membership (if GROUP_METHOD=LDAP)
475 ; Default: ou=Users
476 ; LDAP_OU_USERS = ou=Users
477
478 ; If you have an organizational unit for all groups, define it here.
479 ; This narrows the search, and is needed for LDAP group membership (if GROUP_METHOD=LDAP)
480 ; The entries in this ou must have a gidNumber and cn attribute.
481 ; Default: ou=Groups
482 ; LDAP_OU_GROUP = ou=Groups
483
484
485 ; IMAP authentication options:
486 ;
487 ; The IMAP server to check usernames from.  Defaults to localhost.
488 ;
489 ; Some IMAP_AUTH_HOST samples:
490 ;   "localhost", "localhost:143/imap/notls", 
491 ;   "localhost:993/imap/ssl/novalidate-cert" (SuSE refuses non-SSL conections)
492 ; IMAP_AUTH_HOST = "localhost:143/imap/notls"
493
494 ; POP3 authentication options:
495 ;
496 ; Host to connect to.
497 ; POP3_AUTH_HOST = "localhost:110"
498
499 ; Port to connect. Deprecated: Use POP3_AUTH_HOST:<port> instead
500 ; POP3_AUTH_PORT = 110
501
502 ; File authentication options:
503 ;
504 ; File to read for authentication information.
505 ; Popular choices are /etc/shadow and /etc/httpd/.htpasswd
506 ; AUTH_USER_FILE = /etc/shadow
507
508 ; Defines whether the user is able to change their own password via PHPWiki.
509 ; Note that this means that the webserver user must be able to write to the
510 ; file specified in AUTH_USER_FILE.
511 ; AUTH_USER_FILE_STORABLE = false
512
513 ; Session Auth:
514 ; Name of the session variable which holds the already authenticated username.
515 ; Sample: "userid", "user[username]", "user->username"
516 ; AUTH_SESS_USER = userid
517 ; Which level will the user be? 1 = Bogo or 2 = Pass
518 ; AUTH_SESS_LEVEL = 2
519
520 ; Group membership.  PHPWiki supports defining permissions for a group as
521 ; well as for individual users.  This defines how group membership information
522 ; is obtained.  Supported values are:
523 ;
524 ;       NONE            group membership is not supported.
525 ;       WIKIPAGE        Defined in the metadata of a wiki page.
526 ;       DB              Stored in an ADODB or PearDB database.
527 ;       FILE            Flatfile.
528 ;       LDAP            Query LDAP to find the information.
529 GROUP_METHOD = WIKIPAGE
530
531 ; For GROUP_METHOD = FILE, the file given below is referenced to obtain
532 ; group membership information.  It should be in the same format as the
533 ; standard unix /etc/groups(5) file.
534 ; AUTH_GROUP_FILE = /etc/groups
535
536 ; External database authentication and authorization.
537 ;
538 ; If USER_AUTH_ORDER includes Db, or GROUP_METHOD = DB, the options listed
539 ; below define the SQL queries used to obtain the information out of the
540 ; database, and (in some cases) store the information back to the DB.
541 ;
542 ; The options appropriate for each query are currently undocumented, and
543 ; you should not be surprised if things change mightily in the future.
544 ;
545 ; A database DSN to connect to.  Defaults to the DSN specified for the Wiki
546 ; as a whole.
547 ; DBAUTH_AUTH_DSN = "mysql://wikiuser:@localhost/phpwiki"
548 ;
549 ; USER/PASSWORD queries
550 ;
551 ; Check to see if the supplied username/password pair is OK
552 ;
553 ; plaintext passwords:
554 ; DBAUTH_AUTH_CHECK = "SELECT IF(passwd='$password',1,0) AS ok FROM user WHERE userid='$userid'"
555 ;
556 ; database-hashed passwords (more secure):
557 ; DBAUTH_AUTH_CHECK = "SELECT IF(passwd=PASSWORD('$password'),1,0) AS ok FROM user WHERE userid='$userid'"
558 DBAUTH_AUTH_CRYPT_METHOD = plain
559
560 ; If you want to use Unix crypt()ed passwords, you can use DBAUTH_AUTH_CHECK
561 ; to get the password out of the database with a simple SELECT query, and
562 ; specify DBAUTH_AUTH_USER_EXISTS and DBAUTH_AUTH_CRYPT_METHOD:
563 ; DBAUTH_AUTH_CHECK = "SELECT passwd FROM user where userid='$userid'"
564 ; DBAUTH_AUTH_USER_EXISTS = "SELECT userid FROM user WHERE userid='$userid'"
565 ; DBAUTH_AUTH_CRYPT_METHOD = crypt
566 ;
567 ; Update the user's authentication credential.  If this is not defined but
568 ; DBAUTH_AUTH_CHECK is, then the user will be unable to update their
569 ; password.
570 ;
571 ; Plaintext passwords:
572 ; DBAUTH_AUTH_UPDATE = "UPDATE user SET passwd='$password' WHERE userid='$userid'"
573 ; Database-hashed passwords:
574 ; DBAUTH_AUTH_UPDATE = "UPDATE user SET passwd=PASSWORD('$password') WHERE userid='$userid'"
575 ;
576 ; Allow the user to create their own account.
577 ; DBAUTH_AUTH_CREATE = "INSERT INTO user SET passwd=PASSWORD('$password'),userid='$userid'"
578
579 ; USER/PREFERENCE queries
580 ;
581 ; If you choose to store your preferences in an external database, enable
582 ; the following queries.  Note that if you choose to store user preferences
583 ; in the 'user' table, only registered users get their prefs from the database,
584 ; self-created users do not.  Better to use the special 'pref' table.
585 ;
586 ; The prefs field stores the serialized form of the user's preferences array,
587 ; to ease the complication of storage.
588 ; DBAUTH_PREF_SELECT = "SELECT prefs FROM user WHERE userid='$userid'"
589 ; DBAUTH_PREF_SELECT = "SELECT prefs FROM pref WHERE userid='$userid'"
590
591 ; Update the user's preferences
592 ; DBAUTH_PREF_UPDATE = "UPDATE user SET prefs='$pref_blob' WHERE userid='$userid'"
593 ; Note that REPLACE works only with mysql and destroy all other columns!
594 ; DBAUTH_PREF_UPDATE = "REPLACE INTO pref SET prefs='$pref_blob',userid='$userid'"
595
596 ; USERS/GROUPS queries
597 ;
598 ; You can define 1:n or n:m user<=>group relations, as you wish.
599 ;
600 ; Sample configurations:
601 ;  only one group per user (1:n):
602 ;   DBAUTH_IS_MEMBER = "SELECT user FROM user WHERE user='$userid' AND group='$groupname'"
603 ;   DBAUTH_GROUP_MEMBERS = "SELECT user FROM user WHERE group='$groupname'"
604 ;   DBAUTH_USER_GROUPS = "SELECT group FROM user WHERE user='$userid'"
605 ;  multiple groups per user (n:m):
606 ;   DBAUTH_IS_MEMBER = "SELECT userid FROM member WHERE userid='$userid' AND groupname='$groupname'"
607 ;   DBAUTH_GROUP_MEMBERS = "SELECT DISTINCT userid FROM member WHERE groupname='$groupname'"
608 ;   DBAUTH_USER_GROUPS = "SELECT groupname FROM member WHERE userid='$userid'"
609
610 ; A interim page which gets displayed on every edit attempt
611 EDITING_POLICY = EditingPolicy
612
613 ;========================================================================
614 ; Part Four: Page appearance and layout
615 ;========================================================================
616
617 ; THEMES
618 ;
619 ; Most of the page appearance is controlled by files in the theme
620 ; subdirectory.
621 ;
622 ; There are a number of pre-defined themes shipped with PhpWiki.
623 ; Or you may create your own (e.g. by copying and then modifying one of
624 ; stock themes.)
625 ;
626 ; The complete list of installed themes can be found by doing 'ls themes/'
627 ; from the root of your PHPWiki installation.
628 THEME = default
629 ; THEME = MacOSX
630 ; THEME = smaller
631 ; THEME = Wordpress
632 ; THEME = Portland
633 ; THEME = Hawaiian
634 ; THEME = Sidebar
635 ; THEME = Crao
636 ; THEME = wikilens
637
638 ; Select a valid charset name to be inserted into the xml/html pages,
639 ; and to reference links to the stylesheets (css). For more info see:
640 ; <http://www.iana.org/assignments/character-sets>. Note that PhpWiki
641 ; has been extensively tested only with the latin1 (iso-8859-1)
642 ; character set.
643 ;
644 ; If you change the default from iso-8859-1 PhpWiki may not work
645 ; properly and will require modifications in all existing pages. 
646 ; At the very least you will have to convert the files in pgsrc 
647 ; or locale/xx/pgsrc to match!
648 ; Currently we support utf-8 for zh, euc-jp for ja and iso-8859-1 
649 ; for all other langs. Changing languages (UserPreferences) from one 
650 ; charset to another will not work!
651 ;
652 ; Character sets similar to iso-8859-1 may work with little or no
653 ; modification depending on your setup. The database must also
654 ; support the same charset, and of course the same is true for the
655 ; web browser. (Some work is in progress hopefully to allow more
656 ; flexibility in this area in the future).
657 CHARSET = iso-8859-1
658
659 ; Select your language/locale - default language is "en" for English.
660 ; Other languages available:
661 ; English "en"  (English    - HomePage)
662 ; Dutch   "nl" (Nederlands - ThuisPagina)
663 ; Spanish "es" (Español    - PáginaPrincipal)
664 ; French  "fr" (Français   - PageAccueil))
665 ; German  "de" (Deutsch    - StartSeite)
666 ; Swedish "sv" (Svenska    - Framsida)
667 ; Italian "it" (Italiano   - PaginaPrincipale)
668 ; Japanese "ja" (Japanese   - Â¥Ã›Â¡Â¼Â¥Ã Â¥ÃšÂ¡Â¼Â¥Â¸)
669 ; Chinese  "zh" (Chinese   - ?)
670 ;
671 ; If you set DEFAULT_LANGUAGE to the empty string, your system's
672 ; default language (as determined by the applicable environment
673 ; variables) will be used.
674 ; Japanese requires euc-jp, Chinese utf-8
675 ;
676 DEFAULT_LANGUAGE = en
677
678 ; WIKI_PGSRC -- specifies the source for the initial page contents of
679 ; the Wiki. The setting of WIKI_PGSRC only has effect when the wiki is
680 ; accessed for the first time (or after clearing the database.)
681 ; WIKI_PGSRC can either name a directory or a zip file. In either case
682 ; WIKI_PGSRC is scanned for files -- one file per page.
683 WIKI_PGSRC = pgsrc
684
685 ; DEFAULT_WIKI_PGSRC is only used when the language is *not* the
686 ; default (English) and when reading from a directory: in that case
687 ; some English pages are inserted into the wiki as well.
688 ; DEFAULT_WIKI_PGSRC defines where the English pages reside.
689 DEFAULT_WIKI_PGSRC = pgsrc
690 ; These are the pages which will get loaded from DEFAULT_WIKI_PGSRC.
691 DEFAULT_WIKI_PAGES = "ReleaseNotes:SteveWainstead:TestPage"
692
693 ;=========================================================================
694 ; Part Five: Mark-up options.
695 ;=========================================================================
696 ;
697 ; allowed protocols for links - be careful not to allow "javascript:"
698 ; URL of these types will be automatically linked.
699 ; within a named link [name|uri] one more protocol is defined: phpwiki
700 ; Separate each of the protocol names with a vertical pipe, and ensure there
701 ; is no extraneous whitespace.
702 ALLOWED_PROTOCOLS = "http|https|mailto|ftp|news|nntp|ssh|gopher"
703
704 ; URLs ending with the following extension should be inlined as images.
705 ; Specify as per ALLOWED_PROTOCOLS
706 INLINE_IMAGES = "png|jpg|gif"
707
708 ; Perl regexp for WikiNames ("bumpy words")
709 ; (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
710 WIKI_NAME_REGEXP = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])"
711
712 ; Defaults to '/', but '.' was also used.
713 SUBPAGE_SEPARATOR = /
714
715 ; InterWiki linking -- wiki-style links to other wikis on the web
716 ;
717 ; The map will be taken from a page name InterWikiMap.
718 ; If that page is not found (or is not locked), or map
719 ; data can not be found in it, then the file specified
720 ; by INTERWIKI_MAP_FILE (if any) will be used.
721 INTERWIKI_MAP_FILE = lib/interwiki.map
722
723 ; Display a warning if the internal lib/interwiki.map is used, and 
724 ; not the public InterWikiMap page. This file is not readable from outside.
725 WARN_NONPUBLIC_INTERWIKIMAP = false
726
727 ; Regexp used for automatic keyword extraction.
728 ;
729 ; Any links on a page to pages whose names match this regexp will
730 ; be used keywords in the keywords meta tag.  (This is an aid to
731 ; classification by search engines.)  The value of the match is
732 ; used as the keyword.
733 ;
734 ; The default behavior is to match Category* and Topic* links.
735 KEYWORDS = "Category:Topic"
736 ; KEYWORD_LINK_REGEXP = "(?<=^\'. join(\'|^\', $keywords) . \')[[:upper:]].*$"
737
738 ; Author and Copyright Site Navigation Links
739 ;
740 ; These will be inserted as <link rel> tags in the html header of
741 ; every page, for search engines and for browsers like Mozilla which
742 ; take advantage of link rel site navigation.
743 ;
744 ; If you have your own copyright and contact information pages change
745 ; these as appropriate.
746 COPYRIGHTPAGE_TITLE = "GNU General Public License"
747 COPYRIGHTPAGE_URL = "http://www.gnu.org/copyleft/gpl.html#SEC1"
748 ; Other useful alternatives to consider:
749 ; COPYRIGHTPAGE_TITLE = "GNU Free Documentation License"
750 ; COPYRIGHTPAGE_URL = "http://www.gnu.org/copyleft/fdl.html"
751 ; COPYRIGHTPAGE_TITLE = "Creative Commons License 2.0"
752 ; COPYRIGHTPAGE_URL = "http://creativecommons.org/licenses/by/2.0/"
753 ;  see http://creativecommons.org/learn/licenses/ for variations
754 AUTHORPAGE_TITLE = The PhpWiki Programming Team
755 AUTHORPAGE_URL = http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam
756
757 ; Allow full markup in headers to be parsed by the CreateToc plugin.
758 ;
759 ; If false you may not use WikiWords or [] links or any other markup in 
760 ; headers in pages with the CreateToc plugin. But if false the parsing is 
761 ; faster and more stable.
762 TOC_FULL_SYNTAX = true
763
764 ;==========================================================================
765 ; Part Six: URL options.
766 ;==========================================================================
767 ;
768 ; You can probably skip this section.
769
770 ; The following section contains settings which you can use to tailor
771 ; the URLs which PhpWiki generates.
772 ;
773 ; Any of these parameters which are left undefined will be deduced
774 ; automatically. You need only set them explicitly if the
775 ; auto-detected values prove to be incorrect.
776 ;
777 ; In most cases the auto-detected values should work fine, so
778 ; hopefully you don't need to mess with this section.
779 ;
780 ; In case of local overrides of short placeholders, which themselves 
781 ; include index.php, we check for most constants. See '/wiki'.
782 ; We can override DATA_PATH and PHPWIKI_DIR to support multiple phpwiki 
783 ; versions (for development), but most likely other values like 
784 ; THEME, LANG and DbParams for a WikiFarm.
785
786 ; Canonical name and httpd port of the server on which this PhpWiki
787 ; resides.
788 ;/
789 ;SERVER_NAME = some.host.com
790 ;SERVER_PORT = 80
791
792 ; Relative URL (from the server root) of the PhpWiki
793 ; script.
794 ;SCRIPT_NAME = /some/where/index.php
795
796 ; URL of the PhpWiki install directory.  (You only need to set this
797 ; if you've moved index.php out of the install directory.)  This can
798 ; be either a relative URL (from the directory where the top-level
799 ; PhpWiki script is) or an absolute one.
800 ;DATA_PATH = /home/user/phpwiki
801
802 ; Path to the PhpWiki install directory.  This is the local
803 ; filesystem counterpart to DATA_PATH.  (If you have to set
804 ; DATA_PATH, your probably have to set this as well.)  This can be
805 ; either an absolute path, or a relative path interpreted from the
806 ; directory where the top-level PhpWiki script (normally index.php)
807 ; resides.
808 ;PHPWIKI_DIR = /home/user/public_html/phpwiki
809
810 ; PhpWiki will try to use short urls to pages, eg 
811 ; http://www.example.com/index.php/HomePage
812 ; If you want to use urls like 
813 ; http://www.example.com/index.php?pagename=HomePage
814 ; then define 'USE_PATH_INFO' as false by uncommenting the line below.
815 ; NB:  If you are using Apache >= 2.0.30, then you may need to to use
816 ; the directive "AcceptPathInfo On" in your Apache configuration file
817 ; (or in an appropriate <.htaccess> file) for the short urls to work:  
818 ; See http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
819
820 ; See also http://phpwiki.sourceforge.net/phpwiki/PrettyWiki for more ideas
821 ; on prettifying your urls.
822 ;
823 ; Note that Google doesn't follow the default /index.php/PageName links.
824 ; You must use either a PrettyWiki setup (see below), or force USE_PATH_INFO=false.
825 ;
826 ; Default: PhpWiki will try to divine whether use of PATH_INFO
827 ; is supported in by your webserver/PHP configuration, and will
828 ; use PATH_INFO if it thinks that is possible.
829 ;USE_PATH_INFO = false
830
831 ; VIRTUAL_PATH is the canonical URL path under which your your wiki
832 ; appears. Normally this is the same as dirname(SCRIPT_NAME), however
833 ; using, e.g. apaches mod_actions (or mod_rewrite), you can make it
834 ; something different.
835 ;
836 ; If you do this, you should set VIRTUAL_PATH here.
837 ;
838 ; E.g. your phpwiki might be installed at at /scripts/phpwiki/index.php,
839 ; but  * you've made it accessible through eg. /wiki/HomePage.
840 ;
841 ; One way to do this is to create a directory named 'wiki' in your
842 ; server root. The directory contains only one file: an .htaccess
843 ; file which reads something like:
844 ;
845 ;    Action x-phpwiki-page /scripts/phpwiki/index.php
846 ;    SetHandler x-phpwiki-page
847 ;    DirectoryIndex /scripts/phpwiki/index.php
848 ;
849 ; In that case you should set VIRTUAL_PATH to '/wiki'.
850 ;
851 ; (VIRTUAL_PATH is only used if USE_PATH_INFO is true.)
852 ;/
853 ;VIRTUAL_PATH = /SomeWiki
854
855 ; In case your system has no idea about /tmp, TEMP or TMPDIR, 
856 ; better provide it here. E.g. needed for zipdumps.
857 ; TEMP_DIR = /tmp
858
859 ;===========================================================================
860 ; Part Seven: Miscellaneous settings
861 ;===========================================================================
862
863 ; Disable HTTP redirects.
864 ;
865 ; (You probably don't need to touch this.)
866 ;
867 ; PhpWiki uses HTTP redirects for some of it's functionality.
868 ; (e.g. after saving changes, PhpWiki redirects your browser to
869 ; view the page you just saved.)
870 ;
871 ; Some web service providers (notably free European Lycos) don't seem to
872 ; allow these redirects.  (On Lycos the result in an "Internal Server Error"
873 ; report.)  In that case you can set DISABLE_HTTP_REDIRECT to true.
874 ; (In which case, PhpWiki will revert to sneakier tricks to try to
875 ; redirect the browser...)
876 ;DISABLE_HTTP_REDIRECT = true
877
878 ; Enable random quotes from a fortune directory when adding a new page.
879 ; Usually at /usr/share/fortune or /usr/share/games/fortune
880 ; If empty no quotes are inserted.
881 ;FORTUNE_DIR = /usr/share/fortune
882
883 ;===========================================================================
884 ; PLUGINCACHED Pear/Cache Settings: (moved from lib/plugincache-config.php)
885 ;===========================================================================
886
887 ; Cache_Container storage class: 'file' is the fastest. See pear/Cache/Container/
888 PLUGIN_CACHED_DATABASE = file
889
890 ; This is only used if database is set to file.
891 ; The webserver must have write access to this dir!
892 PLUGIN_CACHED_CACHE_DIR = /tmp/cache
893 ; Every file name in the cache begins with this prefix
894 PLUGIN_CACHED_FILENAME_PREFIX = phpwiki
895
896 ; The maximum total space in bytes of all files in the cache. When
897 ; highwater is exceeded, a garbage collection will start.  It will
898 ; collect garbage till 'lowwater' is reached.  Default: 4 * Megabyte
899 PLUGIN_CACHED_HIGHWATER = 4194304
900 ; Default: 3 * Megabyte
901 PLUGIN_CACHED_LOWWATER  = 3145728
902
903 ; If an image has not been used for maxlifetime remove it from the
904 ; cache. (Since there is also the highwater/lowwater mechanism and an
905 ; image usually requires only 1kb you don't have to make it very
906 ; small, I think.)  
907 ; Default: 30 * Day (30 * 24*60*60)
908 PLUGIN_CACHED_MAXLIFETIME = 2592000
909
910 ; Number of characters allowed to be send as 
911 ; parameters in the url before using sessions
912 ; vars instead. 
913 ; Usually send plugin arguments as URL, but when they become
914 ; longer than maxarglen store them in session variables.
915 ; Setting it to 3000 worked fine for me, 30000 completely
916 ; crashed my linux, 1000 should be safe.
917 PLUGIN_CACHED_MAXARGLEN = 1000
918
919 ; Actually use the cache (should be always true unless you are
920 ; debugging). If you want to avoid the usage of a cache but need
921 ; WikiPlugins that nevertheless rely on a cache you might set
922 ; 'PLUGIN_CACHED_USECACHE' to false. You still need to set
923 ; 'PLUGIN_CACHED_CACHE_DIR' appropriately to allow image creation and
924 ; you should set 'PLUGIN_CACHED_FORCE_SYNCMAP' to false.
925 PLUGIN_CACHED_USECACHE = true
926
927 ; Will prevent image creation for an image map 'on demand'. It is a
928 ; good idea to set this to 'true' because it will also prevent the
929 ; html part not to fit to the image of the map.  If you don't use a
930 ; cache, you have to set it to 'false', maps will not work otherwise
931 ; but strange effects may happen if the output of an image map
932 ; producing WikiPlugin is not completely determined by its parameters.
933 ; (As it is the case for a graphical site map.)
934 PLUGIN_CACHED_FORCE_SYNCMAP = true
935
936 ; If ImageTypes() does not exist (PHP < 4.0.2) allow the
937 ; following image formats (IMG_PNG | IMG_GIF | IMG_JPG | IMG_WBMP)
938 ; In principal all image types which are compiled into php: 
939 ;   libgd, libpng, libjpeg, libungif, libtiff, libgd2, ...
940 ; Todo: swf, pdf, ...
941 PLUGIN_CACHED_IMGTYPES = "png|gif|gd|gd2|jpeg|wbmp|xbm|xpm"