LocalSettings.php

From translatewiki.net
Jump to: navigation, search

Updated at 20111228094248 (UTC)

<?php
 
#echo 'Translatewiki.net is unavailable because of configuration changes. Please check back in a few minutes.';
#die;

###
# PHP settings
###
ini_set( 'error_log', '/www/w/logs/error_php' );
ini_set( 'display_errors',          0);
ini_set( 'ignore_repeated_errors',  1);
ini_set( 'log_errors',              1);
 
ini_set( 'memory_limit',      '140M' );
ini_set( 'max_execution_time', '45s' );
 
error_reporting( E_ALL | E_STRICT );
date_default_timezone_set('UTC');
 
$wgServer = "//translatewiki.net";
$wgCanonicalServer = "https://translatewiki.net"; # Siebrand / 2011-08-25
if ( $wgServer === 'http://localhost' ) {
  $wgServer = $wgInternalServer = 'http://translatewiki.net';
}
 
$wgArticlePath      = "/wiki/$1";
$wgScriptPath       = "/w";
$wgScriptExtension  = ".php";
$wgScript           = "$wgScriptPath/i.php";
#$wgLoadScript       = "http://bits.translatewiki.net/w/load.php";
#$wgStylePath        = "//translatewiki.net/w/skins";
#$wgExtensionAssetsPath = "//translatewiki.net/w/extensions";
#$wgUploadBaseUrl    = "//translatewiki.net";

require("$IP/DatabaseSettings.php");
require("$IP/BetawikiSettings.php");
require("$IP/PrivateSettings.php");
 
$wgCacheDirectory = "/resources/caches/mainsite";
$wgLocalisationCacheConf['store'] = 'file';
$wgLocalisationCacheConf['manualRecache'] = true;
$wgAdvancedSearchHighlighting = true;
$wgStyleVersion .= '';
$wgDevelopmentWarnings  = true;
 
$wgInvalidateCacheOnLocalSettingsChange = false;
 
$wgProfileToDatabase = true;
#$wgEnableProfileInfo = true;
#$wgDebugComments        = true;
#$wgAutoloadClasses['MediaWikiMessageChecker'] = "$IP/extensions/Translate/groups/MediaWiki/Checker.php";

 
$wgHooks['SkinAfterBottomScripts'][]  = 'efGoogleAnalytics';
function efGoogleAnalytics( $skin, &$text ) {
        $text .= Html::inlineScript( <<<JS
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'XX-XXXXXXXX-X']);
  _gaq.push(['_trackPageview']);
  _gaq.push(['_setDomainName', '.translatewiki.net']);
 
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
JS
        );
        return true;
}
 
$wgDebugLogGroups['exception'] = ini_get( 'error_log' );
 
#$wgDebugComments        = true;
#$wgLogQueries           = true;
#$wgDebugDumpSql         = true;
#$wgDevelopmentWarnings  = true;
#$wgDebugTimestamps = true;
Personal tools
Namespaces

Variants
Actions
Translators
Navigation
Toolbox