Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 10.39 KB | None | 0 0
  1. <?php
  2. # This file was automatically generated by the MediaWiki 1.18.0
  3. # installer. If you make manual changes, please keep track in case you
  4. # need to 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.  
  14.  
  15.  /*#readOnly
  16. $wgReadOnly = 'Wegen Wartungsarbeiten ist das Wiki vorübergehend nicht bearbeitbar.';
  17. */
  18.  
  19. # Protect against web entry
  20. if ( !defined( 'MEDIAWIKI' ) ) {
  21.     exit;
  22. }
  23.  
  24. ## Uncomment this to disable output compression
  25. # $wgDisableOutputCompression = true;
  26.  
  27. $wgSitename      = "MarioWiki";
  28.  
  29. ## The URL base path to the directory containing the wiki;
  30. ## defaults for all runtime URL paths are based off of this.
  31. ## For more information on customizing the URLs please see:
  32. ## http://www.mediawiki.org/wiki/Manual:Short_URL
  33. $wgScriptPath       = "/w";
  34. $wgArticlePath = '/wiki/$1';
  35. $wgUsePathInfo = true;
  36. $wgScriptExtension  = ".php";
  37.  
  38. ## The protocol and server name to use in fully-qualified URLs
  39. $wgServer           = "https://mariowiki.net";
  40.  
  41. ## The relative URL path to the skins directory
  42. $wgStylePath        = "$wgScriptPath/skins";
  43.  
  44. ## The relative URL path to the logo.  Make sure you change this from the default,
  45. ## or else you'll overwrite your logo when you upgrade!
  46. $wgLogo             = "$wgScriptPath/images/Wiki.png";
  47. $wgFavicon          = "$wgScriptPath/images/favicon.ico";
  48.  
  49. ## UPO means: this is also a user preference option
  50. $wgEnableEmail      = true;
  51. $wgEnableUserEmail  = true; # UPO
  52.  
  53. $wgEmergencyContact = "[email protected]";
  54. $wgPasswordSender   = "[email protected]";
  55.  
  56. $wgEnotifUserTalk      = true; # UPO
  57. $wgEnotifWatchlist     = true; # UPO
  58. $wgEmailAuthentication = true;
  59.  
  60. # MySQL specific settings
  61. $wgDBprefix         = "";
  62.  
  63. # MySQL table options to use during installation or update
  64. $wgDBTableOptions   = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
  65.  
  66. # Experimental charset support for MySQL 4.1/5.0.
  67. $wgDBmysql5 = false;
  68.  
  69. ## Shared memory settings
  70. $wgMainCacheType    = CACHE_NONE;
  71. $wgMemCachedServers = array();
  72.  
  73. ## To enable image uploads, make sure the 'images' directory
  74. ## is writable, then set this to true:
  75. $wgEnableUploads  = true;
  76. $wgUseImageMagick = true;
  77. $wgImageMagickConvertCommand = "/usr/bin/convert";
  78.  
  79. ## Fehlermeldung erzwingen
  80. /* error_reporting( -1 ); */
  81. /* ini_set( 'display_errors', 1 );*/
  82.  
  83. # InstantCommons allows wiki to use images from http://commons.wikimedia.org
  84. $wgUseInstantCommons  = false;
  85.  
  86. ## Patrol Rules
  87. $wgUseRCPatrol = true;
  88. $wgUseNPPatrol = true;
  89.  
  90.  
  91. ## User 'developer'
  92. $wgGroupPermissions['developer']['siteadmin'] = true;
  93. $wgGroupPermissions['sysop']['siteadmin'] = false;
  94. $wgGroupPermissions['developer']['maintenanceshell'] = true;
  95.  
  96. ## If you use ImageMagick (or any other shell command) on a
  97. ## Linux server, this will need to be set to the name of an
  98. ## available UTF-8 locale
  99. $wgShellLocale = "en_US.utf8";
  100.  
  101. ## If you want to use image uploads under safe mode,
  102. ## create the directories images/archive, images/thumb and
  103. ## images/temp, and make them all writable. Then uncomment
  104. ## this, if it's not already uncommented:
  105. #$wgHashedUploadDirectory = false;
  106.  
  107. ## Set $wgCacheDirectory to a writable directory on the web server
  108. ## to make your wiki go slightly faster. The directory should not
  109. ## be publically accessible from the web.
  110. #$wgCacheDirectory = "$IP/cache";
  111.  
  112. # Site language code, should be one of the list in ./languages/Names.php
  113. $wgLanguageCode = "de";
  114. $wgSecretKey = "SECRET";
  115.  
  116. # Site upgrade key. Must be set to a string (default provided) to turn on the
  117. # web installer while LocalSettings.php is in place
  118. $wgUpgradeKey = "SECRET";
  119.  
  120. ## Default skin: you can change the default skin. Use the internal symbolic
  121. ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
  122. $wgDefaultSkin = "vector";
  123. wfLoadSkin( 'Vector' );
  124. wfLoadSkin( 'MinervaNeue' );
  125. $wgAllowSiteCSSOnRestrictedPages = true;
  126.  
  127. # To remove various skins from the User Preferences choices
  128. $wgSkipSkins = array("chick", "cologneblue", "nostalgia", "simple", "standard", "modern", "myskin", "minerva");
  129.  
  130. ## For attaching licensing metadata to pages, and displaying an
  131. ## appropriate copyright notice / icon. GNU Free Documentation
  132. ## License and Creative Commons licenses are supported so far.
  133. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  134. $wgRightsUrl  = "http://creativecommons.org/licenses/by-nc-sa/3.0/";
  135. $wgRightsText = "Creative Commons „Namensnennung, Weitergabe unter gleichen, nicht kommerziellen Bedingungen“";
  136. $wgRightsIcon = "{$wgStylePath}/common/images/cc-by-nc-sa.png";
  137.  
  138. # Path to the GNU diff3 utility. Used for conflict resolution.
  139. $wgDiff3 = "/usr/bin/diff3";
  140.  
  141. # Query string length limit for ResourceLoader. You should only set this if
  142. # your web server has a query string length limit (then set it to that limit),
  143. # or if you have suhosin.get.max_value_length set in php.ini (then set it to
  144. # that value)
  145. $wgResourceLoaderMaxQueryLength = -1;
  146.  
  147.  
  148. # The following permissions were set based on your choice in the installer
  149. $wgGroupPermissions['*']['edit'] = false;
  150. $wgGroupPermissions['sysop']['deleterevision']  = true;
  151. $wgGroupPermissions['suppress']['deletelogentry'] = true;
  152. $wgGroupPermissions['suppress']['hideuser'] = true;
  153. $wgGroupPermissions['suppress']['suppressrevision'] = true;
  154. $wgGroupPermissions['suppress']['suppressionlog'] = true;
  155.  
  156. # Account Registrations
  157. ## Verkehrsstop wegen Spambot ._.
  158. ## Wenn es zu heftig wird, wird die Kontenerstellung ausgeschaltet
  159. ## Danach wird die Kontenerstellung wieder aktiviert, wenn es ruhig geworden ist
  160. $wgGroupPermissions['*']['createaccount'] = true;
  161.  
  162. # Enables use of WikiEditor by default but still allow users to disable it in preferences
  163. $wgDefaultUserOptions['usebetatoolbar'] = 1;
  164. $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
  165.  
  166. # Enabled Extensions. Most extensions are enabled by including the base extension file here
  167. # but check specific extension documentation for more details
  168. # The following extensions were automatically enabled:
  169.  
  170. $wgTmpDirectory = "$IP/images/temp";
  171. $wgAllowDisplayTitle = true;
  172. $wgRestrictDisplayTitle = false;
  173. $wgExtraNamespaces[100] = "Projekt";
  174. $wgExtraNamespaces[101] = "Projekt Diskussion";
  175.  
  176. // Add several file types to the default array
  177. $wgFileExtensions = array_merge(
  178.     $wgFileExtensions, array(
  179.         'mp3', 'ogg'
  180.     )
  181. );
  182.  
  183.  
  184. wfLoadExtension( 'Renameuser' );
  185. wfLoadExtension( 'ParserFunctions' );
  186. wfLoadExtension( 'Gadgets' );
  187. wfLoadExtension( 'ConfirmEdit' );
  188. wfLoadExtension( 'ConfirmEdit/QuestyCaptcha' );
  189. wfLoadExtension( 'InputBox' );
  190. wfLoadExtension( 'Cite' );
  191. wfLoadExtension( 'Variables' );
  192. wfLoadExtension( 'Description2' );
  193. //wfLoadExtension( 'SyntaxHighlight_GeSHi' );
  194. //require_once "$IP/extensions/CheckUser/CheckUser.php";
  195. wfLoadExtension( 'ImageMap' );
  196. wfLoadExtension( 'Interwiki' );
  197. $wgGroupPermissions['*']['interwiki'] = false;
  198. $wgGroupPermissions['sysop']['interwiki'] = true;
  199. wfLoadExtension( 'WikiEditor' );
  200. $wgHiddenPrefs[] = 'usebetatoolbar';
  201. wfLoadExtension( 'RandomSelection' );
  202. wfLoadExtension( 'RandomImage' );
  203. wfLoadExtension( 'CharInsert' );
  204. wfLoadExtension( 'Editcount' );
  205. wfLoadExtension( 'MultiUpload' );
  206. wfLoadExtension( 'TinyMCE' );
  207. $wgTinyMCEPreservedTags = array (
  208.         'div',
  209.                 'span'
  210.     );
  211. $wgTinyMCEDisabledNamespaces = array (
  212.     NS_MEDIAWIKI,
  213.     NS_MEDIAWIKI_TALK,
  214.     NS_TEMPLATE,
  215.     NS_TEMPLATE_TALK,
  216.     NS_CATEGORY,
  217.     NS_CATEGORY_TALK
  218. );
  219. wfLoadExtension( 'Discord' );
  220. $wgDiscordWebhookURL = [ 'SECRET' ];
  221. $wgDiscordDisabledHooks = ['ArticleRevisionVisibilitySet', 'ArticleProtectComplete', 'TitleMoveComplete', 'LocalUserCreated', 'BlockIpComplete', 'UserGroupsChanged', 'UploadComplete', 'FileUndeleteComplete'];
  222. $wgDiscordDisabledNS = [NS_MEDIAWIKI, NS_MEDIAWIKI_TALK, NS_TEMPLATE, NS_TEMPLATE_TALK, NS_CATEGORY, NS_CATEGORY_TALK];
  223. wfLoadExtension( 'MobileFrontend' );
  224. $wgMFAutodetectMobileView = true;
  225. $wgMFDefaultSkinClass = 'SkinMinerva';
  226.  
  227. //Benutzer-CSS und -JS-Seiten
  228. $wgAllowUserCss = true;
  229. $wgAllowUserJs = true;
  230.  
  231. $wgMaxImageArea = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
  232. $wgShowExceptionDetails = true;
  233. $wgEnableMetaDescriptionFunctions = true;
  234.  
  235. $wgUseSiteJs = true;
  236. $wgArticleCountMethod = 'any';
  237. $wgDefaultUserOptions['usenewrc'] = true;
  238. $wgAllowExternalImages = true;
  239. $wgEnableMWSuggest = true;
  240.  
  241.  
  242. //QuestyCaptcha-Fragen
  243. $wgCaptchaClass = 'QuestyCaptcha';
  244. $arr = array (
  245.         'Wer entf&#252;hrt (meistens) Prinzessin Peach?' => 'Bowser',
  246.         'Wer ist der j&#252;ngere Bruder von Mario?' => 'Luigi',
  247.         'Welche Firma ist durch die Super Mario-Videospiele ber&#252;hmt geworden und wie lautet der Name?' => 'Nintendo',
  248.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image01.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Mario',
  249.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image02.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Bowser',
  250.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image03.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Luigi',
  251.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image04.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Prinzessin Peach',
  252.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image05.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Rosalina',
  253.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image06.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Yoshi',
  254.         'Welcher Charakter wird in <a target="_blank" href="/images/captcha/eqc-captcha image07.jpg" alt="" title="">in diesem Bild</a> dargestellt?' => 'Wario',
  255. );
  256. foreach ( $arr as $key => $value ) {
  257.         $wgCaptchaQuestions[] = array( 'question' => $key, 'answer' => $value );
  258. }
  259.  
  260.  
  261. $wgMaxUploadFiles = 20;
  262.  
  263.  
  264. ## Database settings
  265. SECRET
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement