LocalSettings.php.epp 5.91 KB
Newer Older
Hugo Hörnquist's avatar
Hugo Hörnquist committed
1
2
3
<%- |
	String %mysql_password,
| -%>
Hugo Hörnquist's avatar
Hugo Hörnquist committed
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php

# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.

$IP = "/var/lib/mediawiki";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "includes/DefaultSettings.php" );
//include_once("$IP/extensions/intersection/DynamicPageList.php");
include_once("$IP/extensions/ImageMap/ImageMap.php");
//include_once("$IP/extensions/DynamicPageList/DynamicPageListMigration.php");
include_once("$IP/extensions/DynamicPageList/DynamicPageList.php");

# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

if ( $wgCommandLineMode ) {
	if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
		die( "This script must be run from the command line\n" );
	}
} elseif ( empty( $wgNoOutputBuffer ) ) {
	## Compress output if the browser supports it
	if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename         = "Datorhandbok";

$wgScriptPath	    = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath      = "$wgScript/$1";
# $wgArticlePath      = "$wgScript?title=$1";

$wgStylePath        = "$wgScriptPath/skins";
$wgStyleDirectory   = "$IP/skins";
$wgLogo             = "$wgScriptPath/skins/lyslogo-liten.png";

$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";

$wgEnableEmail = false;
$wgEnableUserEmail = false;

$wgEmergencyContact = "root@lysator.liu.se";
$wgPasswordSender	= "root@lysator.liu.se";

## For a detailed description of the following switches see
## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = false;

$wgDBserver         = "localhost";
$wgDBname           = "datorhandbok";
$wgDBuser           = "datorhandbok";
Hugo Hörnquist's avatar
Hugo Hörnquist committed
65
$wgDBpassword       = "<%= $mysql_password %>";
Hugo Hörnquist's avatar
Hugo Hörnquist committed
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
$wgDBprefix         = "";

# If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = false;

# Experimental charset support for MySQL 4.1/5.0.
#$wgDBmysql5 = false;
$wgDBmysql5 = true;

## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgEnableUploads		= true;
$wgUseImageResize		= true;
$wgUseImageMagick = false;
$wgImageMagickConvertCommand = "/usr/bin/convert";
$wgCustomConvertCommand = "/usr/bin/convert -resize %wx%h %s %d";

## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
# $wgHashedUploadDirectory = false;

## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX			= true;
$wgMathPath         = "{$wgUploadPath}/math";
$wgMathDirectory    = "{$wgUploadDirectory}/math";
$wgTmpDirectory     = "{$wgUploadDirectory}/tmp";

$wgLocalInterwiki   = $wgSitename;

$wgLanguageCode = "sv";

Hugo Hörnquist's avatar
Hugo Hörnquist committed
104
$wgSecretKey = "<%= $mysql_password %>";
Hugo Hörnquist's avatar
Hugo Hörnquist committed
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158

## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
wfLoadSkin( 'Vector' );
# $wgDefaultSkin = 'monobook';

## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used

$wgDiff3 = "/usr/bin/diff3";

## Disable anonymous accounts and edits
$wgGroupPermissions['*'   ]['createaccount']   = false;
$wgGroupPermissions['*'   ]['edit']            = false;
$wgGroupPermissions['*'   ]['read']            = true;

$wgGroupPermissions['user']['edit']            = true;
$wgGroupPermissions['user']['move']            = false;
$wgGroupPermissions['user']['read']            = true;
$wgGroupPermissions['user']['upload']          = false;

## Allow autocreation of accounts by extensions such as authpam
$wgGroupPermissions['*']['autocreateaccount'] = true;

## Lysatorspecifika grupper:
## www kan skriva och ndra texter.
## root r systemadministratrer.
$wgGroupPermissions['www' ]['edit']            = true;
$wgGroupPermissions['www' ]['move']            = true;
$wgGroupPermissions['www' ]['read']            = true;
$wgGroupPermissions['www' ]['upload']          = true;

$wgGroupPermissions['root']['block']           = true;
$wgGroupPermissions['root']['createaccount']   = true;
$wgGroupPermissions['root']['delete']          = true;
$wgGroupPermissions['root']['edit']            = true;
$wgGroupPermissions['root']['editinterface']   = true;
$wgGroupPermissions['root']['import']          = true;
$wgGroupPermissions['root']['importupload']    = true;
$wgGroupPermissions['root']['move']            = true;
$wgGroupPermissions['root']['patrol']          = true;
$wgGroupPermissions['root']['protect']         = true;
$wgGroupPermissions['root']['read']            = true;
$wgGroupPermissions['root']['rollback']        = true;
$wgGroupPermissions['root']['upload']          = true;
$wgGroupPermissions['root']['userrights']      = true;

Hugo Hörnquist's avatar
Hugo Hörnquist committed
159
160
## Autentisera mot CAS
requince_once('extensions/CASAuth/CASAuth.php');
Hugo Hörnquist's avatar
Hugo Hörnquist committed
161
162
163
164
165
166
167
168
169

## Visa tiden i Sveriges tidszon.

$wgLocalTZoffset = date("Z") / 3600;

## Gr skrivskyddad.
#$wgReadOnly = "Systemunderhll pgr, Datorhandboken skrivskyddad!";

//$wgShowExceptionDetails  = true;
Hugo Hörnquist's avatar
Hugo Hörnquist committed
170
//$wgShowDBErrorBacktrace = true;