Advertisement
Guest User

Lovsndhiusaiogfsykj

a guest
Jan 6th, 2023
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.18 KB | Source Code | 0 0
  1. <?php
  2. # This file was automatically generated by the MediaWiki 1.38.4
  3. # installer. If you make manual changes, please keep track in case you
  4. # need to recreate them later.
  5. #
  6. # See docs/Configuration.md 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. # https://www.mediawiki.org/wiki/Manual:Configuration_settings
  12.  
  13. # Protect against web entry
  14. if ( !defined( 'MEDIAWIKI' ) ) {
  15.     exit;
  16. }
  17.  
  18.  
  19. ## Uncomment this to disable output compression
  20. # $wgDisableOutputCompression = true;
  21.  
  22. $wgSitename = "My Wiki";
  23. $wgMetaNamespace = "My_Wiki";
  24.  
  25. ## The URL base path to the directory containing the wiki;
  26. ## defaults for all runtime URL paths are based off of this.
  27. ## For more information on customizing the URLs
  28. ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
  29. ## https://www.mediawiki.org/wiki/Manual:Short_URL
  30. $wgScriptPath = "/w";
  31. $wgArticlePath = "/wiki/$1";
  32. ## The protocol and server name to use in fully-qualified URLs
  33.  
  34.  
  35. ## The URL path to static resources (images, scripts, etc.)
  36. $wgResourceBasePath = $wgScriptPath;
  37.  
  38. ## The URL paths to the logo.  Make sure you change this from the default,
  39. ## or else you'll overwrite your logo when you upgrade!
  40. $wgLogos = [
  41.     '1x' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
  42.    
  43.    
  44.     'icon' => "$wgResourceBasePath/resources/assets/change-your-logo.svg",
  45. ];
  46.  
  47. ## UPO means: this is also a user preference option
  48.  
  49. $wgEnableEmail = false;
  50. $wgEnableUserEmail = false; # UPO
  51.  
  52. $wgEmergencyContact = "apache@🌻.invalid";
  53. $wgPasswordSender = "apache@🌻.invalid";
  54.  
  55. $wgEnotifUserTalk = false; # UPO
  56. $wgEnotifWatchlist = false; # UPO
  57. $wgEmailAuthentication = false;
  58.  
  59. ## Database settings
  60.  
  61. # MySQL specific settings
  62. $wgDBprefix = "";
  63.  
  64. # MySQL table options to use during installation or update
  65. $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
  66.  
  67. # Shared database table
  68. # This has no effect unless $wgSharedDB is also set.
  69. $wgSharedTables[] = "actor";
  70.  
  71. ## Shared memory settings
  72. $wgMainCacheType = CACHE_NONE;
  73. $wgMemCachedServers = [];
  74.  
  75. ## To enable image uploads, make sure the 'images' directory
  76. ## is writable, then set this to true:
  77. $wgEnableUploads = true;
  78. $wgUseImageMagick = true;
  79. $wgImageMagickConvertCommand = "/usr/local/bin/convert";
  80.  
  81. # InstantCommons allows wiki to use images from https://commons.wikimedia.org
  82. $wgUseInstantCommons = true;
  83.  
  84. # Periodically send a pingback to https://www.mediawiki.org/ with basic data
  85. # about this MediaWiki instance. The Wikimedia Foundation shares this data
  86. # with MediaWiki developers to help guide future development efforts.
  87. $wgPingback = true;
  88.  
  89. # Site language code, should be one of the list in ./languages/data/Names.php
  90. $wgLanguageCode = "en";
  91.  
  92. # Time zone
  93. $wgLocaltimezone = "Asia/Dubai";
  94.  
  95. ## Set $wgCacheDirectory to a writable directory on the web server
  96. ## to make your wiki go slightly faster. The directory should not
  97. ## be publicly accessible from the web.
  98. #$wgCacheDirectory = "$IP/cache";
  99.  
  100.  
  101. # Changing this will log out all existing sessions.
  102. $wgAuthenticationTokenVersion = "1";
  103.  
  104. # Site upgrade key. Must be set to a string (default provided) to turn on the
  105. # web installer while LocalSettings.php is in place
  106.  
  107.  
  108. ## For attaching licensing metadata to pages, and displaying an
  109. ## appropriate copyright notice / icon. GNU Free Documentation
  110. ## License and Creative Commons licenses are supported so far.
  111. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  112. $wgRightsUrl = "https://www.gnu.org/copyleft/fdl.html";
  113. $wgRightsText = "GNU Free Documentation License 1.3 or later";
  114. $wgRightsIcon = "$wgResourceBasePath/resources/assets/licenses/gnu-fdl.png";
  115.  
  116. # Path to the GNU diff3 utility. Used for conflict resolution.
  117. $wgDiff3 = "/usr/bin/diff3";
  118.  
  119. ## Default skin: you can change the default skin. Use the internal symbolic
  120. ## names, e.g. 'vector' or 'monobook':
  121. $wgDefaultSkin = "vector";
  122.  
  123. # Enabled skins.
  124. # The following skins were automatically enabled:
  125. wfLoadSkin( 'MinervaNeue' );
  126. wfLoadSkin( 'MonoBook' );
  127. wfLoadSkin( 'Timeless' );
  128. wfLoadSkin( 'Vector' );
  129. wfLoadSkin( 'Modern' );
  130. wfLoadSkin( 'CologneBlue' );
  131. wfLoadSkin( 'Nostalgia' );
  132.  
  133. # Enabled extensions. Most of the extensions are enabled by adding
  134. # wfLoadExtension( 'ExtensionName' );
  135. # to LocalSettings.php. Check specific extension documentation for more details.
  136. # The following extensions were automatically enabled:
  137. wfLoadExtension( 'AbuseFilter' );
  138. wfLoadExtension( 'CategoryTree' );
  139. wfLoadExtension( 'Cite' );
  140. wfLoadExtension( 'CiteThisPage' );
  141. wfLoadExtension( 'CodeEditor' );
  142. wfLoadExtension( 'ConfirmEdit' );
  143. wfLoadExtension( 'Gadgets' );
  144. wfLoadExtension( 'ImageMap' );
  145. wfLoadExtension( 'InputBox' );
  146. wfLoadExtension( 'Interwiki' );
  147. wfLoadExtension( 'LocalisationUpdate' );
  148. wfLoadExtension( 'Math' );
  149. wfLoadExtension( 'MultimediaViewer' );
  150. wfLoadExtension( 'Nuke' );
  151. wfLoadExtension( 'OATHAuth' );
  152. wfLoadExtension( 'PageImages' );
  153. wfLoadExtension( 'ParserFunctions' );
  154. wfLoadExtension( 'PdfHandler' );
  155. wfLoadExtension( 'Poem' );
  156. wfLoadExtension( 'Renameuser' );
  157. wfLoadExtension( 'ReplaceText' );
  158. wfLoadExtension( 'Scribunto' );
  159. wfLoadExtension( 'SecureLinkFixer' );
  160. wfLoadExtension( 'SpamBlacklist' );
  161. wfLoadExtension( 'SyntaxHighlight_GeSHi' );
  162. wfLoadExtension( 'TemplateData' );
  163. wfLoadExtension( 'TextExtracts' );
  164. wfLoadExtension( 'TitleBlacklist' );
  165. wfLoadExtension( 'VisualEditor' );
  166. wfLoadExtension( 'WikiEditor' );
  167. wfLoadExtension( 'UploadWizard' );
  168.  
  169.  
  170. # End of automatically generated settings.
  171. # Add more configuration options below.
  172. $wgInterwikiMagic = true;
  173. $wgHideInterlanguageLinks = false;
  174. $wgInterwikiViewOnly = false;
  175. $wgGroupPermissions['sysop']['interwiki'] = true;
  176.  
  177. wfLoadExtension( 'SandboxLink' );
  178.  
  179. wfLoadExtension( 'TemplateSandbox' );
  180. wfLoadExtension( 'TemplateStyles' );
  181. $wgForeignFileRepos[] = [
  182.     'class' => ForeignAPIRepo::class,
  183.     'name' => 'enwikipedia',
  184.     'apibase' => 'https://en.wikipedia.org/w/api.php',
  185.     'hashLevels' => 2,
  186.     'fetchDescription' => true,
  187.     'descriptionCacheExpiry' => 43200,
  188.     'apiThumbCacheExpiry' => 86400,
  189. ];
  190.  
Tags: php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement