Advertisement
prod

LocalSettings.php

May 8th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.08 KB | None | 0 0
  1. <?php
  2. # This file was automatically generated by the MediaWiki installer.
  3. # If you make manual changes, please keep track in case you need to
  4. # recreate them later.
  5. #
  6. # See includes/DefaultSettings.php for all configurable settings
  7. # and their default values, but don't forget to make changes in _this_
  8. # file, not there.
  9. #
  10. # Further documentation for configuration settings may be found at:
  11. # http://www.mediawiki.org/wiki/Manual:Configuration_settings
  12.  
  13. # Protect against web entry
  14. if ( !defined( 'MEDIAWIKI' ) ) {
  15.     exit;
  16. }
  17.  
  18. # If PHP's memory limit is very low, some operations may fail.
  19. # ini_set( 'memory_limit', '20M' );
  20.  
  21. if ( $wgCommandLineMode ) {
  22.     if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
  23.         die( "This script must be run from the command line\n" );
  24.     }
  25. } elseif ( empty( $wgNoOutputBuffer ) ) {
  26.     ## Compress output if the browser supports it
  27.     if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
  28. }
  29.  
  30. $wgDebugLogFile = "/tmp/debug-beta.log";
  31.  
  32. ## Uncomment this to disable output compression
  33. # $wgDisableOutputCompression = true;
  34.  
  35. ## Override server timezone displayed in signatures
  36. $wgLocaltimezone    = "UTC";
  37.  
  38. $wgSitename         = ;
  39. $wgMetaNamespace    = ;
  40.  
  41. ## The URL base path to the directory containing the wiki;
  42. ## defaults for all runtime URL paths are based off of this.
  43. ## For more information on customizing the URLs please see:
  44. ## http://www.mediawiki.org/wiki/Manual:Short_URL
  45. $wgScriptPath       = "/w";
  46. $wgArticlePath      = "/wiki/$1";
  47. $wgUsePathInfo      = true;
  48. $wgScriptExtension  = ".php";
  49.  
  50. ## The relative URL path to the skins directory
  51. #$wgStylePath        = "$wgScriptPath/skins";
  52.  
  53. ## The relative URL path to the logo.  Make sure you change this from the default,
  54. ## or else you'll overwrite your logo when you upgrade!
  55. $wgFavicon          = ;
  56. $wgLogo             = ;
  57.  
  58. ## UPO means: this is also a user preference option
  59.  
  60. $wgEnableEmail      = true;
  61. $wgEnableUserEmail  = true; # UPO
  62.  
  63. $wgEmergencyContact = ;
  64. $wgPasswordSender   = ;
  65.  
  66. $wgEnotifUserTalk = true; # UPO
  67. $wgEnotifWatchlist = true; # UPO
  68. $wgEmailAuthentication = true;
  69.  
  70. ## Database settings
  71. require_once "$IP/../../configs/db-configs.beta.php";
  72.  
  73. # MySQL specific settings
  74. $wgDBprefix         = ;
  75.  
  76. # MySQL table options to use during installation or update
  77. $wgDBTableOptions   = "TYPE=InnoDB";
  78.  
  79. # Experimental charset support for MySQL 4.1/5.0.
  80. $wgDBmysql5 = false;
  81.  
  82. ## Shared memory settings
  83. $wgMainCacheType = CACHE_ACCEL;
  84. $wgMemCachedServers = array();
  85.  
  86. $wgUseSquid = true;
  87. $wgSquidServers = array( '127.0.0.1' );
  88. $wgUsePrivateIPs = true;
  89.  
  90. ## To enable image uploads, make sure the 'images' directory
  91. ## is writable, then set this to true:
  92. $wgEnableUploads       = true;
  93. $wgAllowCopyUploads    = true;
  94. $wgCopyUploadsFromSpecialUpload = true;
  95. $wgMimeDetectorCommand = "file -bi";
  96. $wgUploadPath          = ;
  97. $wgUploadDirectory     = "$IP/images/beta";
  98.  
  99. $wgStrictFileExtensions = false;
  100. $wgFileExtensions = array(
  101.     'gif', 'png', 'jpg', 'jpeg', 'ogg', 'doc', 'xls',
  102.     'ppt', 'mp3', 'sxc', 'pdf', 'map', 'mov', 'svg'
  103. );
  104.  
  105. $wgUseImageMagick = true;
  106. $wgMaxShellMemory = 128000;
  107. $wgImageMagickConvertCommand = "/usr/bin/convert";
  108.  
  109. # InstantCommons allows wiki to use images from http://commons.wikimedia.org
  110. $wgUseInstantCommons  = false;
  111.  
  112. ## Define SVG converter
  113. $wgSVGConverters = array( 'rsvg' => '/usr/bin/rsvg-convert -w $width -h $height -o $output $input' );
  114. $wgSVGConverter = "rsvg" ;
  115. $wgSVGConverterPath = "/usr/bin/";
  116.  
  117. ## If you use ImageMagick (or any other shell command) on a
  118. ## Linux server, this will need to be set to the name of an
  119. ## available UTF-8 locale
  120. # $wgShellLocale = "en_US.UTF-8";
  121.  
  122. ## If you want to use image uploads under safe mode,
  123. ## create the directories images/archive, images/thumb and
  124. ## images/temp, and make them all writable. Then uncomment
  125. ## this, if it's not already uncommented:
  126. # $wgHashedUploadDirectory = false;
  127.  
  128. ## If you have the appropriate support software installed
  129. ## you can enable inline LaTeX equations:
  130. $wgUseTeX           = true;
  131.  
  132. ## Set $wgCacheDirectory to a writable directory on the web server
  133. ## to make your wiki go slightly faster. The directory should not
  134. ## be publically accessible from the web.
  135. //$wgCacheDirectory = "$IP/cache/beta";
  136. //$wgUseFileCache = true;
  137. //$wgFileCacheDirectory = "{$wgCacheDirectory}/html";
  138. $wgShowIPinHeader = false;
  139.  
  140. # Site language code, should be one of ./languages/Language(.*).php
  141. $wgLanguageCode = "en";
  142.  
  143. ## Default skin: you can change the default skin. Use the internal symbolic
  144. ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
  145. $wgDefaultSkin = 'dolphin';
  146.  
  147. wfLoadSkin( 'CologneBlue' );
  148. wfLoadSkin( 'Modern' );
  149. wfLoadSkin( 'MonoBook' );
  150. wfLoadSkin( 'Vector' );
  151.  
  152. require_once( "$IP/skins/BlueCloud/BlueCloud.php" );
  153. require_once( "$IP/skins/Dolphin/Dolphin.php" );
  154. require_once( "$IP/skins/Power/Power.php" );
  155. require_once( "$IP/skins/QuantumLeap/QuantumLeap.php" );
  156. require_once( "$IP/skins/Whale/Whale.php" );
  157.  
  158. require_once( "$IP/skins/Dolphin/resources.php" );
  159.  
  160. ## For attaching licensing metadata to pages, and displaying an
  161. ## appropriate copyright notice / icon. GNU Free Documentation
  162. ## License and Creative Commons licenses are supported so far.
  163. $wgEnableCreativeCommonsRdf = true;
  164. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  165. $wgRightsUrl = "http://creativecommons.org/licenses/by-sa/3.0/";
  166. $wgRightsText = "Attribution-Share Alike 3.0 Unported";
  167. $wgRightsIcon = "http://i.creativecommons.org/l/by-sa/3.0/88x31.png";
  168. # $wgRightsCode = "[license_code]"; # Not yet used
  169.  
  170. # Path to the GNU diff3 utility. Used for conflict resolution.
  171. $wgDiff3 = "/usr/bin/diff3";
  172.  
  173. # Query string length limit for ResourceLoader. You should only set this if
  174. # your web server has a query string length limit (then set it to that limit),
  175. # or if you have suhosin.get.max_value_length set in php.ini (then set it to
  176. # that value)
  177. $wgResourceLoaderMaxQueryLength = -1;
  178.  
  179. $wgEnableMWSuggest = true;
  180.  
  181. ## Fix ParserFunctions HTML
  182. $wgUseTidy = true;
  183. $wgTidyBin = '/usr/bin/tidy';
  184.  
  185. ## Enable subpages
  186. $wgNamespacesWithSubpages = array_fill(0, 200, true);
  187.  
  188. $wgAllowUserJs  = true;
  189. $wgAllowUserCss = true;
  190.  
  191. ## Autoconfirmed minimum requirements
  192. $wgAutoConfirmAge   = 3600*24*4; // four days
  193. $wgAutoConfirmCount = 10;        // 10 edits
  194.  
  195. $wgBlockAllowsUTEdit = true;
  196.  
  197. $wgResourceLoaderDebug = true;
  198. $wgShowExceptionDetails = true;
  199.  
  200. $wgForeignFileRepos[] = array(
  201.    'class'                   => 'ForeignAPIRepo',
  202.    'name'                    => ,
  203.    'apibase'                 => ,
  204.    'fetchDescription'        => true, // Optional
  205.    'descriptionCacheExpiry'  => 43200, // 12 hours, optional (values are seconds)
  206.    'apiThumbCacheExpiry'     => 43200, // 12 hours, optional, but required for local thumb caching
  207. );
  208.  
  209. // User permissions
  210. // From http://www.mediawiki.org/wiki/Manual:User_rights
  211. $wgGroupPermissions['*'            ]['interwiki']          = false;
  212. $wgGroupPermissions['*'            ]['writeapi']           = false;
  213.  
  214. $wgGroupPermissions['user'         ]['createaccount']      = false;
  215. $wgGroupPermissions['user'         ]['move']               = false;
  216. $wgGroupPermissions['user'         ]['move-subpages']      = false;
  217. $wgGroupPermissions['user'         ]['reupload-shared']    = false;
  218. $wgGroupPermissions['user'         ]['skipcaptcha']        = false;
  219. $wgGroupPermissions['user'         ]['writeapi']           = false;
  220.  
  221. $wgGroupPermissions['autoconfirmed']['move']               = true;
  222. $wgGroupPermissions['autoconfirmed']['skipcaptcha']        = true;
  223. $wgGroupPermissions['autoconfirmed']['writeapi']           = true;
  224.  
  225. $wgGroupPermissions['rollback'     ]['forcepreviewexempt'] = true;
  226. $wgGroupPermissions['rollback'     ]['autopatrol']         = true;
  227. $wgGroupPermissions['rollback'     ]['patrolmarks']        = true;
  228. $wgGroupPermissions['rollback'     ]['rollback']           = true;
  229.  
  230. $wgGroupPermissions['sysop'        ]['forcepreviewexempt'] = true;
  231. $wgGroupPermissions['sysop'        ]['deleterevision']     = true;
  232. $wgGroupPermissions['sysop'        ]['mergehistory']       = true;
  233. $wgGroupPermissions['sysop'        ]['upload_by_url']      = true;
  234.  
  235. $wgGroupPermissions['bureaucrat'   ]['interwiki']          = true;
  236. $wgGroupPermissions['bureaucrat'   ]['suppressrevision']   = true;
  237. $wgGroupPermissions['bureaucrat'   ]['suppressionlog']     = true;
  238.  
  239. # Enabled Extensions. Most extensions are enabled by including the base extension file here
  240. # but check specific extension documentation for more details
  241. # The following extensions were automatically enabled:
  242. require_once( "$IP/extensions/CheckUser/CheckUser.php" );
  243. require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" );
  244. require_once( "$IP/extensions/ConfirmEdit/AyahCaptcha.php" );
  245. require_once( "$IP/extensions/DynamicPageList/DynamicPageList.php" );
  246. require_once( "$IP/extensions/Echo/Echo.php" );
  247. require_once( "$IP/extensions/EmbedVideo/EmbedVideo.php" );
  248. require_once( "$IP/extensions/ForcePreview/ForcePreview.php" );
  249. require_once( "$IP/extensions/GraphViz/GraphViz.php" );
  250. require_once( "$IP/extensions/HitCounters/HitCounters.php" );
  251. require_once( "$IP/extensions/Math/Math.php" );
  252. require_once( "$IP/extensions/MobileFrontend/MobileFrontend.php" );
  253. require_once( "$IP/extensions/ReplaceText/ReplaceText.php" );
  254. require_once( "$IP/extensions/Scribunto/Scribunto.php" );
  255. require_once( "$IP/extensions/SpamBlacklist/SpamBlacklist.php" );
  256. require_once( "$IP/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php" );
  257. require_once( "$IP/extensions/Thanks/Thanks.php" );
  258. require_once( "$IP/extensions/TitleBlacklist/TitleBlacklist.php" );
  259. require_once( "$IP/extensions/ToggleAnonRights/ToggleAnonRights.php" );
  260. require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );
  261. require_once( "$IP/extensions/Variables/Variables.php" );
  262. require_once( "$IP/extensions/WatchSubpages/WatchSubpages.php" );
  263. require_once( "$IP/extensions/WebsiteAnalytics/WebsiteAnalytics.php" );
  264.  
  265. wfLoadExtensions( array( 'CharInsert', 'Cite', 'Gadgets', 'ImageMap', 'Interwiki', 'Nuke', 'ParserFunctions', 'Renameuser' ) );
  266.  
  267. # End of automatically generated settings.
  268. # Add more configuration options below.
  269.  
  270. # Allow autoconfirmed users to skip captcha
  271. # Repeated from above to override extensions default
  272. $wgGroupPermissions['autoconfirmed']['skipcaptcha']        = true;
  273.  
  274. $wgGraphVizSettings->createCategoryPages = 'yes';
  275. $wgGraphVizSettings->dotCommand = "/usr/bin/dot";
  276.  
  277. // Reduce the load on the server slightly (the default's 1)
  278. $wgJobRunRate = 0.2;
  279.  
  280. // Hide links on Recent changes longer than $wgRCMaxAge
  281. $wgRCFilterByAge = true;
  282.  
  283. /* The bottom two have been added */
  284. $wgThumbLimits = array(
  285.     120,
  286.     150,
  287.     180,
  288.     200,
  289.     250,
  290.     300,
  291.     400,
  292.     500
  293. );
  294.  
  295. $wgMFAutodetectMobileView = true;
  296. $wgMobileUrlTemplate = ;
  297.  
  298. // Needed to make UploadWizard work in IE, see bug 39877
  299. $wgApiFrameOptions = 'SAMEORIGIN';
  300.  
  301. $wgScribuntoUseGeSHi = true;
  302.  
  303. $wgGoogleAnalyticsID = ;
  304.  
  305. $wgCaptchaClass = 'AyahCaptcha';
  306. $wgAYAHpublisher = ;
  307. $wgAYAHscoring = ;
  308.  
  309. require_once "$IP/../../configs/ext-configs.beta.php";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement