2 rcs_id('$Id: config.php,v 1.131 2005-02-05 15:32:09 rurban Exp $');
4 * NOTE: The settings here should probably not need to be changed.
5 * The user-configurable settings have been moved to IniConfig.php
6 * The run-time code has been moved to lib/IniConfig.php:fix_configs()
9 if (!defined("LC_ALL")) {
10 // Backward compatibility (for PHP < 4.0.5)
11 if (!check_php_version(4,0,5)) {
12 define("LC_ALL", "LC_ALL");
13 define("LC_CTYPE", "LC_CTYPE");
16 define("LC_CTYPE", 2);
20 define ('_DEBUG_VERBOSE', 1); // verbose msgs and add validator links on footer
21 define ('_DEBUG_PAGELINKS', 2); // list the extraced pagelinks at the top of each pages
22 define ('_DEBUG_PARSER', 4); // verbose parsing steps
23 define ('_DEBUG_TRACE', 8); // test php memory usage, prints php debug backtraces
24 define ('_DEBUG_INFO', 16);
25 define ('_DEBUG_APD', 32);
26 define ('_DEBUG_LOGIN', 64); // verbose login debug-msg (settings and reason for failure)
27 define ('_DEBUG_SQL', 128);
30 return (substr(php_sapi_name(),0,3) == 'cgi' and
31 isset($GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE']) and
32 @preg_match('/CGI/',$GLOBALS['HTTP_ENV_VARS']['GATEWAY_INTERFACE']));
36 // copy some $_ENV vars to $_SERVER for CGI compatibility. php does it automatically since when?
38 foreach (explode(':','SERVER_SOFTWARE:SERVER_NAME:GATEWAY_INTERFACE:SERVER_PROTOCOL:SERVER_PORT:REQUEST_METHOD:HTTP_ACCEPT:PATH_INFO:PATH_TRANSLATED:SCRIPT_NAME:QUERY_STRING:REMOTE_HOST:REMOTE_ADDR:REMOTE_USER:AUTH_TYPE:CONTENT_TYPE:CONTENT_LENGTH') as $key) {
39 $GLOBALS['HTTP_SERVER_VARS'][$key] = &$GLOBALS['HTTP_ENV_VARS'][$key];
44 // essential internal stuff
45 set_magic_quotes_runtime(0);
48 * Browser Detection Functions
51 * NS/IE < 4.0 doesn't accept < ? xml version="1.0" ? >
52 * NS/IE < 4.0 cannot display PNG
53 * NS/IE < 4.0 cannot display all XHTML tags
54 * NS < 5.0 needs textarea wrap=virtual
55 * IE55 has problems with transparent PNG's
58 function browserAgent() {
59 static $HTTP_USER_AGENT = false;
60 if ($HTTP_USER_AGENT !== false) return $HTTP_USER_AGENT;
61 if (!$HTTP_USER_AGENT)
62 $HTTP_USER_AGENT = @$GLOBALS['HTTP_SERVER_VARS']['HTTP_USER_AGENT'];
63 if (!$HTTP_USER_AGENT) // CGI
64 $HTTP_USER_AGENT = @$GLOBALS['HTTP_ENV_VARS']['HTTP_USER_AGENT'];
65 if (!$HTTP_USER_AGENT) // local CGI testing
66 $HTTP_USER_AGENT = 'none';
67 return $HTTP_USER_AGENT;
69 function browserDetect($match) {
70 return strstr(browserAgent(), $match);
72 // returns a similar number for Netscape/Mozilla (gecko=5.0)/IE/Opera features.
73 function browserVersion() {
74 if (strstr(browserAgent(), "Mozilla/4.0 (compatible; MSIE"))
75 return (float) substr(browserAgent(),30);
76 elseif (strstr(browserAgent(),"Mozilla/5.0 (compatible; Konqueror/"))
77 return (float) substr(browserAgent(),36);
79 return (float) substr(browserAgent(),8);
81 function isBrowserIE() {
82 return (browserDetect('Mozilla/') and
83 browserDetect('MSIE'));
85 // problem with transparent PNG's
86 function isBrowserIE55() {
87 return (isBrowserIE() and
88 browserVersion() > 5.1 and browserVersion() < 6.0);
90 // old Netscape prior to Mozilla
91 function isBrowserNetscape($version = false) {
92 $agent = (browserDetect('Mozilla/') and
93 ! browserDetect('Gecko/') and
94 ! browserDetect('MSIE'));
95 if ($version) return $agent and browserVersion() >= $version;
99 function isBrowserNS3() {
100 return (isBrowserNetscape() and browserVersion() < 4.0);
103 function isBrowserNS4() {
104 return (isBrowserNetscape() and browserVersion() < 5.0);
106 // must omit display alternate stylesheets: konqueror 3.1.4
107 // http://sourceforge.net/tracker/index.php?func=detail&aid=945154&group_id=6121&atid=106121
108 function isBrowserKonqueror($version = false) {
109 if ($version) return browserDetect('Konqueror/') and browserVersion() >= $version;
110 return browserDetect('Konqueror/');
112 // FIXME: MacOSX Safarai has certain limitations. Need detection and patches.
113 function isBrowserSafari($version = false) {
114 if ($version) return browserDetect('Safari/') and browserVersion() >= $version;
115 return browserDetect('Safari/');
120 * If $LANG is undefined:
121 * Smart client language detection, based on our supported languages
122 * HTTP_ACCEPT_LANGUAGE="de-at,en;q=0.5"
124 * We should really check additionally if the i18n HomePage version is defined.
125 * So must defer this to the request loop.
127 function guessing_lang ($languages=false) {
130 $languages = array("en","de","es","fr","it","ja","zh","nl","sv");
131 // ignore possible "_territory" and codeset "ja.utf8"
133 require_once("lib/Theme.php");
134 $languages = listAvailableLanguages();
135 if (defined('DEFAULT_LANGUAGE') and in_array(DEFAULT_LANGUAGE, $languages))
138 if ($i = array_search(DEFAULT_LANGUAGE, $languages) !== false) {
139 array_splice($languages, $i, 1);
141 array_unshift($languages, DEFAULT_LANGUAGE);
142 foreach ($languages as $lang) {
143 $arr = FileFinder::locale_versions($lang);
144 $languages = array_merge($languages, $arr);
150 if (isset($GLOBALS['request'])) // in fixup-dynamic-config there's no request yet
151 $accept = $GLOBALS['request']->get('HTTP_ACCEPT_LANGUAGE');
152 elseif (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE']))
153 $accept = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
156 $lang_list = array();
157 $list = explode(",", $accept);
158 for ($i=0; $i<count($list); $i++) {
159 $pos = strchr($list[$i], ";") ;
160 if ($pos === false) {
161 // No Q it is only a locale...
162 $lang_list[$list[$i]] = 100;
165 $q = explode(";",$list[$i]) ;
167 $q = explode("=",$q[1]) ;
168 $lang_list[$loc] = $q[1]*100 ;
175 // compare with languages, ignoring sublang and charset
176 foreach ($lang_list as $lang => $q) {
177 if (in_array($lang, $languages))
179 // de_DE.iso8859-1@euro => de_DE.iso8859-1, de_DE, de
180 // de-DE => de-DE, de
181 foreach (array('@', '.', '_') as $sep) {
182 if ( ($tail = strchr($lang, $sep)) ) {
183 $lang_short = substr($lang, 0, -strlen($tail));
184 if (in_array($lang_short, $languages))
188 if ($pos = strchr($lang, "-") and in_array(substr($lang, 0, $pos), $languages))
189 return substr($lang, 0, $pos);
192 return $languages[0];
198 * This is a version of the builtin setlocale() which is
199 * smart enough to try some alternatives...
201 * @param mixed $category
202 * @param string $locale
203 * @return string The new locale, or <code>false</code> if unable
204 * to set the requested locale.
208 function guessing_setlocale ($category, $locale) {
209 $alt = array('en' => array('C', 'en_US', 'en_GB', 'en_AU', 'en_CA', 'english'),
210 'de' => array('de_DE', 'de_DE', 'de_DE@euro',
211 'de_AT@euro', 'de_AT', 'German_Austria.1252', 'deutsch',
213 'es' => array('es_ES', 'es_MX', 'es_AR', 'spanish'),
214 'nl' => array('nl_NL', 'dutch'),
215 'fr' => array('fr_FR', 'français', 'french'),
216 'it' => array('it_IT'),
217 'sv' => array('sv_SE'),
218 'ja.utf-8' => array('ja_JP','ja_JP.utf-8','japanese'),
219 'ja.euc-jp' => array('ja_JP','ja_JP.eucJP','japanese.euc'),
220 'zh' => array('zh_TW', 'zh_CN'),
223 // do the reverse: return the detected locale collapsed to our LANG
224 $locale = setlocale($category, '');
226 if (strstr($locale, '_')) list ($lang) = split('_', $locale);
227 else $lang = $locale;
228 if (strlen($lang) > 2) {
229 foreach ($alt as $try => $locs) {
230 if (in_array($locale, $locs) or in_array($lang, $locs)) {
231 //if (empty($GLOBALS['LANG'])) $GLOBALS['LANG'] = $try;
238 if (strlen($locale) == 2)
241 list ($lang) = split('_', $locale);
242 if (!isset($alt[$lang]))
245 foreach ($alt[$lang] as $try) {
246 if ($res = setlocale($category, $try))
248 // Try with charset appended...
249 $try = $try . '.' . $GLOBALS['charset'];
250 if ($res = setlocale($category, $try))
252 foreach (array('@', ".", '_') as $sep) {
253 list ($try) = split($sep, $try);
254 if ($res = setlocale($category, $try))
259 // A standard locale name is typically of the form
260 // language[_territory][.codeset][@modifier], where language is
261 // an ISO 639 language code, territory is an ISO 3166 country code,
262 // and codeset is a character set or encoding identifier like
263 // ISO-8859-1 or UTF-8.
267 function update_locale($loc) {
268 // $LANG or DEFAULT_LANGUAGE is too less information, at least on unix for
269 // setlocale(), for bindtextdomain() to succeed.
270 $newlocale = guessing_setlocale(LC_ALL, $loc); // [56ms]
272 $newlocale = FileFinder::_get_lang();
273 list ($newlocale,) = split('_', $newlocale, 2);
275 $loc = guessing_setlocale(LC_ALL, $newlocale);
277 // Try to put new locale into environment (so any
278 // programs we run will get the right locale.)
279 if (!function_exists('bindtextdomain')) {
280 // Reinitialize translation array.
283 // do reinit to purge PHP's static cache [43ms]
284 if ( ($lcfile = FindLocalizedFile("LC_MESSAGES/phpwiki.php", 'missing_ok', 'reinit')) ) {
288 // If PHP is in safe mode, this is not allowed,
290 @putenv("LC_ALL=$loc");
291 @putenv("LANG=$loc");
292 @putenv("LANGUAGE=$loc");
295 // To get the POSIX character classes in the PCRE's (e.g.
296 // [[:upper:]]) to match extended characters (e.g. GrüßGott), we have
297 // to set the locale, using setlocale().
299 // The problem is which locale to set? We would like to recognize all
300 // upper-case characters in the iso-8859-1 character set as upper-case
301 // characters --- not just the ones which are in the current $LANG.
303 // As it turns out, at least on my system (Linux/glibc-2.2) as long as
304 // you setlocale() to anything but "C" it works fine. (I'm not sure
305 // whether this is how it's supposed to be, or whether this is a bug
308 // We don't currently use the locale setting for anything else, so for
309 // now, just set the locale to US English.
311 // FIXME: Not all environments may support en_US? We should probably
312 // have a list of locales to try.
313 if (setlocale(LC_CTYPE, 0) == 'C') {
314 $x = setlocale(LC_CTYPE, 'en_US.' . $GLOBALS['charset']);
316 $x = setlocale(LC_CTYPE, $loc);
322 /** string pcre_fix_posix_classes (string $regexp)
324 * Older version (pre 3.x?) of the PCRE library do not support
325 * POSIX named character classes (e.g. [[:alnum:]]).
327 * This is a helper function which can be used to convert a regexp
328 * which contains POSIX named character classes to one that doesn't.
330 * All instances of strings like '[:<class>:]' are replaced by the equivalent
331 * enumerated character class.
333 * Implementation Notes:
335 * Currently we use hard-coded values which are valid only for
336 * ISO-8859-1. Also, currently on the classes [:alpha:], [:alnum:],
337 * [:upper:] and [:lower:] are implemented. (The missing classes:
338 * [:blank:], [:cntrl:], [:digit:], [:graph:], [:print:], [:punct:],
339 * [:space:], and [:xdigit:] could easily be added if needed.)
341 * This is a hack. I tried to generate these classes automatically
342 * using ereg(), but discovered that in my PHP, at least, ereg() is
343 * slightly broken w.r.t. POSIX character classes. (It includes
344 * "\xaa" and "\xba" in [:alpha:].)
346 * So for now, this will do. --Jeff <dairiki@dairiki.org> 14 Mar, 2001
348 function pcre_fix_posix_classes ($regexp) {
350 if (!isset($charset))
351 $charset = CHARSET; // get rid of constant. pref is dynamic and language specific
352 if (in_array($GLOBALS['LANG'], array('zh')))
354 if (strstr($GLOBALS['LANG'],'.utf-8'))
356 elseif (strstr($GLOBALS['LANG'],'.euc-jp'))
358 elseif (in_array($GLOBALS['LANG'], array('ja')))
359 //$charset = 'utf-8';
362 if (strtolower($charset) == 'utf-8') { // thanks to John McPherson
363 // until posix class names/pcre work with utf-8
364 if (preg_match('/[[:upper:]]/', '\xc4\x80'))
366 // utf-8 non-ascii chars: most common (eg western) latin chars are 0xc380-0xc3bf
367 // we currently ignore other less common non-ascii characters
368 // (eg central/east european) latin chars are 0xc432-0xcdbf and 0xc580-0xc5be
369 // and indian/cyrillic/asian languages
371 // this replaces [[:lower:]] with utf-8 match (Latin only)
372 $regexp = preg_replace('/\[\[\:lower\:\]\]/','(?:[a-z]|\xc3[\x9f-\xbf]|\xc4[\x81\x83\x85\x87])',
374 // this replaces [[:upper:]] with utf-8 match (Latin only)
375 $regexp = preg_replace('/\[\[\:upper\:\]\]/','(?:[A-Z]|\xc3[\x80-\x9e]|\xc4[\x80\x82\x84\x86])',
377 } elseif (preg_match('/[[:upper:]]/', 'Ä')) {
378 // First check to see if our PCRE lib supports POSIX character
379 // classes. If it does, there's nothing to do.
382 static $classes = array(
383 'alnum' => "0-9A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff",
384 'alpha' => "A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\xff",
385 'upper' => "A-Z\xc0-\xd6\xd8-\xde",
386 'lower' => "a-z\xdf-\xf6\xf8-\xff"
388 $keys = join('|', array_keys($classes));
389 return preg_replace("/\[:($keys):]/e", '$classes["\1"]', $regexp);
392 function deduce_script_name() {
393 $s = &$GLOBALS['HTTP_SERVER_VARS'];
394 $script = @$s['SCRIPT_NAME'];
395 if (empty($script) or $script[0] != '/') {
396 // Some places (e.g. Lycos) only supply a relative name in
397 // SCRIPT_NAME, but give what we really want in SCRIPT_URL.
398 if (!empty($s['SCRIPT_URL']))
399 $script = $s['SCRIPT_URL'];
404 function IsProbablyRedirectToIndex () {
405 // This might be a redirect to the DirectoryIndex,
406 // e.g. REQUEST_URI = /dir/?some_action got redirected
407 // to SCRIPT_NAME = /dir/index.php
409 // In this case, the proper virtual path is still
410 // $SCRIPT_NAME, since pages appear at
411 // e.g. /dir/index.php/HomePage.
413 $requri = preg_replace('/\?.*$/','',$GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']);
414 $requri = preg_quote($requri, '%');
415 return preg_match("%^${requri}[^/]*$%", $GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']);
419 if (!function_exists('array_key_exists')) { // lib/IniConfig.php, sqlite, adodb, ...
420 function array_key_exists($item, $array) {
421 return isset($array[$item]);
426 if (!function_exists('is_scalar')) { // lib/stdlib.php:hash()
427 function is_scalar($x) {
428 return is_numeric($x) or is_string($x) or is_float($x) or is_bool($x);
432 // => php-4.2.0. pear wants to break old php's! DB uses it now.
433 if (!function_exists('is_a')) {
434 function is_a($item,$class) {
435 return isa($item,$class);
440 * safe php4 definition for clone.
441 * php5 copies objects by reference, but we need to clone "deep copy" in some places.
443 * We need to eval it as workaround for the php5 parser.
444 * See http://www.acko.net/node/54
446 if (!check_php_version(5)) {
448 function clone($object) {
455 * wordwrap() might crash between 4.1.2 and php-4.3.0RC2, fixed in 4.3.0
456 * See http://bugs.php.net/bug.php?id=20927 and
457 * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1396
458 * Improved version of wordwrap2() in the comments at http://www.php.net/wordwrap
460 function safe_wordwrap($str, $width=80, $break="\n", $cut=false) {
461 if (check_php_version(4,3))
462 return wordwrap($str, $width, $break, $cut);
463 elseif (!check_php_version(4,1,2))
464 return wordwrap($str, $width, $break, $cut);
467 $tag = 0; $result = ''; $wordlen = 0;
468 for ($i = 0; $i < $len; $i++) {
470 // don't break inside xml tags
473 } elseif ($chr == '>') {
476 if (!function_exists('ctype_space')) {
477 if (preg_match('/^\s$/', $chr))
482 elseif (ctype_space($chr)) {
488 if ((!$tag) && ($wordlen) && (!($wordlen % $width))) {
495 if (isset($str) && isset($width)) {
496 $ex = explode(" ", $str); // wrong: must use preg_split \s+
498 for ($i=0; $i<count($ex); $i++) {
499 // $word_array = preg_split('//', $ex[$i], -1, PREG_SPLIT_NO_EMPTY);
500 // delete #&& !is_numeric($ex[$i])# if you want force it anyway
501 if (strlen($ex[$i]) > $width && !is_numeric($ex[$i])) {
504 for($b=0; $b < (ceil(strlen($ex[$i]) / $width)); $b++) {
505 $rp[$i] .= substr($ex[$i], $where, $width).$break;
512 return implode(" ",$rp);
519 function getUploadFilePath() {
520 return defined('PHPWIKI_DIR') ? PHPWIKI_DIR . "/uploads/" : "uploads/";
522 function getUploadDataPath() {
523 return SERVER_URL . ((substr(DATA_PATH,0,1)=='/') ? '' : "/") . DATA_PATH . '/uploads/';
526 // $Log: not supported by cvs2svn $
527 // Revision 1.130 2005/01/29 20:36:44 rurban
528 // very important php5 fix! clone objects
530 // Revision 1.129 2005/01/08 22:53:50 rurban
531 // hardcode list of langs (file access is slow)
532 // fix client detection
533 // set proper locale on empty locale
535 // Revision 1.128 2005/01/04 20:22:46 rurban
536 // guess $LANG based on client
538 // Revision 1.127 2004/12/26 17:15:32 rurban
539 // new reverse locale detection on DEFAULT_LANGUAGE="", ja default euc-jp again
541 // Revision 1.126 2004/12/20 16:05:00 rurban
542 // gettext msg unification
544 // Revision 1.125 2004/11/21 11:59:18 rurban
545 // remove final \n to be ob_cache independent
547 // Revision 1.124 2004/11/09 17:11:16 rurban
548 // * revert to the wikidb ref passing. there's no memory abuse there.
549 // * use new wikidb->_cache->_id_cache[] instead of wikidb->_iwpcache, to effectively
550 // store page ids with getPageLinks (GleanDescription) of all existing pages, which
551 // are also needed at the rendering for linkExistingWikiWord().
552 // pass options to pageiterator.
553 // use this cache also for _get_pageid()
554 // This saves about 8 SELECT count per page (num all pagelinks).
555 // * fix passing of all page fields to the pageiterator.
556 // * fix overlarge session data which got broken with the latest ACCESS_LOG_SQL changes
558 // Revision 1.123 2004/11/05 21:03:27 rurban
559 // new DEBUG flag: _DEBUG_LOGIN (64)
560 // verbose login debug-msg (settings and reason for failure)
562 // Revision 1.122 2004/10/14 17:49:58 rurban
563 // fix warning in safe_wordwrap
565 // Revision 1.121 2004/10/14 17:48:19 rurban
566 // typo in safe_wordwrap
568 // Revision 1.120 2004/09/22 13:46:26 rurban
569 // centralize upload paths.
570 // major WikiPluginCached feature enhancement:
571 // support _STATIC pages in uploads/ instead of dynamic getimg.php? subrequests.
572 // mainly for debugging, cache problems and action=pdf
574 // Revision 1.119 2004/09/16 07:50:37 rurban
575 // wordwrap() might crash between 4.1.2 and php-4.3.0RC2, fixed in 4.3.0
576 // See http://bugs.php.net/bug.php?id=20927 and
577 // http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2002-1396
578 // Improved version of wordwrap2() from the comments at http://www.php.net/wordwrap
580 // Revision 1.118 2004/07/13 14:03:31 rurban
581 // just some comments
583 // Revision 1.117 2004/06/21 17:29:17 rurban
584 // pear DB introduced a is_a requirement. so pear lost support for php < 4.2.0
586 // Revision 1.116 2004/06/21 08:39:37 rurban
587 // pear/Cache update from Cache-1.5.4 (added db and trifile container)
588 // pear/DB update from DB-1.6.1 (mysql bugfixes, php5 compat, DB_PORTABILITY features)
590 // Revision 1.115 2004/06/20 14:42:54 rurban
591 // various php5 fixes (still broken at blockparser)
593 // Revision 1.114 2004/06/19 11:48:05 rurban
594 // moved version check forwards: already needed in XmlElement::_quote
596 // Revision 1.113 2004/06/03 12:59:41 rurban
597 // simplify translation
598 // NS4 wrap=virtual only
600 // Revision 1.112 2004/06/02 18:01:46 rurban
601 // init global FileFinder to add proper include paths at startup
602 // adds PHPWIKI_DIR if started from another dir, lib/pear also
603 // fix slashify for Windows
604 // fix USER_AUTH_POLICY=old, use only USER_AUTH_ORDER methods (besides HttpAuth)
606 // Revision 1.111 2004/05/17 17:43:29 rurban
607 // CGI: no PATH_INFO fix
609 // Revision 1.110 2004/05/16 23:10:44 rurban
610 // update_locale wrongly resetted LANG, which broke japanese.
611 // japanese now correctly uses EUC_JP, not utf-8.
612 // more charset and lang headers to help the browser.
614 // Revision 1.109 2004/05/08 14:06:12 rurban
615 // new support for inlined image attributes: [image.jpg size=50x30 align=right]
616 // minor stability and portability fixes
618 // Revision 1.108 2004/05/08 11:25:16 rurban
621 // Revision 1.107 2004/05/06 17:30:38 rurban
622 // CategoryGroup: oops, dos2unix eol
623 // improved phpwiki_version:
624 // pre -= .0001 (1.3.10pre: 1030.099)
625 // -p1 += .001 (1.3.9-p1: 1030.091)
626 // improved InstallTable for mysql and generic SQL versions and all newer tables so far.
627 // abstracted more ADODB/PearDB methods for action=upgrade stuff:
628 // backend->backendType(), backend->database(),
629 // backend->listOfFields(),
630 // backend->listOfTables(),
632 // Revision 1.106 2004/05/02 19:12:14 rurban
633 // fix sf.net bug #945154 Konqueror alt css
635 // Revision 1.105 2004/05/02 15:10:06 rurban
636 // new finally reliable way to detect if /index.php is called directly
637 // and if to include lib/main.php
638 // new global AllActionPages
639 // SetupWiki now loads all mandatory pages: HOME_PAGE, action pages, and warns if not.
640 // WikiTranslation what=buttons for Carsten to create the missing MacOSX buttons
641 // PageGroupTestOne => subpages
642 // renamed PhpWikiRss to PhpWikiRecentChanges
643 // more docs, default configs, ...
645 // Revision 1.104 2004/05/01 11:26:37 rurban
646 // php-4.0.x support: array_key_exists (PHP 4 >= 4.1.0)
648 // Revision 1.103 2004/04/30 00:04:14 rurban
649 // zh (chinese language) support
651 // Revision 1.102 2004/04/29 23:25:12 rurban
652 // re-ordered locale init (as in 1.3.9)
653 // fixed loadfile with subpages, and merge/restore anyway
654 // (sf.net bug #844188)
656 // Revision 1.101 2004/04/26 13:22:32 rurban
657 // calculate bool old or dynamic constants later
659 // Revision 1.100 2004/04/26 12:15:01 rurban
660 // check default config values
662 // Revision 1.99 2004/04/21 14:04:24 zorloc
663 // 'Require lib/FileFinder.php' necessary to allow for call to FindLocalizedFile().
665 // Revision 1.98 2004/04/20 18:10:28 rurban
666 // config refactoring:
667 // FileFinder is needed for WikiFarm scripts calling index.php
668 // config run-time calls moved to lib/IniConfig.php:fix_configs()
669 // added PHPWIKI_DIR smart-detection code (Theme finder)
670 // moved FileFind to lib/FileFinder.php
671 // cleaned lib/config.php
673 // Revision 1.97 2004/04/18 01:11:52 rurban
674 // more numeric pagename fixes.
675 // fixed action=upload with merge conflict warnings.
676 // charset changed from constant to global (dynamic utf-8 switching)
684 // c-hanging-comment-ender-p: nil
685 // indent-tabs-mode: nil