Set default squid list to empty
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?php
2 /**
3 * DO NOT EDIT THIS FILE!
4 *
5 * To customize your installation, edit "LocalSettings.php".
6 *
7 * Note that since all these string interpolations are expanded
8 * before LocalSettings is included, if you localize something
9 * like $wgScriptPath, you must also localize everything that
10 * depends on it.
11 *
12 * @package MediaWiki
13 */
14
15 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
16 if( defined( 'MEDIAWIKI' ) ) {
17
18 /** MediaWiki version number */
19 $wgVersion = '1.5pre-alpha';
20
21 /** Name of the site. It must be changed in LocalSettings.php */
22 $wgSitename = 'MediaWiki';
23
24 /** Will be same as you set @see $wgSitename */
25 $wgMetaNamespace = FALSE;
26
27 /** URL of the server. It will be automaticly build including https mode */
28 $wgServer = '';
29
30 if( isset( $_SERVER['SERVER_NAME'] ) ) {
31 $wgServerName = $_SERVER['SERVER_NAME'];
32 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
33 $wgServerName = $_SERVER['HOSTNAME'];
34 } else {
35 # FIXME: Fall back on... something else?
36 $wgServerName = 'localhost';
37 }
38
39 # check if server use https:
40 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
41
42 $wgServer = $wgProto.'://' . $wgServerName;
43 if( isset( $_SERVER['SERVER_PORT'] ) && $_SERVER['SERVER_PORT'] != 80 ) {
44 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
45 }
46 unset($wgProto);
47
48
49 /**
50 * The path we should point to.
51 * It might be a virtual path in case with use apache mod_rewrite for example
52 */
53 $wgScriptPath = '/wiki';
54
55 /**
56 * Whether to support URLs like index.php/Page_title
57 * @global bool $wgUsePathInfo
58 */
59 $wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false );
60
61
62 /**#@+
63 * Script users will request to get articles
64 * ATTN: Old installations used wiki.phtml and redirect.phtml -
65 * make sure that LocalSettings.php is correctly set!
66 * @deprecated
67 */
68 /**
69 * @global string $wgScript
70 */
71 $wgScript = "{$wgScriptPath}/index.php";
72 /**
73 * @global string $wgRedirectScript
74 */
75 $wgRedirectScript = "{$wgScriptPath}/redirect.php";
76 /**#@-*/
77
78
79 /**#@+
80 * @global string
81 */
82 /**
83 * style path as seen by users
84 * @global string $wgStylePath
85 */
86 $wgStylePath = "{$wgScriptPath}/skins";
87 /**
88 * filesystem stylesheets directory
89 * @global string $wgStyleDirectory
90 */
91 $wgStyleDirectory = "{$IP}/skins";
92 $wgStyleSheetPath = &$wgStylePath;
93 $wgStyleSheetDirectory = &$wgStyleDirectory;
94 $wgArticlePath = "{$wgScript}?title=$1";
95 $wgUploadPath = "{$wgScriptPath}/upload";
96 $wgUploadDirectory = "{$IP}/upload";
97 $wgHashedUploadDirectory = true;
98 $wgLogo = "{$wgUploadPath}/wiki.png";
99 $wgMathPath = "{$wgUploadPath}/math";
100 $wgMathDirectory = "{$wgUploadDirectory}/math";
101 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
102 $wgUploadBaseUrl = "";
103 /**#@-*/
104
105 /**
106 * If you operate multiple wikis, you can define a shared upload path here.
107 * Uploads to this wiki will NOT be put there - they will be put into
108 * $wgUploadDirectory.
109 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
110 * no file of the given name is found in the local repository (for [[Image:..]],
111 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
112 * directory.
113 */
114 $wgUseSharedUploads = false;
115 /** Full path on the web server where shared uploads can be found */
116 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
117 /** Path on the file system where shared uploads can be found */
118 $wgSharedUploadDirectory = "/var/www/wiki3/images";
119
120 /**
121 * Set the following to false especially if you have a set of files that need to
122 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
123 * directory layout.
124 */
125 $wgHashedSharedUploadDirectory = true;
126
127 /** set true if the repository uses latin1 filenames */
128 $wgSharedLatin1=false;
129
130 /**
131 * Base URL for a repository wiki. Leave this blank if uploads are just stored
132 * in a shared directory and not meant to be accessible through a separate wiki.
133 * Otherwise the image description pages on the local wiki will link to the
134 * image description page on this wiki.
135 *
136 * Please specify the namespace, as in the example below.
137 */
138 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
139
140
141 #
142 # Email settings
143 #
144
145 /**
146 * Site admin email address
147 * Default to wikiadmin@SERVER_NAME
148 * @global string $wgEmergencyContact
149 */
150 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
151
152 /**
153 * Password reminder email address
154 * The address we should use as sender when a user is requesting his password
155 * Default to apache@SERVER_NAME
156 * @global string $wgPasswordSender
157 */
158 $wgPasswordSender = 'Wikipedia Mail <apache@' . $wgServerName . '>';
159
160 /**
161 * dummy address which should be accepted during mail send action
162 * It might be necessay to adapt the address or to set it equal
163 * to the $wgEmergencyContact address
164 */
165 #$wgNoReplyAddress = $wgEmergencyContact;
166 $wgNoReplyAddress = 'reply@not.possible';
167
168 /**
169 * Set to true to enable the e-mail basic features:
170 * Password reminders, etc. If sending e-mail on your
171 * server doesn't work, you might want to disable this.
172 * @global bool $wgEnableEmail
173 */
174 $wgEnableEmail = true;
175
176 /**
177 * Set to true to enable user-to-user e-mail.
178 * This can potentially be abused, as it's hard to track.
179 * @global bool $wgEnableUserEmail
180 */
181 $wgEnableUserEmail = true;
182
183 /**
184 * SMTP Mode
185 * For using a direct (authenticated) SMTP server connection.
186 * Default to false or fill an array :
187 * <code>
188 * "host" => 'SMTP domain',
189 * "IDHost" => 'domain for MessageID',
190 * "port" => "25",
191 * "auth" => true/false,
192 * "username" => user,
193 * "password" => password
194 * </code>
195 *
196 * @global mixed $wgSMTP
197 */
198 $wgSMTP = false;
199
200
201 /**#@+
202 * Database settings
203 */
204 /** database host name or ip address */
205 $wgDBserver = 'localhost';
206 /** name of the database */
207 $wgDBname = 'wikidb';
208 /** */
209 $wgDBconnection = '';
210 /** Database username */
211 $wgDBuser = 'wikiuser';
212 /** Database type
213 * "mysql" for working code and "PostgreSQL" for development/broken code
214 */
215 $wgDBtype = "mysql";
216 /** Search type
217 * "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL
218 * based search engine
219 */
220 $wgSearchType = "MyISAM";
221 /** Table name prefix */
222 $wgDBprefix = '';
223 /** Database schema
224 * on some databases this allows separate
225 * logical namespace for application data
226 */
227 $wgDBschema = 'mediawiki';
228 /**#@-*/
229
230
231
232 /**
233 * Shared database for multiple wikis. Presently used for storing a user table
234 * for single sign-on. The server for this database must be the same as for the
235 * main database.
236 * EXPERIMENTAL
237 */
238 $wgSharedDB = null;
239
240 # Database load balancer
241 # This is a two-dimensional array, an array of server info structures
242 # Fields are:
243 # host: Host name
244 # dbname: Default database name
245 # user: DB user
246 # password: DB password
247 # type: "mysql" or "pgsql"
248 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
249 # flags: bit field
250 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
251 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
252 # DBO_TRX -- wrap entire request in a transaction
253 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
254 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
255 #
256 # Leave at false to use the single-server variables above
257 $wgDBservers = false;
258
259 /** How long to wait for a slave to catch up to the master */
260 $wgMasterWaitTimeout = 10;
261
262 # Sysop SQL queries
263 # The sql user shouldn't have too many rights other the database, restrict
264 # it to SELECT only on 'page', 'revision' and 'text' tables for example
265 #
266 /** Dangerous if not configured properly. */
267 $wgAllowSysopQueries = false;
268 $wgDBsqluser = 'sqluser';
269 $wgDBsqlpassword = 'sqlpass';
270 $wgDBpassword = 'userpass';
271 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
272 /** File to log MySQL errors to */
273 $wgDBerrorLog = false;
274
275 /**
276 * wgDBminWordLen :
277 * MySQL 3.x : used to discard words that MySQL will not return any results for
278 * shorter values configure mysql directly.
279 * MySQL 4.x : ignore it and configure mySQL
280 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
281 */
282 $wgDBminWordLen = 4;
283 /** Set to true if using InnoDB tables */
284 $wgDBtransactions = false;
285 /** Set to true to use enhanced fulltext search */
286 $wgDBmysql4 = false;
287 $wgSqlTimeout = 30;
288
289 /** use buffered queries by default */
290 $wgBufferSQLResults = true;
291
292 /**
293 * Other wikis on this site, can be administered from a single developer
294 * account.
295 * Array, interwiki prefix => database name
296 */
297 $wgLocalDatabases = array();
298
299
300 # Memcached settings
301 # See docs/memcached.doc
302 #
303 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
304 $wgUseMemCached = false;
305 $wgMemCachedServers = array( '127.0.0.1:11000' );
306 $wgMemCachedDebug = false;
307 $wgSessionsInMemcached = false;
308 $wgLinkCacheMemcached = false; # Not fully tested
309
310 /**
311 * Turck MMCache shared memory
312 * You can use this for persistent caching where your wiki runs on a single
313 * server. Enabled by default if Turck is installed. Mutually exclusive with
314 * memcached, memcached is used if both are specified.
315 *
316 * @global bool $wgUseTurckShm Enable or disabled Turck MMCache
317 */
318 $wgUseTurckShm = false;
319
320
321 # Language settings
322 #
323 /** Site language code, should be one of ./language/Language(.*).php */
324 $wgLanguageCode = 'en';
325
326 /** Filename of a language file generated by dumpMessages.php */
327 $wgLanguageFile = false;
328
329 /** Treat language links as magic connectors, not inline links */
330 $wgInterwikiMagic = true;
331
332 /** LanguageUtf8.php normally overrides this */
333 $wgInputEncoding = 'ISO-8859-1';
334 /** unless you set the next option to true: */
335 $wgOutputEncoding = 'ISO-8859-1';
336 /** Enable ISO-8859-1 compatibility mode */
337 $wgUseLatin1 = false;
338 $wgEditEncoding = '';
339
340 # Set this to eg 'ISO-8859-1' to perform character set
341 # conversion when loading old revisions not marked with
342 # "utf-8" flag. Use this when converting wiki to UTF-8
343 # without the burdensome mass conversion of old text data.
344 #
345 # NOTE! This DOES NOT touch any fields other than old_text.
346 # Titles, comments, user names, etc still must be converted
347 # en masse in the database before continuing as a UTF-8 wiki.
348 $wgLegacyEncoding = false;
349
350 $wgMimeType = 'text/html';
351 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
352 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
353
354 /** Enable to allow rewriting dates in page text.
355 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
356 $wgUseDynamicDates = false;
357 /** Enable for English module to print dates as eg 'May 12' instead of '12 May' */
358 $wgAmericanDates = false;
359 /**
360 * For Hindi and Arabic use local numerals instead of Western style (0-9)
361 * numerals in interface.
362 */
363 $wgTranslateNumerals = true;
364
365
366 # Translation using MediaWiki: namespace
367 # This will increase load times by 25-60% unless memcached is installed
368 # Interface messages will be get from the database.
369 $wgUseDatabaseMessages = true;
370 $wgMsgCacheExpiry = 86400;
371 $wgPartialMessageCache = false;
372
373 # Whether to enable language variant conversion. Currently only zh
374 # supports this function, to convert between Traditional and Simplified
375 # Chinese. This flag is meant to isolate the (untested) conversion
376 # code, so that if it breaks, only zh will be affected
377 $wgDisableLangConversion = false;
378
379 # Whether to use zhdaemon to perform Chinese text processing
380 # zhdaemon is under developement, so normally you don't want to
381 # use it unless for testing
382 $wgUseZhdaemon = false;
383 $wgZhdaemonHost="localhost";
384 $wgZhdaemonPort=2004;
385
386 # Miscellaneous configuration settings
387 #
388
389 $wgLocalInterwiki = 'w';
390 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
391
392 $wgShowIPinHeader = true; # For non-logged in users
393 $wgMaxNameChars = 32; # Maximum number of bytes in username
394
395 $wgExtraSubtitle = '';
396 $wgSiteSupportPage = ''; # A page where you users can receive donations
397
398 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
399 $wgUseData = false ;
400
401 /**
402 * The debug log file should be not be publicly accessible if it is used, as it
403 * may contain private data. */
404 $wgDebugLogFile = '';
405
406 /**#@+
407 * @global bool
408 */
409 $wgDebugRedirects = false;
410 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
411
412 $wgDebugComments = false;
413 $wgReadOnly = false;
414 $wgLogQueries = false;
415 $wgDebugDumpSql = false;
416
417 /** Whether to disable automatic generation of "we're sorry, but there has been
418 * a database error" pages. */
419 $wgIgnoreSQLErrors = false;
420
421 # Should [[Category:Dog]] on a page associate it with the
422 # category "Dog"? (a link to that category page will be
423 # added to the article, clicking it reveals a list of
424 # all articles in the category)
425 $wgUseCategoryMagic = true;
426
427 /**
428 * disable experimental dmoz-like category browsing. Output things like:
429 * Encyclopedia > Music > Style of Music > Jazz
430 */
431 $wgUseCategoryBrowser = false;
432
433 $wgEnablePersistentLC = false; # Obsolete, do not use
434 $wgCompressedPersistentLC = true; # use gzcompressed blobs
435 $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only
436
437 /**
438 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
439 * to speed up output of the same page viewed by another user with the
440 * same options.
441 *
442 * This can provide a significant speedup for medium to large pages,
443 * so you probably want to keep it on.
444 */
445 $wgEnableParserCache = true;
446
447 /**#@-*/
448
449 /**
450 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
451 * values are easier on the database. A value of 1 causes the counters to be
452 * updated on every hit, any higher value n cause them to update *on average*
453 * every n hits. Should be set to either 1 or something largish, eg 1000, for
454 * maximum efficiency.
455 */
456 $wgHitcounterUpdateFreq = 1;
457
458 # User rights settings
459 #
460 # It's not 100% safe, there could be security hole using that one. Use at your
461 # own risks.
462
463 $wgWhitelistEdit = false; # true = user must login to edit.
464 $wgWhitelistRead = false; # Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help");
465 $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );
466
467 $wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'
468
469 $wgSysopUserBans = false; # Allow sysops to ban logged-in users
470 $wgSysopRangeBans = false; # Allow sysops to ban IP ranges
471 $wgDefaultBlockExpiry = '24 hours'; # default expiry time
472 # strtotime format, or "infinite" for an infinite block
473 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
474
475 # Proxy scanner settings
476 #
477
478 /**
479 * If you enable this, every editor's IP address will be scanned for open HTTP
480 * proxies.
481 *
482 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
483 * ISP and ask for your server to be shut down.
484 *
485 * You have been warned.
486 */
487 $wgBlockOpenProxies = false;
488 /** Port we want to scan for a proxy */
489 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
490 /** Script used to scan */
491 $wgProxyScriptPath = "$IP/proxy_check.php";
492 /** */
493 $wgProxyMemcExpiry = 86400;
494 /** */
495 $wgProxyKey = 'W1svekXc5u6lZllTZOwnzEk1nbs';
496 /** big list of banned IP addresses, in the keys not the values */
497 $wgProxyList = array();
498
499 /** Number of accounts each IP address may create, 0 to disable.
500 * Requires memcached */
501 $wgAccountCreationThrottle = 0;
502
503 # Client-side caching:
504
505 /** Allow client-side caching of pages */
506 $wgCachePages = true;
507
508 /**
509 * Set this to current time to invalidate all prior cached pages. Affects both
510 * client- and server-side caching.
511 */
512 $wgCacheEpoch = '20030516000000';
513
514
515 # Server-side caching:
516
517 /**
518 * This will cache static pages for non-logged-in users to reduce
519 * database traffic on public sites.
520 * Must set $wgShowIPinHeader = false
521 */
522 $wgUseFileCache = false;
523 /** Directory where the cached page will be saved */
524 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
525
526 /**
527 * When using the file cache, we can store the cached HTML gzipped to save disk
528 * space. Pages will then also be served compressed to clients that support it.
529 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
530 * the default LocalSettings.php! If you enable this, remove that setting first.
531 *
532 * Requires zlib support enabled in PHP.
533 */
534 $wgUseGzip = false;
535
536 # Email notification settings
537 #
538
539 /**
540 * Program to run when the email is actually sent out. You might want to make
541 * your server beep for example. Usermailer.php will make a system() call with
542 * exactly that string as parameter.
543 */
544 # $wgEmailNotificationSystembeep = '/usr/bin/beep -f 4000 -l 20 &';
545 $wgEmailNotificationSystembeep = '';
546
547 /** For email notification on page changes */
548 $wgPasswordSender = $wgEmergencyContact;
549
550 # true: from PageEditor if s/he opted-in
551 # false: Enotif mails appear to come from $wgEmergencyContact
552 $wgEmailNotificationMailsSentFromPageEditor = false;
553
554 // TODO move UPO to preferences probably ?
555 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
556 # If set to false, the corresponding input form on the user preference page is suppressed
557 # It call this to be a "user-preferences-option (UPO)"
558 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
559 $wgEmailNotificationForWatchlistPages = false; # UPO
560 $wgEmailNotificationForUserTalkPages = false; # UPO
561 $wgEmailNotificationRevealPageEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
562 $wgEmailNotificationForMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
563 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
564
565
566 /** Show watching users in recent changes, watchlist and page history views */
567 $wgRCShowWatchingUsers = false; # UPO
568 /** Show watching users in Page views */
569 $wgPageShowWatchingUsers = false;
570 /**
571 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
572 * view for watched pages with new changes */
573 $wgShowUpdatedMarker = true; # UPO
574
575 $wgCookieExpiration = 2592000;
576
577 # Squid-related settings
578 #
579
580 /** Enable/disable Squid */
581 $wgUseSquid = false;
582
583 /** If you run Squid3 with ESI support, enable this (default:false): */
584 $wgUseESI = false;
585
586 /** Internal server name as known to Squid, if different */
587 # $wgInternalServer = 'http://yourinternal.tld:8000';
588 $wgInternalServer = $wgServer;
589
590 /**
591 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
592 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
593 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
594 * days
595 */
596 $wgSquidMaxage = 18000;
597
598 /**
599 * A list of proxy servers (ips if possible) to purge on changes don't specify
600 * ports here (80 is default)
601 */
602 # $wgSquidServers = array('127.0.0.1');
603 $wgSquidServers = array();
604 $wgSquidServersNoPurge = array();
605
606 /** Maximum number of titles to purge in any one client operation */
607 $wgMaxSquidPurgeTitles = 400;
608
609
610 # Cookie settings:
611 #
612 /**
613 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
614 * or ".any.subdomain.net"
615 */
616 $wgCookieDomain = '';
617 $wgCookiePath = '/';
618 $wgDisableCookieCheck = false;
619
620 /** Whether to allow inline image pointing to other websites */
621 $wgAllowExternalImages = true;
622
623 /** Disable database-intensive features */
624 $wgMiserMode = false;
625 /** Disable all query pages if miser mode is on, not just some */
626 $wgDisableQueryPages = false;
627 /** Generate a watchlist once every hour or so */
628 $wgUseWatchlistCache = false;
629 /** The hour or so mentioned above */
630 $wgWLCacheTimeout = 3600;
631
632 /**
633 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
634 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
635 * (ImageMagick) installed and available in the PATH.
636 * Please see math/README for more information.
637 */
638 $wgUseTeX = false;
639 /** Location of the texvc binary */
640 $wgTexvc = './math/texvc';
641
642 #
643 # Profiling / debugging
644 #
645
646 /** Enable for more detailed by-function times in debug log */
647 $wgProfiling = false;
648 /** Only record profiling info for pages that took longer than this */
649 $wgProfileLimit = 0.0;
650 /** Don't put non-profiling info into log file */
651 $wgProfileOnly = false;
652 /** Log sums from profiling into "profiling" table in db. */
653 $wgProfileToDatabase = false;
654 /** Only profile every n requests when profiling is turned on */
655 $wgProfileSampleRate = 1;
656 /** If true, print a raw call tree instead of per-function report */
657 $wgProfileCallTree = false;
658
659 /** Detects non-matching wfProfileIn/wfProfileOut calls */
660 $wgDebugProfiling = false;
661 /** Output debug message on every wfProfileIn/wfProfileOut */
662 $wgDebugFunctionEntry = 0;
663 /** Lots of debugging output from SquidUpdate.php */
664 $wgDebugSquid = false;
665
666 $wgDisableCounters = false;
667 $wgDisableTextSearch = false;
668 /**
669 * If you've disabled search semi-permanently, this also disables updates to the
670 * table. If you ever re-enable, be sure to rebuild the search table.
671 */
672 $wgDisableSearchUpdate = false;
673 /** Uploads have to be specially set up to be secure */
674 $wgDisableUploads = true;
675 /**
676 * Set to true to enable the upload _link_ while local uploads are disabled.
677 * Assumes that the special page link will be bounced to another server where
678 * uploads do work.
679 */
680 $wgRemoteUploads = false;
681 $wgDisableAnonTalk = false;
682
683 /**
684 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
685 * fall back to the old behaviour (no merging).
686 */
687 $wgDiff3 = '/usr/bin/diff3';
688
689 /**
690 * We can also compress text in the old revisions table. If this is set on, old
691 * revisions will be compressed on page save if zlib support is available. Any
692 * compressed revisions will be decompressed on load regardless of this setting
693 * *but will not be readable at all* if zlib support is not available.
694 */
695 $wgCompressRevisions = false;
696
697 /**
698 * This is the list of preferred extensions for uploading files. Uploading files
699 * with extensions not in this list will trigger a warning.
700 */
701 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
702
703 /** Files with these extensions will never be allowed as uploads. */
704 $wgFileBlacklist = array(
705 # HTML may contain cookie-stealing JavaScript and web bugs
706 'html', 'htm',
707 # PHP scripts may execute arbitrary code on the server
708 'php', 'phtml', 'php3', 'php4', 'phps',
709 # Other types that may be interpreted by some servers
710 'shtml', 'jhtml', 'pl', 'py', 'cgi',
711 # May contain harmful executables for Windows victims
712 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
713
714 /** This is a flag to determine whether or not to check file extensions on upload. */
715 $wgCheckFileExtensions = true;
716
717 /**
718 * If this is turned off, users may override the warning for files not covered
719 * by $wgFileExtensions.
720 */
721 $wgStrictFileExtensions = true;
722
723 /** Warn if uploaded files are larger than this */
724 $wgUploadSizeWarning = 150000;
725
726 /** For compatibility with old installations set to false */
727 $wgPasswordSalt = true;
728
729 /** Which namespaces should support subpages?
730 * See Language.php for a list of namespaces.
731 */
732 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
733 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
734
735 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
736 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );
737
738 /** If set, a bold ugly notice will show up at the top of every page. */
739 $wgSiteNotice = '';
740
741
742 #
743 # Images settings
744 #
745
746 /** dynamic server side image resizing ("Thumbnails") */
747 $wgUseImageResize = false;
748
749 /**
750 * Resizing can be done using PHP's internal image libraries or using
751 * ImageMagick. The later supports more file formats than PHP, which only
752 * supports PNG, GIF, JPG, XBM and WBMP.
753 *
754 * Use Image Magick instead of PHP builtin functions.
755 */
756 $wgUseImageMagick = false;
757 /** The convert command shipped with ImageMagick */
758 $wgImageMagickConvertCommand = '/usr/bin/convert';
759
760 # Scalable Vector Graphics (SVG) may be uploaded as images.
761 # Since SVG support is not yet standard in browsers, it is
762 # necessary to rasterize SVGs to PNG as a fallback format.
763 #
764 # An external program is required to perform this conversion:
765 $wgSVGConverters = array(
766 'ImageMagick' => '$path/convert -background white -geometry $width $input $output',
767 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
768 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
769 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
770 );
771 /** Pick one of the above */
772 $wgSVGConverter = 'ImageMagick';
773 /** If not in the executable PATH, specify */
774 $wgSVGConverterPath = '';
775
776 /** @todo FIXME what does it do here ?? [ashar] */
777 if( !isset( $wgCommandLineMode ) ) {
778 $wgCommandLineMode = false;
779 }
780
781
782 #
783 # Recent changes settings
784 #
785
786 /** Show seconds in Recent Changes */
787 $wgRCSeconds = false;
788
789 /** Log IP addresses in the recentchanges table */
790 $wgPutIPinRC = false;
791
792 /**
793 * Recentchanges items are periodically purged; entries older than this many
794 * seconds will go.
795 * For one week : 7 * 24 * 3600
796 */
797 $wgRCMaxAge = 7 * 24 * 3600;
798
799
800 #
801 # Copyright and credits settings
802 #
803
804 /** RDF metadata toggles */
805 $wgEnableDublinCoreRdf = false;
806 $wgEnableCreativeCommonsRdf = false;
807
808 /** Override for copyright metadata.
809 * TODO: these options need documentation
810 */
811 $wgRightsPage = NULL;
812 $wgRightsUrl = NULL;
813 $wgRightsText = NULL;
814 $wgRightsIcon = NULL;
815
816 /** Set this to some HTML to override the rights icon with an arbitrary logo */
817 $wgCopyrightIcon = NULL;
818
819 /** Set this to true if you want detailed copyright information forms on Upload. */
820 $wgUseCopyrightUpload = false;
821
822 /** Set this to false if you want to disable checking that detailed copyright
823 * information values are not empty. */
824 $wgCheckCopyrightUpload = true;
825
826 /**
827 * Set this to the number of authors that you want to be credited below an
828 * article text. Set it to zero to hide the attribution block, and a negative
829 * number (like -1) to show all authors. Note that this will# require 2-3 extra
830 * database hits, which can have a not insignificant impact on performance for
831 * large wikis.
832 */
833 $wgMaxCredits = 0;
834
835 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
836 * Otherwise, link to a separate credits page. */
837 $wgShowCreditsIfMax = true;
838
839
840
841 /**
842 * Set this to false to avoid forcing the first letter of links to capitals.
843 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
844 * appearing with a capital at the beginning of a sentence will *not* go to the
845 * same place as links in the middle of a sentence using a lowercase initial.
846 */
847 $wgCapitalLinks = true;
848
849 /**
850 * List of interwiki prefixes for wikis we'll accept as sources for
851 * Special:Import (for sysops). Since complete page history# can be imported,
852 * these should be 'trusted'.
853 */
854 $wgImportSources = array();
855
856
857
858 /** Text matching this regular expression will be recognised as spam
859 * See http://en.wikipedia.org/wiki/Regular_expression */
860 $wgSpamRegex = false;
861 /** Similarly if this function returns true */
862 $wgFilterCallback = false;
863
864 /** Go button goes straight to the edit screen if the article doesn't exist. */
865 $wgGoToEdit = false;
866
867 /** Allow limited user-specified HTML in wiki pages?
868 * It will be run through a whitelist for security. Set this to false if you
869 * want wiki pages to consist only of wiki markup. Note that replacements do not
870 * yet exist for all HTML constructs.*/
871 $wgUserHtml = true;
872
873 /** Allow raw, unchecked HTML in <html>...</html> sections.
874 * THIS IS VERY DANGEROUS on a publically editable site, so you can't enable it
875 * unless you've restricted editing to trusted users only with $wgWhitelistEdit.
876 */
877 $wgRawHtml = false;
878
879 /**
880 * $wgUseTidy: use tidy to make sure HTML output is sane.
881 * This should only be enabled if $wgUserHtml is true.
882 * tidy is a free tool that fixes broken HTML.
883 * See http://www.w3.org/People/Raggett/tidy/
884 * $wgTidyBin should be set to the path of the binary and
885 * $wgTidyConf to the path of the configuration file.
886 * $wgTidyOpts can include any number of parameters.
887 */
888 $wgUseTidy = false;
889 $wgTidyBin = 'tidy';
890 $wgTidyConf = $IP.'/extensions/tidy/tidy.conf';
891 $wgTidyOpts = '';
892
893 /** See list of skins and their symbolic names in languagel/Language.php */
894 $wgDefaultSkin = 'monobook';
895
896 /**
897 * Settings added to this array will override the language globals for the user
898 * preferences used by anonymous visitors and newly created accounts. (See names
899 * and sample values in languages/Language.php)
900 * For instance, to disable section editing links:
901 * $wgDefaultUserOptions ['editsection'] = 0;
902 *
903 */
904 $wgDefaultUserOptions = array();
905
906 /** Whether or not to allow and use real name fields. Defaults to true. */
907 $wgAllowRealName = true;
908
909 /** Use XML parser? */
910 $wgUseXMLparser = false ;
911
912 /** Extensions */
913 $wgSkinExtensionFunctions = array();
914 $wgExtensionFunctions = array();
915
916 /**
917 * Allow user Javascript page?
918 * This enables a lot of neat customizations, but may
919 * increase security risk to users and server load.
920 */
921 $wgAllowUserJs = false;
922
923 /**
924 * Allow user Cascading Style Sheets (CSS)?
925 * This enables a lot of neat customizations, but may
926 * increase security risk to users and server load.
927 */
928 $wgAllowUserCss = false;
929
930 /** Use the site's Javascript page? */
931 $wgUseSiteJs = true;
932
933 /** Use the site's Cascading Style Sheets (CSS)? */
934 $wgUseSiteCss = true;
935
936 /** Filter for Special:Randompage. Part of a WHERE clause */
937 $wgExtraRandompageSQL = false;
938
939 /** Allow the "info" action, very inefficient at the moment */
940 $wgAllowPageInfo = false;
941
942 /** Maximum indent level of toc. */
943 $wgMaxTocLevel = 999;
944
945 /** Recognise longitude/latitude coordinates */
946 $wgUseGeoMode = false;
947
948 /** Validation for print or other production versions */
949 $wgUseValidation = false;
950
951 /** Use external C++ diff engine (module wikidiff from the extensions package) */
952 $wgUseExternalDiffEngine = false;
953
954 /** Use RC Patrolling to check for vandalism */
955 $wgUseRCPatrol = true;
956
957 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
958 * eg Recentchanges, Newpages. */
959 $wgFeedLimit = 50;
960
961 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
962 * A cached version will continue to be served out even if changes
963 * are made, until this many seconds runs out since the last render. */
964 $wgFeedCacheTimeout = 60;
965
966 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
967 * pages larger than this size. */
968 $wgFeedDiffCutoff = 32768;
969
970
971 /**
972 * Additional namespaces. If the namespaces defined in Language.php and
973 * Namespace.php are insufficient,# you can create new ones here, for example,
974 * to import Help files in other languages.
975 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
976 * no longer be accessible. If you rename it, then you can access them through
977 * the new namespace name.
978 *
979 * Custom namespaces should start at 100 and stop at 255 (hard limit set by
980 * database).
981 */
982 #$wgExtraNamespaces =
983 # array(100 => "Hilfe",
984 # 101 => "Hilfe_Diskussion",
985 # 102 => "Aide",
986 # 103 => "Discussion_Aide"
987 # );
988 $wgExtraNamespaces = NULL;
989
990 /**
991 * Enable SOAP interface. Off by default
992 * SOAP is a protocoll for remote procedure calls (RPC) using http as
993 * middleware. This interface can be used by bots or special clients to receive
994 * articles from a wiki.
995 * Most bots use the normal HTTP interface and don't use SOAP.
996 * If unsure, set to false.
997 */
998 $wgEnableSOAP = false;
999
1000 /**
1001 * Limit images on image description pages to a user-selectable limit. In order
1002 * to reduce disk usage, limits can only be selected from a list. This is the
1003 * list of settings the user can choose from:
1004 */
1005 $wgImageLimits = array (
1006 array(320,240),
1007 array(640,480),
1008 array(800,600),
1009 array(1024,768),
1010 array(1280,1024),
1011 array(10000,10000) );
1012
1013
1014 /** Navigation links for the user sidebar.
1015 * 'text' is the name of the MediaWiki message that contains the label of this link
1016 * 'href' is the name of the MediaWiki message that contains the link target of this link.
1017 * Link targets starting with http are considered remote links. Ones not starting with
1018 * http are considered as names of local wiki pages.
1019 */
1020 $wgNavigationLinks = array (
1021 array( 'text'=>'mainpage', 'href'=>'mainpage' ),
1022 array( 'text'=>'portal', 'href'=>'portal-url' ),
1023 array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),
1024 array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),
1025 array( 'text'=>'randompage', 'href'=>'randompage-url' ),
1026 array( 'text'=>'help', 'href'=>'helppage' ),
1027 array( 'text'=>'sitesupport', 'href'=>'sitesupport-url' ),
1028 );
1029
1030 /**
1031 * On category pages, show thumbnail gallery for images belonging to that
1032 * category instead of listing them as articles.
1033 */
1034 $wgCategoryMagicGallery = true;
1035
1036 /**
1037 * Browser Blacklist for unicode non compliant browsers
1038 * Contains a list of regexps : "/regexp/" matching problematic browsers
1039 */
1040 $wgBrowserBlackList = array(
1041 "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/"
1042 // FIXME: Add some accurate, true things here
1043 );
1044
1045 /**
1046 * Fake out the timezone that the server thinks it's in. This will be used for
1047 * date display and not for what's stored in the DB. Leave to null to retain
1048 * your server's OS-based timezone value. This is the same as the timezone.
1049 */
1050 # $wgLocaltimezone = 'GMT';
1051 # $wgLocaltimezone = 'PST8PDT';
1052 # $wgLocaltimezone = 'Europe/Sweden';
1053 # $wgLocaltimezone = 'CET';
1054 $wgLocaltimezone = null;
1055
1056 /**
1057 * User level management
1058 * The number is the database id of a group you want users to be attached by
1059 * default. A better interface should be coded [av]
1060 */
1061 $wgAnonGroupId = 1;
1062 $wgLoggedInGroupId = 2;
1063 $wgSysopGroupId = 3;
1064 $wgBureaucratGroupId = 4;
1065
1066 /**
1067 * When translating messages with wfMsg(), it is not always clear what should be
1068 * considered UI messages and what shoud be content messages.
1069 *
1070 * For example, for regular wikipedia site like en, there should be only one
1071 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
1072 * it as content of the site and call wfMsgForContent(), while for rendering the
1073 * text of the link, we call wfMsg(). The code in default behaves this way.
1074 * However, sites like common do offer different versions of 'mainpage' and the
1075 * like for different languages. This array provides a way to override the
1076 * default behavior. For example, to allow language specific mainpage and
1077 * community portal, set
1078 *
1079 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
1080 */
1081 $wgForceUIMsgAsContentMsg = array();
1082
1083
1084 /**
1085 * Authentication plugin.
1086 */
1087 $wgAuth = null;
1088
1089 /**
1090 * Global list of hooks.
1091 * Add a hook by doing:
1092 * $wgHooks['event_name'][] = $function;
1093 * or:
1094 * $wgHooks['event_name'][] = array($function, $data);
1095 * or:
1096 * $wgHooks['event_name'][] = array($object, 'method');
1097 */
1098 $wgHooks = array();
1099
1100 /**
1101 * Experimental preview feature to fetch rendered text
1102 * over an XMLHttpRequest from JavaScript instead of
1103 * forcing a submit and reload of the whole page.
1104 * Leave disabled unless you're testing it.
1105 */
1106 $wgLivePreview = false;
1107
1108 /**
1109 * Disable the internal MySQL-based search, to allow it to be
1110 * implemented by an extension instead.
1111 */
1112 $wgDisableInternalSearch = false;
1113
1114 /**
1115 * Set this to a URL to forward search requests to some external location.
1116 * If the URL includes '$1', this will be replaced with the URL-encoded
1117 * search term.
1118 *
1119 * For example, to forward to Google you'd have something like:
1120 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
1121 * '&domains=http://example.com' .
1122 * '&sitesearch=http://example.com' .
1123 * '&ie=utf-8&oe=utf-8';
1124 */
1125 $wgSearchForwardUrl = null;
1126
1127 /**
1128 * If true, external URL links in wiki text will be given the
1129 * rel="nofollow" attribute as a hint to search engines that
1130 * they should not be followed for ranking purposes as they
1131 * are user-supplied and thus subject to spamming.
1132 */
1133 $wgNoFollowLinks = true;
1134
1135 /**
1136 * Specifies the minimal length of a user password. If set to
1137 * 0, empty passwords are allowed.
1138 */
1139 $wgMinimalPasswordLength = 0;
1140
1141 } else {
1142 die();
1143 }
1144 ?>