LocalSettings.php

From Fxp Wiki

Jump to: navigation, search
Voici mon dernier fichier LocalSettings.php de mediawiki qui fonctionne avec le Htaccess, pour la réécrire les url
Here is my LocalSettings.php file from mediawiki, which works with my Htaccess for url rewriting
 
 
<?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 = "/home/f/fxparlant/www/mediawiki";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "DefaultSettings.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" );
	}
} else {
	## Compress output if the browser supports it
	if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}
 
$wgSitename         = "FxpWiki";
$wgServer           = "http://www.fxparlant.net";
$wgScriptPath	    = "/mediawiki";
$wgScript           = $wgScriptPath."/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";
 
## If using PHP as a CGI module, use the ugly URLs
#$wgArticlePath      = "$wgScript/$1";
$wgArticlePath      = "/$1";
 
$wgStylePath        = "$wgScriptPath/stylesheets";
$wgStyleDirectory   = "$IP/stylesheets";
$wgLogo             = "$wgStylePath/images/Logo7I.gif";
 
$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";
 
$wgEmergencyContact = "xx@nuxit.net";
$wgPasswordSender	= "xx@nuxit.net";
 
$wgDBserver         = "xxxxxxxxxxx.net";
$wgDBname           = "xxxxxxxxxxxxxxx";
$wgDBuser           = "xxxxxxx";
$wgDBpassword       = "xxxxxxx";
 
## To allow SQL queries through the wiki's Special:Askaql page,
## uncomment the next lines. THIS IS VERY INSECURE. If you want
## to allow semipublic read-only SQL access for your sysops,
## you should define a MySQL user with limited privileges.
## See MySQL docs: http://www.mysql.com/doc/en/GRANT.html
#
# $wgAllowSysopQueries = true;
# $wgDBsqluser        = "sqluser";
# $wgDBsqlpassword    = "sqlpass";
 
$wgDBmysql4 = $wgEnablePersistentLC = true;
 
## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgDisableUploads		= false;
$wgUseImageResize		= true;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
 
## 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 = "en";
$wgUseLatin1 = false;
 
 
$wgProxyKey = "223fbb39921bc2e14617566e42e8b60a0e89fcc620dd0c2f7a4a67e5c93d0132";
 
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
# $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
 
$wgExtraNamespaces = array(100 => "Fxp", 101 => "Fxp_Discussion", 102 => "Fiches", 103 => "Fiches_Discussion", 104 => "Carnets", 105 => "Carnets_Discussion", 106 => "Test", 107 =>"Test_Discussion");
$wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1,
  2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1, 100 => 0, 101 => 1, 102 => 0, 103 => 1, 104 => 0, 105 => 1, 106 => 0, 107 => 1,);
 
$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 1, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 1, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1, 14 => 1, 15 => 1, 100 => 1, 101 => 1, 102 => 1, 103 => 1, 104 => 1, 105 => 1, 106 => 1, 107 => 1,);
 
#$wgWhitelistAccount = array ( "sysop" => 1, "developer" => 1 );
$wgWhitelistEdit = true;
 
include_once('extensions/geshi/geshi.php');
include("extensions/GeshiHighlight.php");
include("extensions/Blog.php");
require_once( "extensions/BrowserDetection.php" );
 
?>
 
Personal tools