<?php /* if ( function_exists( 'xhprof_enable' ) ) { xhprof_enable( XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY ); function wfStopXhprof() { $xhprof_data = xhprof_disable(); $XHPROF_ROOT = "/usr/local/lib/php"; include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_lib.php"; include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_runs.php"; $xhprof_runs = new XHProfRuns_Default(); wfDebug( "xhprof run ID: " . $xhprof_runs->save_run($xhprof_data, "xhprof_testing") . "\n" ); } register_shutdown_function( 'wfStopXhprof' ); }*/ #error_reporting( E_ALL ); function debugging_code_left_in() {return false;} # 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. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # 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. $IP = dirname( dirname( __FILE__ ) ); $path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() ); if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } require( "$IP/../../extensions/XHProf/XHProf.php" ); $wgServer = 'http://farm.shimmer'; $wgServerName = 'farm.shimmer'; $wgLocalDatabases = array( 'testwiki', 'commonswiki', 'enwiki', 'bgwiki', 'cswiki', 'frwiki', 'zhwiki', 'datawiki', # 'sqlite', # 'importwiki', # 'mw', # 'oldwiki', ); $wgConf = new SiteConfiguration; $wgConf->suffixes = array( '' ); $wgConf->wikis = $wgLocalDatabases; foreach ( $wgLocalDatabases as $wiki ) { $wgConf->settings['wgArticlePath'][$wiki] = "/$wiki/index.php/$1"; $wgConf->settings['wgServer'][$wiki] = 'http://farm.shimmer'; } if ( !isset( $_SERVER['REQUEST_URI'] ) ) { if ( isset( $_ENV['MWDB'] ) ) { $wgDBname = $_ENV['MWDB']; } elseif ( defined( 'MW_DB' ) ) { $wgDBname = MW_DB; } else { $wgDBname = reset( $wgLocalDatabases ); } } elseif ( preg_match( '!^/([a-zA-Z0-9_]*)/!', $_SERVER['REQUEST_URI'], $m ) ) { $wgDBname = $m[1]; } else { echo "Invalid farm DB\n"; exit( 1 ); } $wgSQLiteDataDir = "/home/tstarling/src/mediawiki/trunk/phase3/data"; $wgSitename = $wgDBname; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. $wgScriptPath = "/$wgDBname"; $wgScriptExtension = ".php"; ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgEnableEmail = true; $wgEnableUserEmail = true; $wgEmergencyContact = "webmaster@localhost"; $wgPasswordSender = "webmaster@localhost"; ## For a detailed description of the following switches see ## http://www.mediawiki.org/wiki/Extension:Email_notification ## and http://www.mediawiki.org/wiki/Extension:Email_notification ## 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 = true; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBuser = 'wikiuser'; $wgDBpassword = '...'; $wgDBadminuser = "root"; $wgDBadminpassword = "..."; # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; # Experimental charset support for MySQL 4.1/5.0. $wgDBmysql5 = true; # Postgres specific settings $wgDBport = "5432"; $wgDBmwschema = "mediawiki"; $wgDBts2schema = "public"; $wgShowSQLErrors = true; $wgShowDBErrorBacktrace = true; if ( $wgDBname == 'sqlite' ) { $wgDBtype = 'sqlite'; $wgDebugDumpSql = true; $wgShowSQLErrors = true; } else { #require( "$IP/db.php" ); $wgLBFactoryConf = array( 'class' => 'LBFactory_Multi', 'serverTemplate' => array( 'dbname' => $wgDBname, 'user' => $wgDBuser, 'password' => $wgDBpassword, 'type' => 'mysql', 'flags' => DBO_DEFAULT | DBO_DEBUG, #'max lag' => 30, #'max threads' => 100, #'fakeSlaveLag' => 10, ), 'sectionLoads' => array( 'DEFAULT' => array( 'localhost' => 1, #'local1' => 10000, /* 'local3' => 1, 'local1' => 1, 'local2' => 1,*/ ), ), 'sectionsByDB' => array(), 'hostsByName' => array( 'localhost' => '127.0.0.1:3306', 'local1' => '127.0.2.1', 'local2' => '127.0.2.2', 'local3' => '127.0.2.3', ), 'masterTemplateOverrides' => array( 'fakeMaster' => true ), 'templateOverridesByCluster' => array( 'cluster1' => array( 'blobs table' => 'blobs_cluster1' ), 'cluster2' => array( 'blobs table' => 'blobs_cluster2' ) ), 'externalLoads' => array(), // set below ); for ( $i = 1; $i < 20; $i++ ) { $wgLBFactoryConf['externalLoads']["cluster$i"] = array( 'localhost' => 1 ); } } ## Shared memory settings #$wgMainCacheType = CACHE_NONE; $wgMainCacheType = CACHE_MEMCACHED; #$wgMainCacheType = 'memcached-pecl'; #$wgMainCacheType = 'ext-db'; #$wgParserCacheType = 'ext-db'; $wgMemCachedServers = array( 'localhost:11211' ); $wgMemCachedDebug = true; $wgSessionsInMemcached = true; $wgSessionCacheType = CACHE_MEMCACHED; $wgObjectCacheSessionExpiry = 86400; $wgObjectCaches['ehcache'] = array( 'class' => 'EhcacheBagOStuff', 'servers' => array( 'localhost:8081' ), ); $wgObjectCaches['ext-db'] = array( 'class' => 'SQLBagOStuff', 'server' => array( 'dbname' => 'cachewiki', 'host' => 'localhost', 'user' => $wgDBuser, 'password' => $wgDBpassword, 'type' => 'mysql', 'flags' => DBO_DEBUG, ), 'purgePeriod' => 0, 'tableName' => 'pc', 'shards' => 256, ); $wgObjectCaches['multi'] = array( 'class' => 'MultiWriteBagOStuff', 'caches' => array( array( 'class' => 'MemcachedPhpBagOStuff' ), $wgObjectCaches['ext-db'] ) ); $wgObjectCaches['redis'] = array( 'class' => 'RedisBagOStuff', 'servers' => array( '127.0.0.1', '127.0.0.2', '127.0.0.3', '127.0.0.4', ), 'password' => 'ncqSSuZ98R', 'automaticFailover' => true, ); $wgMemCachedTimeout = 30e6; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageMagick = true; #$wgImageMagickConvertCommand = "/usr/bin/convert"; $wgImageMagickConvertCommand = "/usr/local/im-trunk/bin/convert"; ## 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 = false; $wgLocalInterwiki = $wgSitename; if ( preg_match( '/^(\w\w)wiki$/', $wgDBname, $m ) ) { $wgLanguageCode = $m[1]; } else { $wgLanguageCode = "en"; } $wgProxyKey = "..."; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': $wgDefaultSkin = 'vector'; ## 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"; $wgShowExceptionDetails = true; $wgExternalStores = array( 'DB' ); $wgAllDBsAreLocalhost = false; if ( php_sapi_name() == 'cli' ) { $wgDebugLogFile = '/var/log/mw/cli.log'; } else { $wgDebugLogFile = '/var/log/mw/debug.log'; } $wgDebugFunctionEntry = true; $wgDebugRawPage = true; $wgShowHostnames = true; $wgDebugRedirects = true; #$wgDevelopmentWarnings = true; /* $wgParserConf = array( 'class' => 'Parser', 'parsers' => array( 'old' => 'Parser_r40000', 'new' => 'Parser', ), 'shortOutput' => true, ); $wgAutoloadClasses['Parser_r39202'] = 'includes/parser/Parser_r39202.php'; $wgAutoloadClasses['Parser_r40000'] = 'includes/parser/Parser_r40000.php'; */ $wgParserConf = array( 'class' => 'Parser', 'preprocessorClass' => 'Preprocessor_DOM', ); #require( "$IP/../../extensions/CentralAuth/CentralAuth.php" ); $wgGroupPermissions['sysop']['centralauth-admin'] = true; $wgGroupPermissions['sysop']['centralauth-merge'] = true; $wgGroupPermissions['sysop']['centralauth-unmerge'] = true; $wgGroupPermissions['sysop']['centralauth-lock'] = true; $wgGroupPermissions['sysop']['centralauth-oversight'] = true; $wgCentralAuthCookies = true; $wgCentralAuthAutoLoginWikis = array( 'frwiki' ); $wgCentralAuthCreateOnView = true; $wgCentralAuthCookieDomain = ''; $wgCookieDomain = ''; $wgCentralAuthAutoNew = true; $wgLocalFileRepo = array( 'class' => 'LocalRepo', 'name' => 'local', 'directory' => "$IP/images", 'url' => '/testwiki/images', 'hashLevels' => 2, 'thumbScriptUrl' => false, 'transformVia404' => false, 'initialCapital' => true, 'deletedDir' => "$IP/images/deleted", 'deletedHashLevels' => 3, 'thumbDir' => "$IP/images/thumb2", 'thumbUrl' => "$wgScriptPath/images/thumb2" ); /* $wgForeignFileRepos[] = array( 'class' => 'ForeignDBViaLBRepo', 'name' => 'shared', 'directory' => "$IP/images", 'url' => "$wgScriptPath/images", 'wiki' => 'commonswiki', 'descBaseUrl' => 'http://farm.shimmer/commonswiki/index.php/Image:', 'scriptDirUrl' => 'http://farm.shimmer/commonswiki', 'fetchDescription' => true, 'hasSharedCache' => true, );*/ #$wgFileRedirects = true; require( "$IP/../../extensions/Cite/Cite.php" ); #require( "$IP/../../extensions/transliterate/Transliterate.php" ); #$wgAutopromote['emailconfirmed'] = APCOND_EMAILCONFIRMED; require( "$IP/../../extensions/OggHandler/OggHandler.php" ); #$wgCortadoJarFile = "cortado-ovt-debug-wm_r44143.jar?2"; #$wgCortadoJarFile = "http://farm.shimmer/testwiki/tarpit.php"; #$wgOggThumbLocation = '/home/tstarling/src/oggvideotools/oggvideotools-0.8/src/oggThumb'; #$wgOggThumbLocation = '/usr/bin/oggThumb'; $wgOggThumbLocation = '/home/tstarling/src/oggvideotools/branches/dev/timstarling/src/oggThumb'; /* require( "$IP/../../extensions/FlaggedRevs/FlaggedRevs.php" ); $wgFlaggedRevsAutoReviewNew = true; $wgFlaggedRevsOverride = true; $wgUseStableTemplates = false;*/ require( "$IP/../../extensions/ParserFunctions/ParserFunctions.php" ); $wgPFEnableStringFunctions = true; #$wgSpecialVersionShowHooks = true; #$wgPasswordSalt = false; #require( "$IP/../../extensions/PasswordReset/PasswordReset.php" ); #$wgGroupPermissions['sysop']['passwordreset'] = true; #require( "$IP/../../extensions/Maintenance/Maintenance.php" ); #$wgGroupPermissions['sysop']['maintenance'] = true; /* require( "$IP/../../extensions/ExtensionDistributor/ExtensionDistributor.php" ); $wgExtDistTarDir = "$IP/images/mwtar"; $wgExtDistTarUrl = "$wgServer$wgScriptPath/images/mwtar"; $wgExtDistWorkingCopy = '/var/apache-data/mw-snapshot'; */ require( "$IP/../../extensions/WikimediaMessages/WikimediaMessages.php" ); #$wgJobRunRate = 0; /* require( "$IP/../../extensions/PlanetAggregator/PlanetAggregator.php" ); $wgPlanetBaseDir = '/srv/planet/sites'; $wgPlanetBaseDomain = 'shimmer'; $wgPlanetLanguageSubdomains = true; $wgPlanetExtraParams = array( 'face URL' => '', );*/ $wgCleanSignatures = false; $wgUseTidy = false; $wgTidyInternal = false; require( "$IP/../../extensions/NewUserMessage/NewUserMessage.php" ); $egLqtNamespaceNumbers = array( 'Thread' => 100, 'Thread_talk' => 101, 'Summary' => 102, 'Summary_talk' => 103 ); #require( "$IP/../../extensions/LiquidThreads/LiquidThreads.php" ); #require( "$IP/../../extensions/TrustedXFF/TrustedXFF.php" ); $wgUseTeX = true; $wgTexvc = "$IP/math/texvc"; $wgDebugLogGroups['deadlock'] = '/var/log/mw/deadlock.log'; /* require( "$IP/../../extensions/CheckUser/CheckUser.php" ); $wgGroupPermissions['sysop']['checkuser'] = true; $wgGroupPermissions['sysop']['checkuser-log'] = true; */ require( "$IP/../../extensions/ImageMap/ImageMap.php" ); #require( "$IP/../../extensions/EditMessages/EditMessages.php" ); $wgUseRCPatrol = true; $wgAllowUserCss = true; $wgEdititis = false; $wgGroupPermissions['user']['move-rootuserpages'] = false; #$wgGroupPermissions['sysop']['move-rootuserpages'] = false; $wgGroupPermissions['user']['patrol'] = true; #$wgInterwikiCache = "$IP/cache/private/interwiki.cdb"; $wgMaxShellMemory = 500000; $wgMaxShellFileSize = 500000; $wgImageMagickTempDir = '/tmp/imagemagick'; $wgImportSources = array( 'frwiki', 'm' ); $wgLogo = "$wgScriptPath/skins/common/images/mediawiki.png"; require( "$IP/../../extensions/AbuseFilter/AbuseFilter.php" ); $wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['sysop']['abusefilter-log-detail'] = true; $wgGroupPermissions['sysop']['abusefilter-view'] = true; $wgGroupPermissions['sysop']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-private'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true; $wgGroupPermissions['sysop']['abusefilter-view-private'] = true; $wgGroupPermissions['sysop']['abusefilter-hidden-log'] = true; $wgGroupPermissions['sysop']['abusefilter-hide-log'] = true; $wgUsePathInfo = true; #$wgUseFileCache = true; #$wgFileCacheDirectory = "$IP/cache/html"; #$wgUpdateRowsPerJob = 2; /*$wgUseSquid = true; $wgSquidServers = array( 'echo' ); */ $wgUseXVO = false; #$wgDisableCounters = true; require( "$IP/../../extensions/ContactPage/ContactPage.php" ); $wgContactUser = 'Tim'; $wgContactSender = 'tstarling@wikimedia.org'; $wgContactSenderName = 'Contact Form on ' . $wgSitename; require( "$IP/../../extensions/CategoryTree/CategoryTree.php" ); require( "$IP/../../extensions/SecurePoll/SecurePoll.php" ); $wgSecurePollShowErrorDetail = true; $wgSecurePollXmlFile = "$IP/../../extensions/SecurePoll/cli/test.xml"; $wgExportMaxLinkDepth = 1; $wgGroupPermissions['sysop']['hideuser'] = true; $wgGroupPermissions['sysop']['suppressrevision'] = true; $wgGroupPermissions['sysop']['deleterevision'] = true; $wgGroupPermissions['sysop']['suppressionlog'] = true; $wgUseOldSearchUI = false; #require( "$IP/../../extensions/WikiEditor/WikiEditor.php" ); require( "$IP/../../extensions/Vector/Vector.php" ); #$wgEditToolbarGlobalEnable = true; #$wgOptInAlwaysShowPersonalLink = true; if ( !empty( $_REQUEST['timeline'] ) ) { require( "$IP/../../extensions/timeline/Timeline.php" ); } #$wgLocalisationCacheConf['manualRecache'] = true; #$wgLocalisationCacheConf['storeDirectory'] = $wgCacheDirectory . '/lc-' . # substr( sha1( implode( ',', $wgExtensionMessagesFiles ) ), 0, 8 ); /* $wgLocalisationCacheConf = array( 'class' => 'LocalisationCache', 'storeClass' => 'LCStore_Null', 'storeDirectory' => false, 'manualRecache' => false, );*/ $wgAllowCopyUploads = true; $wgGroupPermissions['user']['upload_by_url'] = false; /* $wgGroupPermissions['*']['read'] = false; $wgWhitelistRead = array( 'Main Page' );*/ /* require( "$IP/../../extensions/PoolCounter/PoolCounterClient.php" ); $wgPoolCounterConf = array( 'ArticleView' => array( 'class' => 'PoolCounter_Client', 'timeout' => 5, 'workers' => 1, 'maxqueue' => 50, ) ); */ #require( "$IP/../../extensions/intersection/DynamicPageList.php" ); $wgSecurePollTempDir = '/dev/shm'; $wgEnableHtmlDiff = false; $wgEnableJS2system = false; $wgEnableScriptLoader = true; $wgAllowJavaUploads = true; $wgVerifyMimeType = true; $wgAllowUserJs = true; #require( "$IP/../../extensions/TemplateInfo/TemplateInfo.php" ); require( "$IP/../../extensions/Collection/Collection.php" ); #require( "$IP/../extensions/ExpandTemplates/ExpandTemplates.php" ); /* require( "$IP/../../extensions/ExternalPages/ExternalPages.php" ); $wgExternalPages = array( 'news' => array( 'site' => 'wmf', 'title' => 'Current events' ) ); $wgExternalPagesSites = array( 'wmf' => array( 'scriptUrl' => 'http://localhost/blah' ) ); */ $wgCacheDirectory = "$IP/cache/private"; $wgEnableMWSuggest = true; require( "$IP/../../extensions/InputBox/InputBox.php" ); require( "$IP/../../extensions/CodeReview/CodeReview.php" ); $wgSubversionProxy = 'http://localhost/codereview-proxy/index.php'; $wgGroupPermissions['sysop']['repoadmin'] = true; #require( "$IP/../../extensions/UsabilityInitiative/ClickTracking/ClickTracking.php" ); #$wgClickTrackThrottle = 1; #require( "$IP/../../extensions/WikimediaMobile/WikimediaMobile.php" ); $wgExternalDiffEngine = 'wikidiff2'; $wgEnableSelenium = true; $wgGroupPermissions['user']['selenium'] = true; #$wgSeleniumTestsBrowsers['firefox'] = '*firefox /usr/lib/firefox-3.6.3/firefox-bin'; $wgSeleniumTestsBrowsers['firefox'] = '*firefox'; #require( "$IP/../../extensions/CentralNotice/CentralNotice.php" ); #require( "$IP/../extensions/GeneratorTest.php" ); require( "$IP/../../extensions/GlobalBlocking/GlobalBlocking.php" ); $wgGlobalBlockingDatabase = 'testwiki'; $wgEnableProfileInfo = true; $wgProfileToDatabase = false; #require( "/home/tstarling/src/openwebanalytics/trunk/owa-config.php" ); #require( "/home/tstarling/src/openwebanalytics/trunk/mw_plugin.php" ); require( "$IP/../../extensions/PagedTiffHandler/PagedTiffHandler.php" ); $wgTiffUseTiffinfo = true; $wgTiffUseVips = true; $wgMaxImageAreaForVips = 100e6; $wgFileExtensions[] = 'test'; $wgFileExtensions[] = 'svg'; $wgFileExtensions[] = 'zip'; $wgFileExtensions[] = 'odt'; $wgFileExtensions[] = 'djvu'; $wgFileExtensions[] = 'midi'; $wgSVGConverter = 'rsvg'; $wgDjvuRenderer = 'ddjvu'; require( "$IP/../../extensions/RSS/RSS.php" ); $wgGroupPermissions['sysop']['disableaccount'] = true; $wgUpgradeKey = '...'; $wgCapitalLinks = true; #$wgEditPageFrameOptions = false; $wgCategoryCollation = 'uca-default'; $wgCategoryPagingLimit = 2; $wgNamespaceAliases['Шаблон'] = NS_TEMPLATE; require( "$IP/../../extensions/DoubleWiki/DoubleWiki.php" ); $wgCiteCacheReferences = true; require( "$IP/../../extensions/Poem/Poem.php" ); #require( "$IP/../../extensions/SemanticMediaWiki/SemanticMediaWiki.php" ); #enableSemantics('shimmer'); #require( "$IP/../../extensions/SemanticForms/SemanticForms.php" ); /* $wgStatsMethod = 'udp'; $wgUDPProfilerHost = 'localhost'; $wgUDPProfilerPort = 3811; $wgAggregateStatsID = 'testwiki'; */ $wgDjvuDump = 'djvudump'; $wgDjvuTxt = 'djvutxt'; $wgImgAuthPublicTest = false; $wgImgAuthDetails = true; $wgBlockDisablesLogin = false; /* $wgExtensionFunctions[] = 'bug28639'; function bug28639() { global $wgUser; $wgUser->load(); }*/ #require( "$IP/../../extensions/WikiScripts/WikiScripts.php" ); #require( "$IP/../../extensions/Lua/Lua.php" ); #$wgLuaExternalInterpreter = '/usr/bin/lua'; #$wgLuaExternalCompiler = '/usr/bin/luac'; #$wgLuaExtension = 'luasandbox'; #require( "$IP/../../extensions/LuaFoo/LuaFoo.php" ); $wgPFEnableConvert = true; #require( "$IP/../../extensions/RTLDebug/RTLDebug.php" ); require( "$IP/../../extensions/TitleBlacklist/TitleBlacklist.php" ); $wgAvailableRights[] = 'superprotect'; $wgRestrictionLevels[] = 'superprotect'; $wgGroupPermissions['bureaucrat']['superprotect'] = true; require( "$IP/../../extensions/VipsScaler/VipsScaler.php" ); require( "$IP/../../extensions/VipsScaler/VipsTest.php" ); $wgSharpenParameter = '0x0.8'; #$wgVipsThumbnailerHost = '127.0.0.1:23'; require( "$IP/../../extensions/wikihiero/wikihiero.php" ); //require( "$IP/../../extensions/MoodBar/MoodBar.php" ); require( "$IP/../../extensions/ProofreadPage/ProofreadPage.php" ); $wgExtraNamespaces[10002] = 'Index'; require( "$IP/../../extensions/cldr/cldr.php" ); $wgResourceLoaderExperimentalAsyncLoading = true; $wgResourceLoaderMinifierStatementsOnOwnLine = true; require( "$IP/../../extensions/SpamBlacklist/SpamBlacklist.php" ); $wgBlacklistSettings['spam']['files'] = array( 'http://meta.wikimedia.org/w/index.php?title=Spam_blacklist&action=raw&sb_ver=1' ); require( "$IP/../../extensions/LandingCheck/LandingCheck.php" ); require( "$IP/../../extensions/CharInsert/CharInsert.php" ); require( "$IP/../../extensions/WikiEditor/WikiEditor.php" ); require( "$IP/../../extensions/CodeEditor/CodeEditor.php" ); require( "$IP/../../extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php" ); require( "$IP/../../extensions/Scribunto/Scribunto.php" ); #$wgScribuntoDefaultEngine = 'luastandalone'; $wgScribuntoDefaultEngine = 'luasandbox'; $wgScribuntoEngineConf['luastandalone']['errorFile'] = '/var/log/mw/lua.err'; #$wgScribuntoEngineConf['luastandalone']['debug'] = true; $wgScribuntoEngineConf['luastandalone']['cpuLimit'] = 10; $wgScribuntoEngineConf['luastandalone']['memoryLimit'] = 200e6; $wgScribuntoEngineConf['luastandalone']['luaPath'] = '/usr/local/bin/luajit-2.0.0-beta8'; $wgScribuntoUseGeSHi = true; $wgScribuntoUseCodeEditor = true; $wgScribuntoEngineConf['luasandbox']['cpuLimit'] = 10; require( "$IP/../../extensions/Score/Score.php" ); #$wgMaxArticleSize = 500; $wgCodeEditorEnableCore = false; require( "$IP/../../extensions/Narayam/Narayam.php" ); $wgNarayamEnabledByDefault = true; $wgNarayamUseOSK = false; $wgNarayamUseBetaMapping = true; $wgMaxGeneratedPPNodeCount = 100000; if ( $wgDBname === 'datawiki' ) { require( "$IP/../../extensions/UniversalLanguageSelector/UniversalLanguageSelector.php" ); $wgULSGeoService = false; require( "$IP/../../extensions/Wikibase/repo/Wikibase.php" ); define( 'WB_NS_ITEM', 568 ); define( 'WB_NS_ITEM_TALK', 569 ); define( 'WB_NS_PROPERTY', 570 ); define( 'WB_NS_PROPERTY_TALK', 571 ); define( 'WB_NS_QUERY', 572 ); define( 'WB_NS_QUERY_TALK', 573 ); $wgExtraNamespaces[WB_NS_ITEM] = 'Item'; $wgExtraNamespaces[WB_NS_ITEM_TALK] = 'Item_talk'; $wgExtraNamespaces[WB_NS_PROPERTY] = 'Property'; $wgExtraNamespaces[WB_NS_PROPERTY_TALK] = 'Property_talk'; $wgExtraNamespaces[WB_NS_QUERY] = 'Query'; $wgExtraNamespaces[WB_NS_QUERY_TALK] = 'Query_talk'; $egWBSettings['entityNamespaces'][CONTENT_MODEL_WIKIBASE_ITEM] = WB_NS_ITEM; $egWBSettings['entityNamespaces'][CONTENT_MODEL_WIKIBASE_PROPERTY] = WB_NS_PROPERTY; $egWBSettings['entityNamespaces'][CONTENT_MODEL_WIKIBASE_QUERY] = WB_NS_QUERY; } else { require( "$IP/../../extensions/Diff/Diff.php" ); require( "$IP/../../extensions/DataValues/DataValues.php" ); require( "$IP/../../extensions/Wikibase/lib/WikibaseLib.php" ); require( "$IP/../../extensions/Wikibase/client/WikibaseClient.php" ); }