4 Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam = array(
5 "Steve Wainstead", "Clifford A. Adams", "Lawrence Akka",
6 "Scott R. Anderson", "Jon Åslund", "Neil Brown", "Jeff Dairiki",
7 "Stéphane Gourichon", "Jan Hidders", "Arno Hollosi", "John Jorgensen",
8 "Antti Kaihola", "Jeremie Kass", "Carsten Klapp", "Marco Milanesi",
9 "Grant Morgan", "Jan Nieuwenhuizen", "Aredridel Niothke",
10 "Pablo Roca Rozas", "Sandino Araico Sánchez", "Joel Uckelman",
11 "Reini Urban", "Tim Voght", "Joseph (Joby) Walker");
13 This file is part of PhpWiki.
15 PhpWiki is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
20 PhpWiki is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
25 You should have received a copy of the GNU General Public License
26 along with PhpWiki; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
31 /////////////////////////////////////////////////////////////////////
33 This is the starting file for PhpWiki. All this file does is set
34 configuration options, and at the end of the file it includes() the
35 file lib/main.php, where the real action begins.
37 This file is divided into seven parts: Parts Zero, One, Two, Three,
38 Four, Five and Six. Each one has different configuration settings you can
39 change; in all cases the default should work on your system,
40 however, we recommend you tailor things to your particular setting.
43 /////////////////////////////////////////////////////////////////////
44 // Part Zero: If PHP needs help in finding where you installed the
45 // rest of the PhpWiki code, you can set the include_path here.
47 // NOTE: phpwiki uses the PEAR library of php code for SQL database
48 // access. Your PHP is probably already configured to set
49 // include_path so that PHP can find the pear code. If not (or if you
50 // change include_path here) make sure you include the path to the
51 // PEAR code in include_path. (To find the PEAR code on your system,
52 // search for a file named 'PEAR.php'. Some common locations are:
56 // /usr/local/share/php
58 // /System/Library/PHP
60 // The above examples are already included by PhpWiki. You shouldn't
61 // have to change this unless you see a WikiFatalError:
63 // lib/FileFinder.php:82: Fatal[256]: DB.php: file not found
65 // Define the include path for this wiki: pear plus the phpwiki path
66 // $include_path = '.:/usr/share/pear:/usr/local/httpd/phpwiki';
68 // // Windows needs ';' as path delimiter. cygwin, mac and unix ':'
69 // if (substr(PHP_OS,0,3) == 'WIN') {
70 // $include_path = implode(';',explode(':',$include_path));
71 // } elseif (substr(PHP_OS,0,6) == 'CYGWIN') {
72 // $include_path = '.:/usr/local/lib/php/pear:/usr/src/php/phpwiki';
76 if (!empty($include_path)) ini_set('include_path', $include_path);
78 /////////////////////////////////////////////////////////////////////
81 // Authentication and security settings. See Part Three for more.
83 /////////////////////////////////////////////////////////////////////
85 // The name of your wiki.
86 // This is used to generate a keywords meta tag in the HTML templates,
87 // in bookmark titles for any bookmarks made to pages in your wiki,
88 // and during RSS generation for the <title> of the RSS channel.
89 if (!defined('WIKI_NAME')) define('WIKI_NAME', 'PhpWiki');
91 // If set, we will perform reverse dns lookups to try to convert the
92 // users IP number to a host name, even if the http server didn't do
94 if (!defined('ENABLE_REVERSE_DNS')) define('ENABLE_REVERSE_DNS', true);
96 // Username and password of administrator.
97 // Set these to your preferences. For heaven's sake
98 // pick a good password or use our passwordencrypt.php tool.
99 if (!defined('ADMIN_USER')) define('ADMIN_USER', "");
100 if (!defined('ADMIN_PASSWD')) define('ADMIN_PASSWD', "");
101 // If you used the passencrypt.php utility to encode the password
102 // then uncomment this line. Recommended!
103 if (!defined('ENCRYPTED_PASSWD')) define('ENCRYPTED_PASSWD', true);
105 // If true, only the admin user can make zip dumps, else zip dumps
106 // require no authentication.
107 if (!defined('ZIPDUMP_AUTH')) define('ZIPDUMP_AUTH', true);
109 // Don't do this on a publicly accessable wiki for now.
110 if (!defined('ENABLE_RAW_HTML')) define('ENABLE_RAW_HTML', false);
112 // If you define this to true, (MIME-type) page-dumps (either zip dumps,
113 // or "dumps to directory" will be encoded using the quoted-printable
114 // encoding. If you're actually thinking of mailing the raw page dumps,
115 // then this might be useful, since (among other things,) it ensures
116 // that all lines in the message body are under 80 characters in length.
118 // Also, setting this will cause a few additional mail headers
119 // to be generated, so that the resulting dumps are valid
120 // RFC 2822 e-mail messages.
122 // Probably, you can just leave this set to false, in which case you get
123 // raw ('binary' content-encoding) page dumps.
124 if (!defined('STRICT_MAILABLE_PAGEDUMPS'))define('STRICT_MAILABLE_PAGEDUMPS', false);
126 // Here you can change the filename suffix used for XHTML page dumps.
127 // If you don't want any suffix just comment this out.
128 if (!isset($HTML_DUMP_SUFFIX)) $HTML_DUMP_SUFFIX = '.html';
130 // The maximum file upload size.
131 if (!defined('MAX_UPLOAD_SIZE')) define('MAX_UPLOAD_SIZE', 16 * 1024 * 1024);
133 // If the last edit is older than MINOR_EDIT_TIMEOUT seconds, the
134 // default state for the "minor edit" checkbox on the edit page form
136 if (!defined('MINOR_EDIT_TIMEOUT')) define("MINOR_EDIT_TIMEOUT", 7 * 24 * 3600);
138 // Actions listed in this array will not be allowed.
139 //$DisabledActions = array('dumpserial', 'loadfile');
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 file.
143 //define('ACCESS_LOG', '/tmp/wiki_access_log');
145 /////////////////////////////////////////////////////////////////////
148 // Database Selection
150 /////////////////////////////////////////////////////////////////////
153 // This array holds the parameters which select the database to use.
155 // Not all of these parameters are used by any particular DB backend.
157 if (!isset($DBParams)) {
159 // Select the database type:
160 // Choose ADODB or SQL to use an SQL database with ADODB or PEAR.
161 // Choose dba to use one of the standard UNIX dbm libraries.
162 //'dbtype' => 'ADODB',
166 // For SQL based backends, specify the database as a DSN
167 // The most general form of a DSN looks like:
169 // phptype(dbsyntax)://username:password@protocol+hostspec/database
171 // For a MySQL database, the following should work:
173 // mysql://user:password@host/databasename
175 // FIXME: My version Pear::DB seems to be broken enough that there
176 // is no way to connect to a mysql server over a socket right now.
177 //'dsn' => 'mysql://guest@:/var/lib/mysql/mysql.sock/test',
178 //'dsn' => 'mysql://guest@localhost/test',
179 //'dsn' => 'pgsql://localhost/test',
182 'db_session_table' => 'session',
184 // Used by all DB types:
186 // prefix for filenames or table names
188 * currently you MUST EDIT THE SQL file too (in the schemas/
189 * directory because we aren't doing on the fly sql generation
190 * during the installation.
192 //'prefix' => 'phpwiki_',
194 // Used only by 'dba'
195 'directory' => "/tmp",
196 'dba_handler' => 'gdbm', // Either of 'gdbm' or 'db2' work great for me.
197 //'dba_handler' => 'db2',
198 //'dba_handler' => 'db3', // Works fine on Windows, but not on every linux.
199 //'dba_handler' => 'dbm', // On sf.net redhat there's dbm and gdbm.
200 // dbm suffers from limits on size of data items?
206 // Only for 'dbtype' => 'SQL'. See schemas/mysql.sql or schemas/psql.sql
207 //define('USE_DB_SESSION',true);
209 /////////////////////////////////////////////////////////////////////
211 // The next section controls how many old revisions of each page are
212 // kept in the database.
214 // There are two basic classes of revisions: major and minor. Which
215 // class a revision belongs in is determined by whether the author
216 // checked the "this is a minor revision" checkbox when they saved the
219 // There is, additionally, a third class of revisions: author
220 // revisions. The most recent non-mergable revision from each distinct
221 // author is and author revision.
223 // The expiry parameters for each of those three classes of revisions
224 // can be adjusted seperately. For each class there are five
225 // parameters (usually, only two or three of the five are actually
226 // set) which control how long those revisions are kept in the
229 // max_keep: If set, this specifies an absolute maximum for the
230 // number of archived revisions of that class. This is
231 // meant to be used as a safety cap when a non-zero
232 // min_age is specified. It should be set relatively high,
233 // and it's purpose is to prevent malicious or accidental
234 // database overflow due to someone causing an
235 // unreasonable number of edits in a short period of time.
237 // min_age: Revisions younger than this (based upon the supplanted
238 // date) will be kept unless max_keep is exceeded. The age
239 // should be specified in days. It should be a
240 // non-negative, real number,
242 // min_keep: At least this many revisions will be kept.
244 // keep: No more than this many revisions will be kept.
246 // max_age: No revision older than this age will be kept.
248 // Supplanted date: Revisions are timestamped at the instant that they
249 // cease being the current revision. Revision age is computed using
250 // this timestamp, not the edit time of the page.
252 // Merging: When a minor revision is deleted, if the preceding
253 // revision is by the same author, the minor revision is merged with
254 // the preceding revision before it is deleted. Essentially: this
255 // replaces the content (and supplanted timestamp) of the previous
256 // revision with the content after the merged minor edit, the rest of
257 // the page metadata for the preceding version (summary, mtime, ...)
260 // Keep up to 8 major edits, but keep them no longer than a month.
261 if (!isset($ExpireParams['major']['max_age'])) $ExpireParams['major']['max_age'] = 32;
262 if (!isset($ExpireParams['major']['keep'])) $ExpireParams['major']['keep'] = 8;
263 // Keep up to 4 minor edits, but keep them no longer than a week.
265 if (!isset($ExpireParams['minor']['max_age'])) $ExpireParams['minor']['max_age'] = 7;
266 if (!isset($ExpireParams['minor']['keep'])) $ExpireParams['minor']['keep'] = 4;
268 // Keep the latest contributions of the last 8 authors up to a year.
269 // Additionally, (in the case of a particularly active page) try to
270 // keep the latest contributions of all authors in the last week (even
271 // if there are more than eight of them,) but in no case keep more
272 // than twenty unique author revisions.
273 if (!isset($ExpireParams['author']['max_age'])) $ExpireParams['author']['max_age'] = 365;
274 if (!isset($ExpireParams['author']['keep'])) $ExpireParams['author']['keep'] = 8;
275 if (!isset($ExpireParams['author']['min_age'])) $ExpireParams['author']['min_age'] = 7;
276 if (!isset($ExpireParams['author']['max_keep'])) $ExpireParams['author']['max_keep'] = 20;
278 /////////////////////////////////////////////////////////////////////
280 // Part Three: (optional)
281 // User Authentication
283 /////////////////////////////////////////////////////////////////////
285 // The wiki can be protected by HTTP Auth. Use the username and password
286 // from there, but this is not sufficient. Try the other methods also.
287 if (!defined('ALLOW_HTTP_AUTH_LOGIN')) define('ALLOW_HTTP_AUTH_LOGIN', false);
289 // If ALLOW_USER_LOGIN is true, any defined internal and external
290 // authentication method is tried.
291 // If not, we don't care about passwords, but listen to the next
293 if (!defined('ALLOW_USER_LOGIN')) define('ALLOW_USER_LOGIN', true);
295 // If ALLOW_BOGO_LOGIN is true, users are allowed to login (with
296 // any/no password) using any userid which:
297 // 1) is not the ADMIN_USER,
298 // 2) is a valid WikiWord (matches $WikiNameRegexp.)
299 // If true, users may be created by themselves. Otherwise we need seperate auth.
300 // This might be renamed to ALLOW_SELF_REGISTRATION.
301 if (!defined('ALLOW_BOGO_LOGIN')) define('ALLOW_BOGO_LOGIN', true);
303 // This will go away, with true page permissions.
304 // If set, then if an anonymous user attempts to edit a page he will
305 // be required to sign in. (If ALLOW_BOGO_LOGIN is true, of course,
306 // no password is required, but the user must still sign in under
307 // some sort of BogoUserId.)
308 if (!defined('REQUIRE_SIGNIN_BEFORE_EDIT')) define('REQUIRE_SIGNIN_BEFORE_EDIT', false);
310 // The login code now uses PHP's session support. Usually, the default
311 // configuration of PHP is to store the session state information in
312 // /tmp. That probably will work fine, but fails e.g. on clustered
313 // servers where each server has their own distinct /tmp (this is the
314 // case on SourceForge's project web server.) You can specify an
315 // alternate directory in which to store state information like so
316 // (whatever user your httpd runs as must have read/write permission
317 // in this directory):
319 //ini_set('session.save_path', 'some_other_directory');
321 // If your php was compiled with --enable-trans-sid it tries to
322 // add a PHPSESSID query argument to all URL strings when cookie
323 // support isn't detected in the client browser. For reasons
324 // which aren't entirely clear (PHP bug) this screws up the URLs
325 // generated by PhpWiki. Therefore, transparent session ids
326 // should be disabled. This next line does that.
328 // (At the present time, you will not be able to log-in to PhpWiki,
329 // unless your browser supports cookies.)
330 @ini_set('session.use_trans_sid', 0);
333 //if (!defined('ALLOW_LDAP_LOGIN')) define('ALLOW_LDAP_LOGIN', true and function_exists('ldap_connect'));
334 //if (!defined('LDAP_AUTH_HOST')) define('LDAP_AUTH_HOST', 'localhost:443');
335 // Give the right LDAP root search information in the next statement.
336 //if (!defined('LDAP_BASE_DN')) define('LDAP_BASE_DN', "ou=mycompany.com,o=My Company");
338 // IMAP auth: check userid/passwords from a imap server, defaults to localhost
339 //if (!defined('ALLOW_IMAP_LOGIN')) define('ALLOW_IMAP_LOGIN', true and function_exists('imap_open'));
340 //if (!defined('IMAP_AUTH_HOST')) define('IMAP_AUTH_HOST', 'localhost:443');
342 // Sample of external AuthDB mysql tables to check against
346 userid char(48) binary NOT NULL UNIQUE,
347 preferences text NULL default '',
350 INSERT INTO user VALUES ('ReiniUrban', 'a:1:{s:6:"passwd";s:13:"7cyrcMAh0grMI";}');
354 userid char(48) binary NOT NULL UNIQUE,
355 passwd char(48) binary default '*',
360 // external mysql member table
362 CREATE TABLE member (
363 user char(48) NOT NULL,
364 group char(48) NOT NULL default 'users',
366 KEY groupname (groupname)
368 INSERT INTO member VALUES ('wikiadmin', 'root');
369 INSERT INTO member VALUES ('TestUser', 'users');
373 // Seperate DB User Authentication.
374 // Can be external, like radius, phpnuke, courier authmysql,
375 // apache auth_mysql or something else.
376 // The default is to store the data as metadata in WikiPages.
377 // The most likely dsn option is the same dsn as the wikipages.
378 $DBAuthParams = array(
379 //'auth_dsn' => 'mysql://localhost/phpwiki',
382 'auth_check' => 'SELECT passwd FROM user WHERE username="$userid"',
383 // Alternatively we accept files also. (not yet)
384 //'auth_user_file' => '/etc/shadow', // '/etc/httpd/.htpasswd'
386 'auth_crypt_method' => 'crypt', // 'crypt' (unix) or 'md5' (mysql) or just 'plain'
387 // 'auth_crypt_method' => 'md5', // for 'mysql://localhost/mysql' users
388 // 'auth_crypt_method' => 'plain',
390 // If 'auth_update' is not defined but 'auth_check' is defined, the user cannot
391 // change his password.
392 // $password is processed by the 'auth_crypt_method'.
393 'auth_update' => 'UPDATE user SET password="$password" WHERE username="$userid"',
395 // USER => PREFERENCES
396 // This can be optionally defined in an external DB.
397 // The default is the users homepage.
398 //'pref_select' => 'SELECT pref from user WHERE username="$userid"',
399 //'pref_update' => 'UPDATE user SET prefs="$pref_blob" WHERE username="$userid"',
402 // This can be optionally defined in an external DB. The default is a
403 // special locked wikipage for groupmembers .(which?)
404 // All members of the group:
405 'group_members' => 'SELECT username FROM grouptable WHERE groupname="$group"',
406 // All groups this user belongs to:
407 'user_groups' => 'SELECT groupname FROM grouptable WHERE username="$userid"',
408 // Alternatively we accept files also. (not yet)
409 //'auth_group_file' => '/etc/groups', // '/etc/httpd/.htgroup'
415 /////////////////////////////////////////////////////////////////////
418 // Page appearance and layout
420 /////////////////////////////////////////////////////////////////////
424 * Most of the page appearance is controlled by files in the theme
427 * There are a number of pre-defined themes shipped with PhpWiki.
428 * Or you may create your own (e.g. by copying and then modifying one of
433 if (!defined('THEME')) define('THEME', 'default');
434 //define('THEME', 'Hawaiian');
435 //define('THEME', 'MacOSX');
436 //define('THEME', 'Portland');
437 //define('THEME', 'Sidebar');
438 //define('THEME', 'SpaceWiki');
440 // Select a valid charset name to be inserted into the xml/html pages,
441 // and to reference links to the stylesheets (css). For more info see:
442 // <http://www.iana.org/assignments/character-sets>. Note that PhpWiki
443 // has been extensively tested only with the latin1 (iso-8859-1)
446 // If you change the default from iso-8859-1 PhpWiki may not work
447 // properly and it will require code modifications. However, character
448 // sets similar to iso-8859-1 may work with little or no modification
449 // depending on your setup. The database must also support the same
450 // charset, and of course the same is true for the web browser. (Some
451 // work is in progress hopefully to allow more flexibility in this
452 // area in the future).
453 if (!defined('CHARSET')) define('CHARSET', "iso-8859-1");
455 // Select your language/locale - default language is "en" for English.
456 // Other languages available:
457 // English "en" (English - HomePage)
458 // Dutch "nl" (Nederlands - ThuisPagina)
459 // Spanish "es" (Español - PáginaPrincipal)
460 // French "fr" (Français - Accueil)
461 // German "de" (Deutsch - StartSeite)
462 // Swedish "sv" (Svenska - Framsida)
463 // Italian "it" (Italiano - PaginaPrincipale)
465 // If you set $LANG to the empty string, your systems default language
466 // (as determined by the applicable environment variables) will be
469 if (!defined('DEFAULT_LANGUAGE')) define('DEFAULT_LANGUAGE', 'en');
471 /* WIKI_PGSRC -- specifies the source for the initial page contents of
472 * the Wiki. The setting of WIKI_PGSRC only has effect when the wiki is
473 * accessed for the first time (or after clearing the database.)
474 * WIKI_PGSRC can either name a directory or a zip file. In either case
475 * WIKI_PGSRC is scanned for files -- one file per page.
477 if (!defined('WIKI_PGSRC')) define('WIKI_PGSRC', "pgsrc"); // Default (old) behavior.
478 //define('WIKI_PGSRC', 'wiki.zip'); // New style.
479 //define('WIKI_PGSRC', '../../../Logs/Hamwiki/hamwiki-20010830.zip'); // New style.
482 * DEFAULT_WIKI_PGSRC is only used when the language is *not* the
483 * default (English) and when reading from a directory: in that case
484 * some English pages are inserted into the wiki as well.
485 * DEFAULT_WIKI_PGSRC defines where the English pages reside.
487 // FIXME: is this really needed? Can't we just copy these pages into
488 // the localized pgsrc?
489 if (!defined('DEFAULT_WIKI_PGSRC')) define('DEFAULT_WIKI_PGSRC', "pgsrc");
490 // These are the pages which will get loaded from DEFAULT_WIKI_PGSRC.
491 if (!isset($GenericPages)) $GenericPages = array("ReleaseNotes", "SteveWainstead", "TestPage");
493 /////////////////////////////////////////////////////////////////////
498 /////////////////////////////////////////////////////////////////////
500 // allowed protocols for links - be careful not to allow "javascript:"
501 // URL of these types will be automatically linked.
502 // within a named link [name|uri] one more protocol is defined: phpwiki
503 if (!isset($AllowedProtocols)) $AllowedProtocols = "http|https|mailto|ftp|news|nntp|ssh|gopher";
505 // URLs ending with the following extension should be inlined as images
506 if (!isset($InlineImages)) $InlineImages = "png|jpg|gif";
508 // Perl regexp for WikiNames ("bumpy words")
509 // (?<!..) & (?!...) used instead of '\b' because \b matches '_' as well
510 if (!isset($WikiNameRegexp)) $WikiNameRegexp = "(?<![[:alnum:]])(?:[[:upper:]][[:lower:]]+){2,}(?![[:alnum:]])";
512 // Defaults to '/', but '.' was also used.
513 if (!defined('SUBPAGE_SEPARATOR')) define('SUBPAGE_SEPARATOR', '/');
515 // InterWiki linking -- wiki-style links to other wikis on the web
517 // The map will be taken from a page name InterWikiMap.
518 // If that page is not found (or is not locked), or map
519 // data can not be found in it, then the file specified
520 // by INTERWIKI_MAP_FILE (if any) will be used.
521 if (!defined('INTERWIKI_MAP_FILE')) define('INTERWIKI_MAP_FILE', "lib/interwiki.map");
523 // Display a warning if the internal lib/interwiki.map is used, and
524 // not the public InterWikiMap page. This map is not readable from outside.
525 if (!defined('WARN_NONPUBLIC_INTERWIKIMAP')) define('WARN_NONPUBLIC_INTERWIKIMAP', false);
527 /////////////////////////////////////////////////////////////////////
530 // URL options -- you can probably skip this section.
532 /////////////////////////////////////////////////////////////////////
533 /******************************************************************
535 * The following section contains settings which you can use to tailor
536 * the URLs which PhpWiki generates.
538 * Any of these parameters which are left undefined will be deduced
539 * automatically. You need only set them explicitly if the
540 * auto-detected values prove to be incorrect.
542 * In most cases the auto-detected values should work fine, so
543 * hopefully you don't need to mess with this section.
545 * In case of local overrides of short placeholders, which themselves
546 * include index.php, we check for most constants. See '/wiki'.
547 * We can override DATA_PATH and PHPWIKI_DIR to support multiple phpwiki
548 * versions (for development), but most likely other values like
549 * THEME, $LANG and $DbParams for a WikiFarm.
551 ******************************************************************/
554 * Canonical name and httpd port of the server on which this PhpWiki
557 //if (!defined('SERVER_NAME')) define('SERVER_NAME', 'some.host.com');
558 //define('SERVER_PORT', 80);
561 * Relative URL (from the server root) of the PhpWiki
564 //if (!defined('SCRIPT_NAME')) define('SCRIPT_NAME', '/some/where/index.php');
567 * URL of the PhpWiki install directory. (You only need to set this
568 * if you've moved index.php out of the install directory.) This can
569 * be either a relative URL (from the directory where the top-level
570 * PhpWiki script is) or an absolute one.
572 //if (!defined('DATA_PATH')) define('DATA_PATH', '/home/user/phpwiki');
575 * Path to the PhpWiki install directory. This is the local
576 * filesystem counterpart to DATA_PATH. (If you have to set
577 * DATA_PATH, your probably have to set this as well.) This can be
578 * either an absolute path, or a relative path interpreted from the
579 * directory where the top-level PhpWiki script (normally index.php)
582 //if (!defined('PHPWIKI_DIR')) define('PHPWIKI_DIR', 'C:/Apache/phpwiki');
583 //if (!defined('PHPWIKI_DIR')) define('PHPWIKI_DIR', '/home/user/public_html/phpwiki');
586 * Define to false to NOT use PATH_INFO to pass the pagename's.
587 * e.g. the old http://www.some.where/index.php?pagename=HomePage
588 * instead of http://www.some.where/index.php/HomePage
589 * or even better http://www.some.where/wiki/HomePage
591 * FIXME: more docs (maybe in README).
594 //if (!defined('USE_PATH_INFO')) define('USE_PATH_INFO', TRUE);
597 * VIRTUAL_PATH is the canonical URL path under which your your wiki
598 * appears. Normally this is the same as dirname(SCRIPT_NAME), however
599 * using, e.g. apaches mod_actions (or mod_rewrite), you can make it
600 * something different.
602 * If you do this, you should set VIRTUAL_PATH here.
604 * E.g. your phpwiki might be installed at at /scripts/phpwiki/index.php,
605 * but * you've made it accessible through eg. /wiki/HomePage.
607 * One way to do this is to create a directory named 'wiki' in your
608 * server root. The directory contains only one file: an .htaccess
609 * file which reads something like:
611 * Action x-phpwiki-page /scripts/phpwiki/index.php
612 * SetHandler x-phpwiki-page
613 * DirectoryIndex /scripts/phpwiki/index.php
615 * In that case you should set VIRTUAL_PATH to '/wiki'.
617 * (VIRTUAL_PATH is only used if USE_PATH_INFO is true.)
619 //if (!defined('VIRTUAL_PATH')) define('VIRTUAL_PATH', dirname('SCRIPT_NAME');
621 /////////////////////////////////////////////////////////////////////
624 // Miscellaneous settings
626 /////////////////////////////////////////////////////////////////////
629 * Page name of RecentChanges page. Used for RSS Auto-discovery
632 if (!defined('RECENT_CHANGES')) define ('RECENT_CHANGES', 'RecentChanges');
635 // (c-file-style: "gnu")
640 // c-hanging-comment-ender-p: nil
641 // indent-tabs-mode: nil