]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - index.php
pgsrc/CreatePagePlugin
[SourceForge/phpwiki.git] / index.php
1 <?php // -*-php-*-
2 // iso-8859-1
3
4 // IMPORTANT NOTE: Use of the ***configurator.php*** to generate an
5 // index.php is depreciated, because it is out of date and a new
6 // configuration system is in the works (see the config directory, not
7 // finished yet though). DO compare or diff the configurator's output
8 // against this file if you feel you must use it to generate an
9 // index.php!
10
11 /*
12 Copyright 1999, 2000, 2001, 2002, 2003, 2004 $ThePhpWikiProgrammingTeam 
13 = array(
14 "Steve Wainstead", "Clifford A. Adams", "Lawrence Akka", 
15 "Scott R. Anderson", "Jon Åslund", "Neil Brown", "Jeff Dairiki",
16 "Stéphane Gourichon", "Jan Hidders", "Arno Hollosi", "John Jorgensen",
17 "Antti Kaihola", "Jeremie Kass", "Carsten Klapp", "Marco Milanesi",
18 "Grant Morgan", "Jan Nieuwenhuizen", "Aredridel Niothke", 
19 "Pablo Roca Rozas", "Sandino Araico Sánchez", "Joel Uckelman", 
20 "Reini Urban", "Tim Voght", "Jochen Kalmbach");
21
22 This file is part of PhpWiki.
23
24 PhpWiki is free software; you can redistribute it and/or modify
25 it under the terms of the GNU General Public License as published by
26 the Free Software Foundation; either version 2 of the License, or
27 (at your option) any later version.
28
29 PhpWiki is distributed in the hope that it will be useful,
30 but WITHOUT ANY WARRANTY; without even the implied warranty of
31 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32 GNU General Public License for more details.
33
34 You should have received a copy of the GNU General Public License
35 along with PhpWiki; if not, write to the Free Software
36 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37 */
38
39
40 /////////////////////////////////////////////////////////////////////
41 /*
42   This is the starting file for PhpWiki. All this file does is set
43   configuration options, and at the end of the file it includes() the
44   file lib/main.php, where the real action begins.
45
46   This file is divided into seven parts: Parts Zero, One, Two, Three,
47   Four, Five and Six. Each one has different configuration settings you can
48   change; in all cases the default should work on your system,
49   however, we recommend you tailor things to your particular setting.
50 */
51
52 /////////////////////////////////////////////////////////////////////
53 // Part Zero: If PHP needs help in finding where you installed the
54 //   rest of the PhpWiki code, you can set the include_path here.
55
56 // Define PHP's include path so that it can find the PHP source code
57 // for this PhpWiki.
58 // 
59 // You shouldn't need to do this unless you've moved index.php out
60 // of the PhpWiki install directory.
61 //
62 // Note that on Windows-based servers, you should use ; rather than :
63 // as the path separator.
64 //ini_set('include_path', '.:/usr/local/httpd/phpwiki');
65
66 // Set DEBUG to 1 to view the XHTML and CSS validator icons, page
67 // processing timer, and possibly other debugging messages at the
68 // bottom of each page.
69 if (!defined('DEBUG')) define ('DEBUG', 0);
70 define('ENABLE_USER_NEW',true);    // this will disappear with 1.4.0
71 define('JS_SEARCHREPLACE',true);   // experimental edit feature
72
73 /////////////////////////////////////////////////////////////////////
74 // Part Null: Don't touch this!
75
76 define ('PHPWIKI_VERSION', '1.3.8');
77 require "lib/prepend.php";
78 rcs_id('$Id: index.php,v 1.137 2004-04-11 10:42:02 rurban Exp $');
79
80 /////////////////////////////////////////////////////////////////////
81 //
82 // Part One:
83 // Authentication and security settings. See Part Three for more.
84 // 
85 /////////////////////////////////////////////////////////////////////
86
87 // The name of your wiki.
88 //
89 // This is used to generate a keywords meta tag in the HTML templates,
90 // in bookmark titles for any bookmarks made to pages in your wiki,
91 // and during RSS generation for the <title> of the RSS channel.
92 //
93 // To use your own logo and signature files, name them PhpWikiLogo.png
94 // and PhpWikiSignature.png and put them into themes/default/images
95 // (substituting "PhpWiki" in the filename with the name you define
96 // here).
97 //
98 // It is recommended this be a relatively short WikiWord like the
99 // InterWiki monikers found in the InterWikiMap. (For examples, see
100 // lib/interwiki.map).
101 if (!defined('WIKI_NAME')) define('WIKI_NAME', 'PhpWiki');
102
103 // Visitor Hostname Lookup
104 //
105 // If set, reverse dns lookups will be performed to attempt to convert
106 // the user's IP number into a host name, in the case where the http
107 // server does not do this.
108 if (!defined('ENABLE_REVERSE_DNS')) define('ENABLE_REVERSE_DNS', true);
109
110 // Username and password of administrator.
111 //
112 // Set these to your preferences. For heaven's sake pick a good
113 // password and use the passencrypt.php tool. See:
114 // http://wolfram.org/writing/howto/password.html
115 // 
116 // Log into the wiki with the admin user and password to lock, unlock,
117 // or remove pages and to perform other PhpWikiAdministration
118 // functions. On all other occasions you should simply log in with
119 // your regular WikiName.
120 if (!defined('ADMIN_USER')) define('ADMIN_USER', "");
121 if (!defined('ADMIN_PASSWD')) define('ADMIN_PASSWD', "");
122 // It is recommended to use the passencrypt.php utility to encode the
123 // admin password, in the unlikely event someone gains ftp or ssh
124 // access to the server and directory containing phpwiki. Once you
125 // have pasted the encrypted password into ADMIN_PASSWD, uncomment
126 // this next line.
127 //if (!defined('ENCRYPTED_PASSWD')) define('ENCRYPTED_PASSWD', true);
128
129 // Private ZIP Dumps of All Wiki Pages
130 //
131 // If true, only the admin user can make zip dumps. Otherwise anyone
132 // may download all wiki pages as a single zip archive.
133 if (!defined('ZIPDUMP_AUTH')) define('ZIPDUMP_AUTH', false);
134
135 // Define to false to disable the RawHtml plugin.
136 //if (!defined('ENABLE_RAW_HTML')) define('ENABLE_RAW_HTML', false);
137
138 // If you define this to true, (MIME-type) page-dumps (either zip dumps,
139 // or "dumps to directory" will be encoded using the quoted-printable
140 // encoding.  If you're actually thinking of mailing the raw page dumps,
141 // then this might be useful, since (among other things,) it ensures
142 // that all lines in the message body are under 80 characters in length.
143 //
144 // Also, setting this will cause a few additional mail headers
145 // to be generated, so that the resulting dumps are valid
146 // RFC 2822 e-mail messages.
147 //
148 // Probably you can just leave this set to false, in which case you get
149 // raw ('binary' content-encoding) page dumps.
150 if (!defined('STRICT_MAILABLE_PAGEDUMPS')) define('STRICT_MAILABLE_PAGEDUMPS', false);
151
152 // Here you can change the filename suffix used for XHTML page dumps.
153 // If you don't want any suffix just comment this out.
154 $HTML_DUMP_SUFFIX = '.html';
155
156 // The maximum file upload size.
157 if (!defined('MAX_UPLOAD_SIZE')) define('MAX_UPLOAD_SIZE', 16 * 1024 * 1024);
158
159 // If the last edit is older than MINOR_EDIT_TIMEOUT seconds, the
160 // default state for the "minor edit" checkbox on the edit page form
161 // will be off.
162 if (!defined('MINOR_EDIT_TIMEOUT')) define("MINOR_EDIT_TIMEOUT", 7 * 24 * 3600);
163
164 // Actions listed in this array will not be allowed. The complete list
165 // of actions can be found in lib/main.php within the function
166 // getActionDescription.
167 //$DisabledActions = array('dumpserial', 'loadfile');
168
169 // PhpWiki can generate an access_log (in "NCSA combined log" format)
170 // for you. If you want one, define this to the name of the log
171 // file. The server must have write access to the directory specified.
172 //define('ACCESS_LOG', '/var/tmp/wiki_access_log');
173
174
175 // By default PhpWiki will try to have PHP compress its output
176 // before sending it to the browser (if you have a recent enough
177 // version of PHP and the browser supports it.)
178 // Define COMPRESS_OUTPUT to false to prevent output compression.
179 // Define COMPRESS_OUTPUT to true to force output compression,
180 // even if we think your version of PHP does this in a buggy
181 // fashion.
182 // Leave it undefined to leave the choice up to PhpWiki.
183 //define('COMPRESS_OUTPUT', false);
184
185
186 // HTTP CACHE_CONTROL
187 //
188 // This controls how PhpWiki sets the HTTP cache control
189 // headers (Expires: and Cache-Control:) 
190 //
191 // Choose one of:
192 //
193 // NONE: This is roughly the old (pre 1.3.4) behavior.  PhpWiki will
194 //       instruct proxies and browsers never to cache PhpWiki output.
195 //
196 // STRICT: Cached pages will be invalidated whenever the database global
197 //       timestamp changes.  This should behave just like NONE (modulo
198 //       bugs in PhpWiki and your proxies and browsers), except that
199 //       things will be slightly more efficient.
200 //
201 // LOOSE: Cached pages will be invalidated whenever they are edited,
202 //       or, if the pages include plugins, when the plugin output could
203 //       concievably have changed.
204 //
205 //       Behavior should be much like STRICT, except that sometimes
206 //       wikilinks will show up as undefined (with the question mark)
207 //       when in fact they refer to (recently) created pages.
208 //       (Hitting your browsers reload or perhaps shift-reload button
209 //       should fix the problem.)
210 //
211 // ALLOW_STALE: Proxies and browsers will be allowed to used stale pages.
212 //       (The timeout for stale pages is controlled by CACHE_CONTROL_MAX_AGE.)
213 //
214 //       This setting will result in quirky behavior.  When you edit a
215 //       page your changes may not show up until you shift-reload the
216 //       page, etc...
217 //
218 //       This setting is generally not advisable, however it may be useful
219 //       in certain cases (e.g. if your wiki gets lots of page views,
220 //       and few edits by knowledgable people who won't freak over the quirks.)
221 //
222 // The default is currently LOOSE.
223 //
224 if (!defined('CACHE_CONTROL')) define('CACHE_CONTROL', 'LOOSE');
225
226 // Maximum page staleness, in seconds.
227 //
228 // This only has effect if CACHE_CONTROL is set to ALLOW_STALE.
229 if (!defined('CACHE_CONTROL_MAX_AGE')) define('CACHE_CONTROL_MAX_AGE', 600);
230
231
232 // MARKUP CACHING
233 //
234 // PhpWiki normally caches a preparsed version (i.e. mostly
235 // converted to HTML) of the most recent version of each page.
236 // (Parsing the wiki-markup takes a fair amount of CPU.)
237 //
238 // Define WIKIDB_NOCACHE_MARKUP to true to disable the
239 // caching of marked-up page content.
240 //
241 // Note that you can also disable markup caching on a per-page
242 // temporary basis by addinging a query arg of '?nocache=1'
243 // to the URL to the page.  (Use '?nocache=purge' to completely
244 // discard the cached version of the page.)
245 //
246 // You can also purge the cached markup globally by using the
247 // "Purge Markup Cache" button on the PhpWikiAdministration page.
248 //if (!defined('WIKIDB_NOCACHE_MARKUP')) define ('WIKIDB_NOCACHE_MARKUP', true);
249
250 /////////////////////////////////////////////////////////////////////
251 //
252 // Part Two:
253 // Database Selection
254 //
255 /////////////////////////////////////////////////////////////////////
256
257 //
258 // This array holds the parameters which select the database to use.
259 //
260 // Not all of these parameters are used by any particular DB backend.
261 //
262 $DBParams = array(
263    // Select the database type:
264    //
265    // Choose ADODB or SQL to use an SQL database with ADODB or PEAR
266    // respectively (both ADODB and PEAR libraries are already included
267    // with PhpWiki).
268    // Choose dba to use one of the standard UNIX dbm libraries.
269    // Choose file to use a flat file database.
270    //'dbtype' => 'ADODB',
271    //'dbtype' => 'SQL',
272    'dbtype'   => 'dba',
273    //'dbtype' => 'file',
274    //'dbtype' => 'cvs',
275    
276    // For SQL based backends, specify the database as a DSN
277    // The most general form of a DSN looks like:
278    //
279    //   phptype(dbsyntax)://username:password@protocol+hostspec/database
280    //
281    // For a MySQL database, the following should work:
282    //
283    //   mysql://user:password@host/databasename
284    //
285    // To connect over a unix socket, use something like
286    //
287    //   mysql://user:password@unix(/path/to/socket)/databasename
288    //
289    //'dsn' => 'mysql://guest@unix(/var/lib/mysql/mysql.sock)/test',
290    //'dsn' => 'mysql://guest:pass@localhost/test',
291    //'dsn' => 'pgsql://localhost/test',
292
293    // The common table prefix (see below) is added if defined
294    'db_session_table'   => 'session',
295    
296    // Used by all DB types:
297
298    // prefix for filenames or table names
299    /* 
300     * currently you MUST EDIT THE SQL file too (in the schemas/
301     * directory because we aren't doing on the fly sql generation
302     * during the installation.
303    */
304    //'prefix' => 'phpwiki_',
305    
306    // Used by either 'dba' or 'file' and must be writable by the web
307    // server If you leave this as '/tmp' you will probably lose all
308    // your files eventually
309    'directory'     => "/tmp",
310
311    // choose the type of DB database file to use; most GNU systems have gdbm
312    'dba_handler'   => 'gdbm',   // Either of 'gdbm' or 'db2' work great for me.
313    //'dba_handler' => 'db2',
314    //'dba_handler' => 'db3',    // Works fine on Windows, but not on every linux.
315    //'dba_handler' => 'dbm',    // On sf.net redhat there's dbm and gdbm.
316                                 // dbm suffers from limits on size of data items?
317
318    'timeout'   => 20,
319    //'timeout' => 5
320 );
321
322 /////////////////////////////////////////////////////////////////////
323 // PHP Session settings:
324 //
325
326 // Tested for dbtype: 'SQL', 'ADODB' and 'dba'. See schemas/mysql.sql, 
327 // schemas/sqlite.sql or schemas/psql.sql. 
328 // $DBParams['db_session_table'] must be defined.
329 if (!defined('USE_DB_SESSION')   and 
330     $DBParams['dbtype'] == 'SQL' and 
331     !empty($DBParams['db_session_table']))
332   define('USE_DB_SESSION',true);
333
334 // If your php was compiled with --enable-trans-sid it tries to
335 // add a PHPSESSID query argument to all URL strings when cookie
336 // support isn't detected in the client browser.  For reasons
337 // which aren't entirely clear (PHP bug) this screws up the URLs
338 // generated by PhpWiki.  Therefore, transparent session ids
339 // should be disabled.  This next line does that.
340 //
341 // (At the present time, you will not be able to log-in to PhpWiki,
342 // unless your browser supports cookies.)
343 @ini_set('session.use_trans_sid', 0);
344
345 // The login code now uses PHP's session support. Usually, the default
346 // configuration of PHP is to store the session state information in
347 // /tmp. That probably will work fine, but fails e.g. on clustered
348 // servers where each server has their own distinct /tmp (this is the
349 // case on SourceForge's project web server.) You can specify an
350 // alternate directory in which to store state information like so
351 // (whatever user your httpd runs as must have read/write permission
352 // in this directory):
353
354 //ini_set('session.save_path', 'some_other_directory');
355
356 /////////////////////////////////////////////////////////////////////
357 //
358 // The next section controls how many old revisions of each page are
359 // kept in the database.
360 //
361 // There are two basic classes of revisions: major and minor. Which
362 // class a revision belongs in is determined by whether the author
363 // checked the "this is a minor revision" checkbox when they saved the
364 // page.
365 // 
366 // There is, additionally, a third class of revisions: author
367 // revisions. The most recent non-mergable revision from each distinct
368 // author is and author revision.
369 //
370 // The expiry parameters for each of those three classes of revisions
371 // can be adjusted seperately. For each class there are five
372 // parameters (usually, only two or three of the five are actually
373 // set) which control how long those revisions are kept in the
374 // database.
375 //
376 //   max_keep: If set, this specifies an absolute maximum for the
377 //             number of archived revisions of that class. This is
378 //             meant to be used as a safety cap when a non-zero
379 //             min_age is specified. It should be set relatively high,
380 //             and it's purpose is to prevent malicious or accidental
381 //             database overflow due to someone causing an
382 //             unreasonable number of edits in a short period of time.
383 //
384 //   min_age:  Revisions younger than this (based upon the supplanted
385 //             date) will be kept unless max_keep is exceeded. The age
386 //             should be specified in days. It should be a
387 //             non-negative, real number,
388 //
389 //   min_keep: At least this many revisions will be kept.
390 //
391 //   keep:     No more than this many revisions will be kept.
392 //
393 //   max_age:  No revision older than this age will be kept.
394 //
395 // Supplanted date: Revisions are timestamped at the instant that they
396 // cease being the current revision. Revision age is computed using
397 // this timestamp, not the edit time of the page.
398 //
399 // Merging: When a minor revision is deleted, if the preceding
400 // revision is by the same author, the minor revision is merged with
401 // the preceding revision before it is deleted. Essentially: this
402 // replaces the content (and supplanted timestamp) of the previous
403 // revision with the content after the merged minor edit, the rest of
404 // the page metadata for the preceding version (summary, mtime, ...)
405 // is not changed.
406 //
407 // Keep up to 8 major edits, but keep them no longer than a month.
408 $ExpireParams['major'] = array('max_age' => 32,
409                                'keep'    => 8);
410 // Keep up to 4 minor edits, but keep them no longer than a week.
411 $ExpireParams['minor'] = array('max_age' => 7,
412                                'keep'    => 4);
413 // Keep the latest contributions of the last 8 authors up to a year.
414 // Additionally, (in the case of a particularly active page) try to
415 // keep the latest contributions of all authors in the last week (even
416 // if there are more than eight of them,) but in no case keep more
417 // than twenty unique author revisions.
418 $ExpireParams['author'] = array('max_age'  => 365,
419                                 'keep'     => 8,
420                                 'min_age'  => 7,
421                                 'max_keep' => 20);
422
423 /////////////////////////////////////////////////////////////////////
424 //
425 // Part Three: (optional)
426 // User Authentication
427 //
428 /////////////////////////////////////////////////////////////////////
429 // 
430 // New user authentication configuration:
431 // We support three basic authentication methods and a stacked array 
432 // of advanced auth methods to get and check the passwords:
433 //
434 // ALLOW_ANON_USER         default true
435 // ALLOW_ANON_EDIT         default true
436 // ALLOW_BOGO_LOGIN        default true
437 // ALLOW_USER_PASSWORDS    default true
438
439 // allow anon users to view pages! (not edit)
440 if (!defined('ALLOW_ANON_USER')) define('ALLOW_ANON_USER', true); 
441 // allow anon users to edit pages
442 if (!defined('ALLOW_ANON_EDIT')) define('ALLOW_ANON_EDIT', true); 
443
444 // This was replaced by ALLOW_ANON_EDIT
445 if (!defined('REQUIRE_SIGNIN_BEFORE_EDIT')) define('REQUIRE_SIGNIN_BEFORE_EDIT', ! ALLOW_ANON_EDIT);
446
447 // If ALLOW_BOGO_LOGIN is true, users are allowed to login (with
448 // any/no password) using any userid which: 
449 //  1) is not the ADMIN_USER, and
450 //  2) is a valid WikiWord (matches $WikiNameRegexp.)
451 // If true, users may be created by themselves. Otherwise we need seperate auth. 
452 // If such a user will create a so called HomePage with his userid, he will 
453 // be able to store his preferences and password there.
454 if (!defined('ALLOW_BOGO_LOGIN')) define('ALLOW_BOGO_LOGIN', true);
455
456 // True User Authentication:
457 // To require user passwords:
458 //   ALLOW_ANON_USER = false
459 //   ALLOW_ANON_EDIT = false
460 //   ALLOW_BOGO_LOGIN = false,
461 //   ALLOW_USER_PASSWORDS = true.
462 // Otherwise any anon or bogo user might login without any or a wrong password.
463 if (!defined('ALLOW_USER_PASSWORDS')) define('ALLOW_USER_PASSWORDS', true);
464
465 // Below we define which methods exists and in which order 
466 // they are used:
467 //   BogoLogin:     WikiWord enough, but with PASSWORD_LENGTH_MINIMUM
468 //   PersonalPage:  Store passwords in the users homepage metadata (simple)
469 //   Db:            Use $DBAuthParams[] (see below) with the PearDB or 
470 //                  ADODB only.
471 //   LDAP:          Authenticate against LDAP_AUTH_HOST with LDAP_BASE_DN
472 //   IMAP:          Authenticate against IMAP_AUTH_HOST (email account)
473 //   POP3:          Authenticate against POP3_AUTH_HOST (email account)
474 //   File:          Store username:crypted-passwords in .htaccess like files. 
475 //                  Use Apache's htpasswd to manage this file.
476 //   HttpAuth:      Use the protection by the webserver (.htaccess) or 
477 //                  enforce it
478
479 if (defined('ALLOW_USER_PASSWORDS')) {
480
481     // use the following order of authentication methods:
482     if (!isset($USER_AUTH_ORDER))
483         $USER_AUTH_ORDER = 
484             array(
485 //                "BogoLogin",
486                   "PersonalPage",
487                   "Db",
488 //                "LDAP",    // define LDAP_AUTH_HOST and LDAP_BASE_DN
489 //                "IMAP",    // define IMAP_AUTH_HOST
490 //                "POP3",    // define POP3_AUTH_HOST
491 //                "File",    // define AUTH_USER_FILE and opt. AUTH_USER_FILE_STORABLE
492 //                "HttpAuth",
493                   ) ;
494
495     if (!defined('PASSWORD_LENGTH_MINIMUM')) define('PASSWORD_LENGTH_MINIMUM', 2);
496     
497     if (!defined('USER_AUTH_POLICY'))
498         //We support the following auth policies:
499         // first-only: use only the first method in USER_AUTH_ORDER
500         // old:        ignore USER_AUTH_ORDER and try to use all available 
501         //             methods as in the previous PhpWiki releases (slow)
502         // strict:     check if the user exists for all methods: 
503         //             on the first existing user, try the password. 
504         //             dont try the other methods on failure then
505         // stacked:    check the given user - password combination for all methods 
506         //             and return true on the first success.
507
508         //define('USER_AUTH_POLICY','first-only');
509         define('USER_AUTH_POLICY','old');
510         //define('USER_AUTH_POLICY','strict');
511         //define('USER_AUTH_POLICY','stacked');
512 }
513
514 // LDAP Auth:
515 if (!defined('LDAP_AUTH_HOST'))   define('LDAP_AUTH_HOST', "ldap://localhost:389");
516 //                                                      or "ldaps://server:636"
517 // The organizational or domain BASE DN: e.g. "dc=mydomain,dc=com" to restrict the search
518 // Note: ou=Users and ou=Groups are used for GroupLdap Membership
519 if (!defined('LDAP_BASE_DN')) define('LDAP_BASE_DN', "ou=Users,o=Development,dc=mycompany.com");
520 // LDAP Auth Optional:
521 // Some LDAP servers disallow anonymous binds, and need some more options,
522 // such as for the Windows Active Directory Server:
523 // $LDAP_SET_OPTION = array('LDAP_OPT_PROTOCOL_VERSION' => 3,
524 //                          'LDAP_OPT_REFERRALS' => 0);
525 // define(LDAP_AUTH_USER, "CN=ldapuser,CN=Users,DC=uai,DC=int");
526 // define(LDAP_AUTH_PASSWORD, '');
527 // define(LDAP_SEARCH_FIELD, 'sAMAccountName'); // might be different from uid, 
528 //                                                 here's its a Windows/Samba account
529
530 // IMAP auth: 
531 //   check userid/passwords from a imap server, defaults to localhost
532 if (!defined('IMAP_AUTH_HOST'))   define('IMAP_AUTH_HOST', 'localhost:143/imap/notls');
533 // Some IMAP_AUTH_HOST samples:
534 //   "localhost", "localhost:143/imap/notls", 
535 //   "localhost:993/imap/ssl/novalidate-cert" (SuSE refuses non-SSL conections)
536
537 // POP3 auth:
538 //if (!defined('POP3_AUTH_HOST'))   define('POP3_AUTH_HOST', 'localhost');
539 //if (!defined('POP3_AUTH_PORT'))   define('POP3_AUTH_PORT', '110');
540
541 // File auth:
542 //if (!defined('AUTH_USER_FILE')) define('AUTH_USER_FILE', '/etc/shadow'); // or '/etc/httpd/.htpasswd'
543 // set this to true if the user may change his password into this file.
544 //if (!defined('AUTH_USER_FILE_STORABLE')) define('AUTH_USER_FILE_STORABLE',false);
545
546 // Group membership:
547 //if (!defined('GROUP_METHOD')) define('GROUP_METHOD', "NONE");
548 if (!defined('GROUP_METHOD')) define('GROUP_METHOD', "WIKIPAGE");
549 //if (!defined('GROUP_METHOD')) define('GROUP_METHOD', "DB");
550 //if (!defined('GROUP_METHOD')) define('GROUP_METHOD', "FILE");
551 //if (!defined('GROUP_METHOD')) define('GROUP_METHOD', "LDAP");
552 //if (!defined('AUTH_GROUP_FILE')) define('AUTH_GROUP_FILE', '/etc/groups'); // or '/etc/httpd/.htgroup'
553
554 // Seperate DB User Authentication.
555 //   Can be external, like radius, phpnuke, courier authmysql,
556 //   apache auth_mysql or something else.
557 // The default is to store the data as metadata in the users PersonalPage.
558 // The most likely dsn option is the same dsn as the wikipages.
559 // 
560 // Note: Order of variables important!
561 $DBAuthParams = array (
562    // if not defined use $DBParams['dsn'] i.e. the phpwiki database
563    //'auth_dsn'         => 'mysql://localhost/phpwiki',
564
565    // USER => PASSWORD
566    // plaintext passwords:
567    //  'auth_check'  => 'SELECT IF(passwd="$password",1,0) as ok FROM user WHERE userid="$userid"',
568    // database (md5) passwords (more secure):
569    'auth_check'  => 'SELECT IF(passwd=PASSWORD("$password"),1,0) as ok FROM user WHERE userid="$userid"',
570    // crypt passwords:
571    //'auth_check'  => 'SELECT password as password FROM user WHERE userid="$userid"',
572    // this is only needed with auth_crypt_method plain:
573    'auth_user_exists'  => 'SELECT userid FROM user WHERE userid="$userid"',
574
575    //'auth_crypt_method'  => 'crypt',     // 'crypt' (unix)
576    'auth_crypt_method'  => 'plain',       // plain or secure mysql PASSWORD()
577
578    // If 'auth_update' is not defined but 'auth_check' is defined, the user cannot 
579    // change his password.
580    // $password is processed  by the 'auth_crypt_method'
581    //'auth_update'  => 'UPDATE user SET passwd="$password" WHERE userid="$userid"',
582    // for mysql md5 use 'auth_crypt_method'  => 'plain'
583    'auth_update'  => 'UPDATE user SET passwd=PASSWORD("$password") WHERE userid="$userid"',
584
585    // Let a user create himself. Generally in external databases not wanted.
586    //'auth_create'  => 'INSERT INTO user SET passwd=PASSWORD("$password"),userid="$userid"',
587
588    // USER => PREFERENCES
589    //   This can be optionally defined in the phpwiki db.
590    //   The default is to store it the users homepage.
591    // If you choose the user table, only registered user get their prefs from the DB,
592    // self-created users not. Better use the special pref table.
593    //'pref_select' => 'SELECT prefs FROM user WHERE userid="$userid"',
594    'pref_select' => 'SELECT prefs FROM pref WHERE userid="$userid"',
595    //Don't use replace with user or all other fields here get erased! (passwords e.g.)
596    //'pref_update' => 'UPDATE user SET prefs="$pref_blob" WHERE userid="$userid"',
597    // The special prefs table is safe to erase. All users can store their prefs here.
598    'pref_update' => 'REPLACE INTO pref SET prefs="$pref_blob",userid="$userid"',
599
600    // USERS <=> GROUPS
601    //   DB methods for lib/WikiGroup.php, see also AUTH_GROUP_FILE above.
602    // You can define 1:n or n:m user<=>group relations, as you wish.
603    // Sample configurations
604    //   only one group per user (1:n):
605    //'is_member' => 'SELECT user FROM user WHERE user="$userid" AND group="$groupname"',
606    //'group_members' => 'SELECT user FROM user WHERE group="$groupname"',
607    //'user_groups' => 'SELECT group FROM user WHERE user="$userid"',
608    //   or multiple groups per user (n:m):
609    'is_member' => 'SELECT userid FROM member WHERE userid="$userid" AND groupname="$groupname"',
610    'group_members' => 'SELECT DISTINCT userid FROM member WHERE groupname="$groupname"',
611    'user_groups' => 'SELECT groupname FROM member WHERE userid="$userid"',
612
613    'dummy' => false,
614 );
615
616 // Old settings, only needed for ENABLE_USER_NEW = false
617 //
618 // The wiki can be protected by HTTP Auth. Use the username and password 
619 // from there, but this is not sufficient. Try the other methods also.
620 if (!defined('ALLOW_HTTP_AUTH_LOGIN')) define('ALLOW_HTTP_AUTH_LOGIN', false);
621 // If ALLOW_USER_LOGIN is true, any defined internal and external
622 // authentication method is tried. If not, we don't care about
623 // passwords, but listen to the next two constants. Note that external
624 // authentication is not supported at this time, you will likely have
625 // to patch code yourself to get PhpWiki to recognise userids and
626 // passwords from an external source.
627 if (!defined('ALLOW_USER_LOGIN')) define('ALLOW_USER_LOGIN', false);
628 // also only if ENABLE_USER_NEW = false:
629 //if (!defined('ALLOW_LDAP_LOGIN')) define('ALLOW_LDAP_LOGIN', true and function_exists('ldap_connect'));
630 //if (!defined('ALLOW_IMAP_LOGIN')) define('ALLOW_IMAP_LOGIN', true and function_exists('imap_open'));
631
632 // A interim page which gets displayed on every edit attempt
633 //if (!defined('EDITING_POLICY')) define('EDITING_POLICY', "EditingPolicy");
634
635
636 /////////////////////////////////////////////////////////////////////
637 //
638 // Part Four:
639 // Page appearance and layout
640 //
641 /////////////////////////////////////////////////////////////////////
642
643 /* THEME
644  *
645  * Most of the page appearance is controlled by files in the theme
646  * subdirectory.
647  *
648  * There are a number of pre-defined themes shipped with PhpWiki.
649  * Or you may create your own (e.g. by copying and then modifying one of
650  * stock themes.)
651  *
652  * Pick one.
653  */
654 if (!defined('THEME')) {
655 define('THEME', 'default');
656 //define('THEME', 'smaller');
657 //define('THEME', 'Hawaiian');
658 //define('THEME', 'MacOSX');
659 //define('THEME', 'Portland');
660 //define('THEME', 'Sidebar');
661 //define('THEME', 'SpaceWiki');
662 //define('THEME', 'wikilens');
663 //define('THEME', 'Wordpress');
664 }
665
666 // Select a valid charset name to be inserted into the xml/html pages,
667 // and to reference links to the stylesheets (css). For more info see:
668 // <http://www.iana.org/assignments/character-sets>. Note that PhpWiki
669 // has been extensively tested only with the latin1 (iso-8859-1)
670 // character set.
671 //
672 // If you change the default from iso-8859-1 PhpWiki may not work
673 // properly and will require code modifications, at the very least you
674 // will have to convert the files in pgsrc or locale/xx/pgsrc to
675 // match!
676 //
677 // Character sets similar to iso-8859-1 may work with little or no
678 // modification depending on your setup. The database must also
679 // support the same charset, and of course the same is true for the
680 // web browser. (Some work is in progress hopefully to allow more
681 // flexibility in this area in the future).
682 // Japanese must define "utf-8".
683 if (!defined('CHARSET')) define("CHARSET", "iso-8859-1");
684
685 // Select your language/locale - default language is "en" for English.
686 // Other languages available:
687 // English "en"  (English    - HomePage)
688 // Dutch   "nl" (Nederlands - ThuisPagina)
689 // Spanish "es" (Español    - PáginaPrincipal)
690 // French  "fr" (Français   - Accueil)
691 // German  "de" (Deutsch    - StartSeite)
692 // Swedish "sv" (Svenska    - Framsida)
693 // Italian "it" (Italiano   - PaginaPrincipale)
694 // Japanese "ja" (Japanese   - ¥Û¡¼¥à¥Ú¡¼¥¸)
695 //
696 // If you set DEFAULT_LANGUAGE to the empty string, your system's
697 // default language (as determined by the applicable environment
698 // variables) will be used.
699 // Note: The users language will be defined in $GLOBALS['LANG'], 
700 // which overrides the DEFAULT_LANGUAGE. See wiki.
701 //
702 if (!defined('DEFAULT_LANGUAGE')) define('DEFAULT_LANGUAGE', 'en');
703
704 /* WIKI_PGSRC -- specifies the source for the initial page contents of
705  * the Wiki. The setting of WIKI_PGSRC only has effect when the wiki is
706  * accessed for the first time (or after clearing the database.)
707  * WIKI_PGSRC can either name a directory or a zip file. In either case
708  * WIKI_PGSRC is scanned for files -- one file per page.
709  */
710 if (!defined('WIKI_PGSRC')) define('WIKI_PGSRC', "pgsrc"); // Default (old) behavior.
711 //define('WIKI_PGSRC', 'wiki.zip'); // New style.
712 //define('WIKI_PGSRC', '../../../Logs/Hamwiki/hamwiki-20010830.zip'); // New style.
713
714 /*
715  * DEFAULT_WIKI_PGSRC is only used when the language is *not* the
716  * default (English) and when reading from a directory: in that case
717  * some English pages are inserted into the wiki as well.
718  * DEFAULT_WIKI_PGSRC defines where the English pages reside.
719  */
720 // FIXME: is this really needed?  Can't we just copy these pages into
721 // the localized pgsrc?
722 define('DEFAULT_WIKI_PGSRC', "pgsrc");
723 // These are the pages which will get loaded from DEFAULT_WIKI_PGSRC.   
724 $GenericPages = array("ReleaseNotes", "SteveWainstead", "TestPage");
725
726 /////////////////////////////////////////////////////////////////////
727 //
728 // Part Five:
729 // Mark-up options.
730 // 
731 /////////////////////////////////////////////////////////////////////
732
733 // allowed protocols for links - be careful not to allow "javascript:"
734 // URL of these types will be automatically linked.
735 // within a named link [name|uri] one more protocol is defined: phpwiki
736 $AllowedProtocols = "http|https|mailto|ftp|news|nntp|ssh|gopher";
737
738 // URLs ending with the following extension should be inlined as images
739 $InlineImages = "png|jpg|gif";
740
741 // Perl regexp for WikiNames ("bumpy words")
742 // (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
743 $WikiNameRegexp = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])";
744
745 // Defaults to '/', but '.' was also used.
746 if (!defined('SUBPAGE_SEPARATOR')) define('SUBPAGE_SEPARATOR', '/');
747
748 // InterWiki linking -- wiki-style links to other wikis on the web
749 //
750 // The map will be taken from a page name InterWikiMap.
751 // If that page is not found (or is not locked), or map
752 // data can not be found in it, then the file specified
753 // by INTERWIKI_MAP_FILE (if any) will be used.
754 define('INTERWIKI_MAP_FILE', "lib/interwiki.map");
755
756 // Display a warning if the internal lib/interwiki.map is used, and 
757 // not the public InterWikiMap page. This file is not readable from outside.
758 //define('WARN_NONPUBLIC_INTERWIKIMAP', false);
759
760 // Regexp used for automatic keyword extraction.
761 //
762 // Any links on a page to pages whose names match this regexp will
763 // be used keywords in the keywords meta tag.  (This is an aid to
764 // classification by search engines.)  The value of the match is
765 // used as the keyword.
766 //
767 // The default behavior is to match Category* and Topic* links.
768 $keywords = array("Category", "Topic");
769 $KeywordLinkRegexp = '(?<=^'. join('|^', $keywords) . ')[[:upper:]].*$';
770
771 // Author and Copyright Site Navigation Links
772 //
773 // These will be inserted as <link rel> tags in the html header of
774 // every page, for search engines and for browsers like Mozilla which
775 // take advantage of link rel site navigation.
776 //
777 // If you have your own copyright and contact information pages change
778 // these as appropriate.
779 if (!defined('COPYRIGHTPAGE_TITLE')) define('COPYRIGHTPAGE_TITLE',
780     "GNU General Public License");
781 if (!defined('COPYRIGHTPAGE_URL')) define('COPYRIGHTPAGE_URL',
782     'http://www.gnu.org/copyleft/gpl.html#SEC1');
783 if (!defined('AUTHORPAGE_TITLE')) define('AUTHORPAGE_TITLE',
784     "The PhpWiki Programming Team");
785 if (!defined('AUTHORPAGE_URL')) define('AUTHORPAGE_URL',
786     'http://phpwiki.sourceforge.net/phpwiki/ThePhpWikiProgrammingTeam');
787
788
789 /////////////////////////////////////////////////////////////////////
790 //
791 // Part Six:
792 // URL options -- you can probably skip this section.
793 //
794 /////////////////////////////////////////////////////////////////////
795 /******************************************************************
796  *
797  * The following section contains settings which you can use to tailor
798  * the URLs which PhpWiki generates.
799  *
800  * Any of these parameters which are left undefined will be deduced
801  * automatically. You need only set them explicitly if the
802  * auto-detected values prove to be incorrect.
803  *
804  * In most cases the auto-detected values should work fine, so
805  * hopefully you don't need to mess with this section.
806  *
807  * In case of local overrides of short placeholders, which themselves 
808  * include index.php, we check for most constants. See '/wiki'.
809  * We can override DATA_PATH and PHPWIKI_DIR to support multiple phpwiki 
810  * versions (for development), but most likely other values like 
811  * THEME, $LANG and $DbParams for a WikiFarm.
812  *
813  ******************************************************************/
814
815 /*
816  * Canonical name and httpd port of the server on which this PhpWiki
817  * resides.
818  */
819 //if (!defined('SERVER_NAME')) define('SERVER_NAME', 'some.host.com');
820 //define('SERVER_PORT', 80);
821
822 /*
823  * Relative URL (from the server root) of the PhpWiki
824  * script.
825  */
826 //if (!defined('SCRIPT_NAME')) define('SCRIPT_NAME', '/some/where/index.php');
827
828 /*
829  * URL of the PhpWiki install directory.  (You only need to set this
830  * if you've moved index.php out of the install directory.)  This can
831  * be either a relative URL (from the directory where the top-level
832  * PhpWiki script is) or an absolute one.
833  */
834 //if (!defined('DATA_PATH')) define('DATA_PATH', '/home/user/phpwiki');
835
836 /*
837  * Path to the PhpWiki install directory.  This is the local
838  * filesystem counterpart to DATA_PATH.  (If you have to set
839  * DATA_PATH, your probably have to set this as well.)  This can be
840  * either an absolute path, or a relative path interpreted from the
841  * directory where the top-level PhpWiki script (normally index.php)
842  * resides.
843  */
844 //if (!defined('PHPWIKI_DIR')) define('PHPWIKI_DIR', 'C:/Apache/phpwiki');
845 //if (!defined('PHPWIKI_DIR')) define('PHPWIKI_DIR', '/home/user/public_html/phpwiki');
846
847 /*
848  * PhpWiki will try to use short urls to pages, eg 
849  * http://www.example.com/index.php/HomePage
850  * If you want to use urls like 
851  * http://www.example.com/index.php?pagename=HomePage
852  * then define 'USE_PATH_INFO' as false by uncommenting the line below.
853  * NB:  If you are using Apache >= 2.0.30, then you may need to to use
854  * the directive "AcceptPathInfo On" in your Apache configuration file
855  * (or in an appropriate <.htaccess> file) for the short urls to work:  
856  * See http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
857  * 
858  * See also http://phpwiki.sourceforge.net/phpwiki/PrettyWiki for more ideas
859  * on prettifying your urls.
860  *
861  * Default: PhpWiki will try to divine whether use of PATH_INFO
862  * is supported in by your webserver/PHP configuration, and will
863  * use PATH_INFO if it thinks that is possible.
864  */
865 //if (!defined('USE_PATH_INFO')) define('USE_PATH_INFO', false);
866
867 /*
868  * VIRTUAL_PATH is the canonical URL path under which your your wiki
869  * appears. Normally this is the same as dirname(SCRIPT_NAME), however
870  * using, e.g. apaches mod_actions (or mod_rewrite), you can make it
871  * something different.
872  *
873  * If you do this, you should set VIRTUAL_PATH here.
874  *
875  * E.g. your phpwiki might be installed at at /scripts/phpwiki/index.php,
876  * but  * you've made it accessible through eg. /wiki/HomePage.
877  *
878  * One way to do this is to create a directory named 'wiki' in your
879  * server root. The directory contains only one file: an .htaccess
880  * file which reads something like:
881  *
882  *    Action x-phpwiki-page /scripts/phpwiki/index.php
883  *    SetHandler x-phpwiki-page
884  *    DirectoryIndex /scripts/phpwiki/index.php
885  *
886  * In that case you should set VIRTUAL_PATH to '/wiki'.
887  *
888  * (VIRTUAL_PATH is only used if USE_PATH_INFO is true.)
889  */
890 //if (!defined('VIRTUAL_PATH')) define('VIRTUAL_PATH', '/SomeWiki');
891
892 /////////////////////////////////////////////////////////////////////
893 //
894 // Part Seven:
895 // Miscellaneous settings
896 //
897 /////////////////////////////////////////////////////////////////////
898
899 /*
900  * Disable HTTP redirects.
901  *
902  * (You probably don't need to touch this.)
903  *
904  * PhpWiki uses HTTP redirects for some of it's functionality.
905  * (e.g. after saving changes, PhpWiki redirects your browser to
906  * view the page you just saved.)
907  *
908  * Some web service providers (notably free European Lycos) don't seem to
909  * allow these redirects.  (On Lycos the result in an "Internal Server Error"
910  * report.)  In that case you can set DISABLE_HTTP_REDIRECT to true.
911  * (In which case, PhpWiki will revert to sneakier tricks to try to
912  * redirect the browser...)
913  */
914 //if (!defined('DISABLE_HTTP_REDIRECT')) define ('DISABLE_HTTP_REDIRECT', true);
915
916 //if (defined('WIKI_SOAP') and WIKI_SOAP) return;
917
918 ////////////////////////////////////////////////////////////////
919 // PrettyWiki
920 // Check if we were included by some other wiki version 
921 // (getimg.php, en, de, wiki, ...) or not. 
922 // If the server requested this index.php fire up the code by loading lib/main.php.
923 // Parallel wiki scripts can now simply include /index.php for the 
924 // main configuration, extend or redefine some settings and 
925 // load lib/main.php by themselves. See the file 'wiki'.
926 // This overcomes the IndexAsConfigProblem.
927 // Generally a simple 
928 //   define('VIRTUAL_PATH', $_SERVER['SCRIPT_NAME']);
929 // is enough in the wiki file, plus the action definition in a .htaccess file
930 ////////////////////////////////////////////////////////////////
931
932 // If your lib/main.php is not loaded, comment that out, and  
933 // uncomment the include "lib/main.php" line below.
934 if (defined('VIRTUAL_PATH') and defined('USE_PATH_INFO')) {
935     if ($HTTP_SERVER_VARS['SCRIPT_NAME'] != VIRTUAL_PATH) {
936         include "lib/main.php";
937     }
938     elseif (defined('SCRIPT_NAME') and 
939             ($HTTP_SERVER_VARS['SCRIPT_NAME'] != SCRIPT_NAME)) {
940         include "lib/main.php";
941     }
942 } else {
943     if (defined('SCRIPT_NAME') and 
944         ($HTTP_SERVER_VARS['SCRIPT_NAME'] == SCRIPT_NAME)) {
945         include "lib/main.php";
946     } elseif (strstr($HTTP_SERVER_VARS['PHP_SELF'],'index.php')) {
947         include "lib/main.php";
948     }
949 }
950 //include "lib/main.php";
951
952 // $Log: not supported by cvs2svn $
953 // Revision 1.136  2004/04/10 04:14:13  rurban
954 // sf.net 906436 Suggestion
955 //
956 // Revision 1.135  2004/04/10 03:33:03  rurban
957 // Oops revert
958 //
959 // Revision 1.134  2004/04/10 02:55:48  rurban
960 // fixed old WikiUser
961 //
962 // Revision 1.133  2004/04/08 01:22:53  rurban
963 // fixed PageChange Notification
964 //
965 // Revision 1.132  2004/04/01 15:57:10  rurban
966 // simplified Sidebar theme: table, not absolute css positioning
967 // added the new box methods.
968 // remaining problems: large left margin, how to override _autosplitWikiWords in Template only
969 //
970 // Revision 1.131  2004/03/14 16:24:35  rurban
971 // authenti(fi)cation spelling
972 //
973 // Revision 1.130  2004/03/09 17:16:43  rurban
974 // fixed $LDAP_SET_OPTION
975 //
976 // Revision 1.129  2004/02/29 04:10:55  rurban
977 // new POP3 auth (thanks to BiloBilo: pentothal at despammed dot com)
978 // fixed syntax error in index.php
979 //
980 // Revision 1.128  2004/02/29 02:06:05  rurban
981 // And this is the SOAP server. Just a view methods for now. (page content)
982 // I would like to see common-wiki soap wdsl.
983 //
984 // "SOAP is a bloated, over engineered mess of a perfectly trivial concept. Sigh."
985 //   -- http://www.wlug.org.nz/SOAP
986 //
987 // Revision 1.127  2004/02/28 21:18:29  rurban
988 // new SQL auth_create, don't ever use REPLACE sql calls!
989 // moved HttpAuth to the end of the chain
990 // PrettyWiki enabled again
991 //
992 // Revision 1.126  2004/02/27 16:27:48  rurban
993 // REPLACE is a dirty hack, and erases passwd btw.
994 //
995 // Revision 1.125  2004/02/24 02:51:57  rurban
996 // release 1.3.8 ready
997 //
998 // Revision 1.124  2004/02/16 00:20:30  rurban
999 // new Japanses language
1000 //
1001 // Revision 1.123  2004/02/09 03:58:07  rurban
1002 // for now default DB_SESSION to false
1003 // PagePerm:
1004 //   * not existing perms will now query the parent, and not
1005 //     return the default perm
1006 //   * added pagePermissions func which returns the object per page
1007 //   * added getAccessDescription
1008 // WikiUserNew:
1009 //   * added global ->prepare (not yet used) with smart user/pref/member table prefixing.
1010 //   * force init of authdbh in the 2 db classes
1011 // main:
1012 //   * fixed session handling (not triple auth request anymore)
1013 //   * don't store cookie prefs with sessions
1014 // stdlib: global obj2hash helper from _AuthInfo, also needed for PagePerm
1015 //
1016 // Revision 1.122  2004/02/07 14:20:18  rurban
1017 // consistent mysql schema with index.php (userid)
1018 //
1019 // Revision 1.121  2004/02/07 10:41:25  rurban
1020 // fixed auth from session (still double code but works)
1021 // fixed GroupDB
1022 // fixed DbPassUser upgrade and policy=old
1023 // added GroupLdap
1024 //
1025 // Revision 1.120  2004/02/03 09:45:39  rurban
1026 // LDAP cleanup, start of new Pref classes
1027 //
1028 // Revision 1.119  2004/02/01 09:14:10  rurban
1029 // Started with Group_Ldap (not yet ready)
1030 // added new _AuthInfo plugin to help in auth problems (warning: may display passwords)
1031 // fixed some configurator vars
1032 // renamed LDAP_AUTH_SEARCH to LDAP_BASE_DN
1033 // changed PHPWIKI_VERSION from 1.3.8a to 1.3.8pre
1034 // USE_DB_SESSION defaults to true on SQL
1035 // changed GROUP_METHOD definition to string, not constants
1036 // changed sample user DBAuthParams from UPDATE to REPLACE to be able to
1037 //   create users. (Not to be used with external databases generally, but
1038 //   with the default internal user table)
1039 //
1040 // fixed the IndexAsConfigProblem logic. this was flawed:
1041 //   scripts which are the same virtual path defined their own lib/main call
1042 //   (hmm, have to test this better, phpwiki.sf.net/demo works again)
1043 //
1044 // Revision 1.118  2004/01/28 14:34:13  rurban
1045 // session table takes the common prefix
1046 // + various minor stuff
1047 // reallow password changing
1048 //
1049 // Revision 1.117  2004/01/27 23:25:50  rurban
1050 // added new tables to mysql schema
1051 // fixed default DBAUthParam samples to match these
1052 // added group constants (look terrible, I'd prefer strings instead of constants)
1053 //
1054 // Revision 1.116  2004/01/25 04:21:02  rurban
1055 // WikiUserNew support (temp. ENABLE_USER_NEW constant)
1056 //
1057 // Revision 1.115  2003/12/22 04:58:11  carstenklapp
1058 // Incremented release version.
1059 //
1060 // Revision 1.114  2003/12/05 16:00:42  carstenklapp
1061 // ACK! gettext is not available at this point in index.php.
1062 //
1063 // Revision 1.113  2003/12/05 15:51:37  carstenklapp
1064 // Added note that use of the configurator is depreciated.
1065 //
1066 // Enable localization/gettextification of $KeywordLinkRegexp. (Also, now
1067 // users not familiar with regex can more easily just edit the $keywords
1068 // array).
1069 //
1070 // Added four new constants to define author and copyright link rel~s
1071 // used in html head. This makes it easier to run multiple wikis off of
1072 // one set of code.
1073 //
1074 // Eliminated RECENT_CHANGES constant for RSS auto discovery because it's
1075 // another step to watch out for when running a non-english wiki. Now
1076 // simply defined as _("RecentChanges") in head.tmpl itself. Non-standard
1077 // wikis where the RecentChanges page has been named to something else
1078 // will have to modify this in head.tmpl (along with all other places the
1079 // word RecentChanges appears in the code, something that already would
1080 // have had to be done on such a wiki anyway).
1081 //
1082 // Added a little more info and instructions to flesh out:
1083 // DEBUG, WIKI_NAME, ADMIN_USER, $DisabledActions, $DBParams, CHARSET.
1084 //
1085 // A few typos and spelling mistakes corrected, and some text rewrapped.
1086 //
1087 // Revision 1.112  2003/11/17 15:49:21  carstenklapp
1088 // Updated version number to 1.3.7pre (beyond current release
1089 // 1.3.6). Disabled DEBUG output by default (hide DebugInfo, XHTML &
1090 // CSS validator buttons). Note the DebugInfo button remains visible
1091 // for the Admin, and can be accessed by anyone else by adding
1092 // "?action=DebugInfo" to the URL for the occasional use.
1093 //
1094 // Revision 1.111  2003/03/18 21:40:04  dairiki
1095 // Copy Lawrence's memo on USE_PATH_INFO/AcceptPathInfo to configurator.php
1096 // (as promised).
1097 //
1098 // Plus slight clarification of default (auto-detect) behavior.
1099 //
1100 // Revision 1.110  2003/03/18 20:51:10  lakka
1101 // Revised comments on use of USE_PATH_INFO with Apache 2
1102 //
1103 // Revision 1.109  2003/03/17 21:24:50  dairiki
1104 // Fix security bugs in the RawHtml plugin.
1105 //
1106 // Change the default configuration to allow use of plugin, since
1107 // I believe the plugin is now safe for general use. (Raw HTML will only
1108 // work on locked pages.)
1109 //
1110 // Revision 1.108  2003/03/07 22:47:01  dairiki
1111 // A few more if(!defined(...))'s
1112 //
1113 // Revision 1.107  2003/03/07 20:51:54  dairiki
1114 // New feature: Automatic extraction of keywords (for the meta keywords tag)
1115 // from Category* and Topic* links on each page.
1116 //
1117 // Revision 1.106  2003/03/07 02:48:23  dairiki
1118 // Add option to prevent HTTP redirect.
1119 //
1120 // Revision 1.105  2003/03/04 02:08:08  dairiki
1121 // Fix and document the WIKIDB_NOCACHE_MARKUP config define.
1122 //
1123 // Revision 1.104  2003/02/26 02:55:52  dairiki
1124 // New config settings in index.php to control cache control strictness.
1125 //
1126 // Revision 1.103  2003/02/22 19:43:50  dairiki
1127 // Fix comment regarding connecting to SQL server over a unix socket.
1128 //
1129 // Revision 1.102  2003/02/22 18:53:38  dairiki
1130 // Renamed method Request::compress_output to Request::buffer_output.
1131 //
1132 // Added config option to disable compression.
1133 //
1134 // Revision 1.101  2003/02/21 19:29:30  dairiki
1135 // Update PHPWIKI_VERSION to 1.3.5pre.
1136 //
1137 // Revision 1.100  2003/01/04 03:36:58  wainstead
1138 // Added 'file' as a database type alongside 'dbm'; added cvs log tag
1139 //
1140
1141 // (c-file-style: "gnu")
1142 // Local Variables:
1143 // mode: php
1144 // tab-width: 8
1145 // c-basic-offset: 4
1146 // c-hanging-comment-ender-p: nil
1147 // indent-tabs-mode: nil
1148 // End:   
1149 ?>