Added support for whitelists for reading and writing articles and for
[lhc/web/wiklou.git] / includes / DefaultSettings.php
1 <?
2 # DO NOT EDIT THIS FILE!
3 # To customize your installation, edit "LocalSettings.php".
4 # Note that since all these string interpolations are expanded
5 # before LocalSettings is included, if you localize something
6 # like $wgScriptPath, you must also localize everything that
7 # depends on it.
8
9 $wgServer = "http://" . getenv( "SERVER_NAME" );
10 $wgScriptPath = "/wiki";
11 $wgScript = "{$wgScriptPath}/wiki.phtml";
12 $wgRedirectScript = "{$wgScriptPath}/redirect.phtml";
13 $wgStyleSheetPath = "{$wgScriptPath}/style";
14 $wgStyleSheetDirectory = "{$IP}/style";
15 $wgArticlePath = "{$wgScript}?title=$1";
16 $wgUploadPath = "{$wgScriptPath}/upload";
17 $wgUploadDirectory = "{$IP}/upload";
18 $wgLogo = "{$wgUploadPath}/wiki.png";
19 $wgMathPath = "{$wgUploadPath}/math";
20 $wgMathDirectory = "{$wgUploadDirectory}/math";
21 $wgTmpDirectory = "{$wgUploadDirectory}/tmp";
22 $wgEmergencyContact = "wikiadmin@" . getenv( "SERVER_NAME" );
23 #$wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>";
24 $wgPasswordSender = "Wikipedia Mail <apache@www.wikipedia.org>\r\nReply-To: webmaster@www.wikipedia.org";
25
26
27 # MySQL settings
28 #
29 $wgDBserver = "localhost";
30 $wgDBname = "wikidb";
31 $wgDBintlname = "intl";
32 $wgDBconnection = "";
33 $wgDBuser = "wikiuser";
34 $wgDBpassword = "userpass";
35 $wgDBsqluser = "sqluser";
36 $wgDBsqlpassword = "sqlpass";
37 $wgDBminWordLen = 4;
38 $wgDBtransactions = false; # Set to true if using InnoDB tables
39 $wgDBmysql4 = false; # Set to true to use enhanced fulltext search
40
41 # Language settings
42 #
43 $wgLanguageCode = "en";
44 $wgInterwikiMagic = true; # Treat language links as magic connectors, not inline links
45 $wgUseNewInterlanguage = false;
46 $wgInputEncoding = "ISO-8859-1";
47 $wgOutputEncoding = "ISO-8859-1";
48 $wgEditEncoding = "";
49 $wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
50 $wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
51 $wgUseDynamicDates = false; # Enable to allow rewriting dates in page text
52 $wgAmericanDates = false; # Enable for English module to print dates
53 # as eg 'May 12' instead of '12 May'
54 $wgLocalInterwiki = "w";
55 $wgShowIPinHeader = true; # For non-logged in users
56 $wgUseDynamicDates = true; # Allows the user to pick their preferred date format
57
58 # Miscellaneous configuration settings
59 #
60 $wgReadOnlyFile = "{$wgUploadDirectory}/lock_yBgMBwiR";
61 $wgDebugLogFile = "{$wgUploadDirectory}/log_dlJbnMZb";
62 $wgDebugComments = false;
63 $wgReadOnly = false;
64 $wgSqlLogFile = "{$wgUploadDirectory}/sqllog_mFhyRe6";
65 $wgLogQueries = false;
66 $wgUseBetterLinksUpdate = true;
67
68
69 # The following three config variables are used to define
70 # the rights of users in your system.
71 #
72 # If wgWhitelistEdit is set to true, only logged in users
73 # are allowed to edit articles.
74 # If wgWhitelistRead is set to true, only logged in users
75 # are allowed to read articles.
76 #
77 # wgWhitelistAccount lists user types that can add user accounts:
78 # "key" => 1 defines permission if user has right "key".
79 #
80 # Typical setups are:
81 #
82 # Everything goes (this is the default behaviour):
83 # $wgWhitelistEdit = false;
84 # $wgWhitelistRead = false;
85 # $wgWhitelistAccount = array ( "user" => 1, "sysop" => 1, "developer" => 1 );
86 #
87 # Invitation-only closed shop type of system
88 # $wgWhitelistEdit = true;
89 # $wgWhitelistRead = true;
90 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
91 #
92 # Public website, closed editorial team
93 # $wgWhitelistEdit = true;
94 # $wgWhitelistRead = false;
95 # $wgWhitelistAccount = array ( "user" => 0, "sysop" => 1, "developer" => 1 );
96
97
98 # Client-side caching:
99 $wgCachePages = true; # Allow client-side caching of pages
100
101 # Set this to current time to invalidate all prior cached pages.
102 # Affects both client- and server-side caching.
103 $wgCacheEpoch = "20030516000000";
104
105 # Server-side caching:
106 # This will cache static pages for non-logged-in users
107 # to reduce database traffic on public sites.
108 # Must set $wgShowIPinHeader = false
109 $wgUseFileCache = false;
110 $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
111
112 $wgCookieExpiration = 2592000;
113
114 $wgAllowExternalImages = true;
115 $wgMiserMode = false; # Disable database-intensive features
116 $wgUseTeX = false;
117 $wgProfiling = false; # Enable for more detailed by-function times in debug log
118
119 # We can serve pages compressed in order to save bandwidth,
120 # but this will increase CPU usage.
121 # Requires zlib support enabled in PHP.
122 $wgUseGzip = false;
123
124 # Which namespaces should support subpages?
125 # See Language.php for a list of namespaces.
126 #
127 $wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
128 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1 );
129
130 $wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0,
131 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0 );
132
133 ?>