Article publié le : 19 février 2015 21:34:08
Install MediaWiki/Modifications pour la 1.17 | |
---|---|
Nom | mediawiki |
Version | 1.17.1 |
<?php//supression anciens répertoires
system("rm -rf ../MediaWiki/bin ../MediaWiki/cache ../MediaWiki/docs ../MediaWiki/includes ../MediaWiki/langages");
system("rm -rf ../MediaWiki/maintenance ../MediaWiki/mw-config ../MediaWiki/resources ../MediaWiki/serialized ../MediaWiki/tests");
//dézipper
system("tar -C ../MediaWiki --strip-components 1 -zxf ../tmp/mediawiki-1.17.1.tar.gz ");?>
http://www.jltryoen.fr/MediaWiki/mw-config/
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
$IP = MW_INSTALL_PATH;
} else {
$IP = dirname( __FILE__ );
}
$wgLogo = "images/montagne2.jpg";
$wgEnableUploads = true;
$wgUseImageResize = true;
//$wgDefaultSkin ='dynamicskin';
$wgDefaultSkin = 'gumax';
//$wgDefaultSkin = 'gumaxdd';
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
$wgDisableAnonTalk = true;
#no cache
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;
#####################################################################
# User authentication via Joomla using AuthJoomla2
# AuthJoomla v 2.2
if (strpos($_SERVER['HTTP_REFERER'], "joomla") != false)
{
...
require_once("$IP/extensions/AuthJoomla2/AuthJoomla2.php");
SetupAuthJoomla();
}
#extension for HTML
require_once("$IP/extensions/StubManager/StubManager.php" );
require_once("$IP/extensions/SecureHTML/SecureHTML.php" );
require_once("$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php");
require_once("$IP/extensions/FCKeditor/FCKeditor.php");
require_once("$IP/extensions/coolTable/coolTable.php");
#control categories
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['family'] = $wgGroupPermissions['user'];
require_once("$IP/extensions/CategoryControl/CategoryControl.php");
$wgCategoryPermissions['Sports']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Sports']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
$wgCategoryPermissions['Catégories_cachées']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Catégories_cachées']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['*'][] = 'sysop'; // Sysops can do anything they want with this category.
$wgCategoryPermissions['Private']['read'] = array('sysop', 'family'); // Sysops can do anything they want with this category.
#CategoryTree
$wgUseAjax = true;
require_once("{$IP}/extensions/CategoryTree/CategoryTree.php");
require_once("$IP/extensions/UserFunctions/UserFunctions.php");
require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");
#useradmin
require_once("$IP/extensions/UserAdmin/UserAdmin.php");