You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MWSettings.php 8.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. <?php
  2. error_reporting(E_ALL); // Debug
  3. # This file was automatically generated by the MediaWiki installer.
  4. # If you make manual changes, please keep track in case you need to
  5. # recreate them later.
  6. #
  7. # See includes/DefaultSettings.php for all configurable settings
  8. # and their default values, but don't forget to make changes in _this_
  9. # file, not there.
  10. #
  11. # Further documentation for configuration settings may be found at:
  12. # http://www.mediawiki.org/wiki/Manual:Configuration_settings
  13. define("MW_INSTALL_PATH", "/application/w");
  14. # If you customize your file layout, set $IP to the directory that contains
  15. # the other MediaWiki files. It will be used as a base to locate files.
  16. if( defined( 'MW_INSTALL_PATH' ) ) {
  17. $IP = MW_INSTALL_PATH;
  18. } else {
  19. $IP = dirname( $_SERVER['SCRIPT_FILENAME'] );
  20. }
  21. $path = array( $IP, "$IP/includes", "$IP/languages" );
  22. set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
  23. require_once( "$IP/includes/DefaultSettings.php" );
  24. $wgDebugLogFile = "/tmp/mwdebug.log";
  25. if ( $wgCommandLineMode ) {
  26. if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
  27. die( "This script must be run from the command line\n" );
  28. }
  29. }
  30. ## Uncomment this to disable output compression
  31. # $wgDisableOutputCompression = true;
  32. $wgSitename = "Glitch City Laboratories";
  33. $wikiURLParsed = parse_url(getenv('GCL_WIKI_URL') ?: "http://glitchcity.info/wiki");
  34. $wgServer = "//" . $wikiURLParsed['host'];
  35. if (isset($wikiURLParsed['port']))
  36. {
  37. $wgServer .= ":" . $wikiURLParsed['port'];
  38. }
  39. ## The URL base path to the directory containing the wiki;
  40. ## defaults for all runtime URL paths are based off of this.
  41. ## For more information on customizing the URLs please see:
  42. ## http://www.mediawiki.org/wiki/Manual:Short_URL
  43. $wgScriptPath = "/w";
  44. $wgArticlePath = "/wiki/$1";
  45. $wgScriptExtension = ".php";
  46. ## The relative URL path to the skins directory
  47. $wgStylePath = "$wgScriptPath/skins";
  48. ## The relative URL path to the logo. Make sure you change this from the default,
  49. ## or else you'll overwrite your logo when you upgrade!
  50. $wgLogo = "$wgStylePath/common/images/wiki.png";
  51. ## UPO means: this is also a user preference option
  52. $wgEnableEmail = true;
  53. $wgEnableUserEmail = true; # UPO
  54. $wgEmergencyContact = "webmaster@localhost";
  55. $wgPasswordSender = "webmaster@localhost";
  56. $wgEnotifUserTalk = true; # UPO
  57. $wgEnotifWatchlist = true; # UPO
  58. $wgEmailAuthentication = true;
  59. ## Database settings
  60. $wgDBtype = getenv('GCL_DB_TYPE') ?: "mysql";
  61. $wgDBserver = getenv('GCL_DB_HOST') ?: "localhost";
  62. $wgDBname = getenv('GCL_DB_NAME') ?: "glitchcity";
  63. $wgDBuser = getenv('GCL_DB_USER') ?: "glitchcity";
  64. $wgDBpassword = getenv('GCL_DB_PASSWORD');
  65. # MySQL specific settings
  66. $wgDBprefix = getenv('GCL_DB_MW_PREFIX') ?: "mw_";
  67. # MySQL table options to use during installation or update
  68. $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
  69. # Experimental charset support for MySQL 4.1/5.0.
  70. $wgDBmysql5 = true;
  71. ## Shared memory settings
  72. $wgMainCacheType = CACHE_MEMCACHED;
  73. $wgMemCachedServers = array (
  74. 0 => (getenv('GCL_MEMCACHED_HOST') ?: "localhost") . ':11211',
  75. );
  76. ## To enable image uploads, make sure the 'images' directory
  77. ## is writable, then set this to true:
  78. $wgEnableUploads = true;
  79. $wgUseImageMagick = true;
  80. $wgImageMagickConvertCommand = "/usr/bin/convert";
  81. ## If you use ImageMagick (or any other shell command) on a
  82. ## Linux server, this will need to be set to the name of an
  83. ## available UTF-8 locale
  84. $wgShellLocale = "en_US.utf8";
  85. ## If you want to use image uploads under safe mode,
  86. ## create the directories images/archive, images/thumb and
  87. ## images/temp, and make them all writable. Then uncomment
  88. ## this, if it's not already uncommented:
  89. # $wgHashedUploadDirectory = false;
  90. ## If you have the appropriate support software installed
  91. ## you can enable inline LaTeX equations:
  92. $wgUseTeX = false;
  93. ## Set $wgCacheDirectory to a writable directory on the web server
  94. ## to make your wiki go slightly faster. The directory should not
  95. ## be publically accessible from the web.
  96. #$wgCacheDirectory = "$IP/cache";
  97. $wgLocalInterwiki = strtolower( $wgSitename );
  98. $wgLanguageCode = "en";
  99. $wgSecretKey = "15ca1701d1df9129320c037cc200e3fa8652ab4b255403eb276742d8b6a47398";
  100. ## Default skin: you can change the default skin. Use the internal symbolic
  101. ## names, ie 'vector', 'monobook':
  102. $wgDefaultSkin = 'gcl3';
  103. ## For attaching licensing metadata to pages, and displaying an
  104. ## appropriate copyright notice / icon. GNU Free Documentation
  105. ## License and Creative Commons licenses are supported so far.
  106. # $wgEnableCreativeCommonsRdf = true;
  107. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  108. $wgRightsUrl = "";
  109. $wgRightsText = "";
  110. $wgRightsIcon = "";
  111. # $wgRightsCode = ""; # Not yet used
  112. $wgDiff3 = "/usr/bin/diff3";
  113. # When you make changes to this configuration file, this will make
  114. # sure that cached pages are cleared.
  115. $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
  116. include_once('extensions/FlaggedRevs/FlaggedRevs.php');
  117. $wgGroupPermissions['*']['edit'] = false;
  118. $wgGroupPermissions['QC'] = array_merge($wgGroupPermissions['editor'],$wgGroupPermissions['reviewer']);
  119. $wgGroupPermissions['sysop'] = array_merge($wgGroupPermissions['sysop'],$wgGroupPermissions['QC']);
  120. $wgGroupPermissions['QC']['feedback'] = true;
  121. $wgGroupPermissions['sysop']['feedback'] = true;
  122. unset($wgGroupPermissions['reviewer']);
  123. unset($wgGroupPermissions['editor']);
  124. // FR settings
  125. $wgFlaggedRevTabs = true;
  126. $wgFlaggedRevsAutoReview = true;
  127. $wgFlaggedRevsVisible = array('*');
  128. $wgAddGroups['sysop'] = array( 'QC' );
  129. $wgRemoveGroups['sysop'] = array( 'QC' );
  130. $wgFlaggedRevsOverride = true;
  131. $wgFlaggedRevsExceptions = array( 'sysop', 'QC' );
  132. $wgFlaggedRevsAutoReviewNew = true;
  133. $wgUseStableTemplates = true;
  134. require_once("$IP/extensions/BBCodeSyntax/BBCodeSyntax.php");
  135. // 5 August 2016: This extension is causing issues with certain characters in
  136. // page titles e.g. accents. See https://www.mediawiki.org/wiki/Topic:T6thcdtfz8k4f1mw
  137. //require_once( "{$IP}/extensions/Contributors/Contributors.php" );
  138. // disable creating account from the wiki
  139. $wgGroupPermissions['*']['createaccount'] = false;
  140. require_once('extensions/Interwiki/Interwiki.php');
  141. $wgGroupPermissions['*']['interwiki'] = false;
  142. $wgGroupPermissions['sysop']['interwiki'] = true;
  143. $wgDBsqluser = "root";
  144. $wgDBsqlpassword = "";
  145. //$wgGroupPermissions['oversight']['asksql'] = true;
  146. //require_once('extensions/Asksql/Asksql.php');
  147. $wgGroupPermissions['oversight']['oversight'] = true;
  148. $wgGroupPermissions['oversight']['hiderevision'] = true;
  149. $wgGroupPermissions['oversight']['unhiderevision'] = true;
  150. $wgAddGroups['bureaucrat'] = array( 'bureaucrat', 'sysop', 'QC' );
  151. $wgRemoveGroups['bureaucrat'] = array( 'bureaucrat', 'sysop', 'QC' );
  152. $wgAddGroups['oversight'] = array( 'oversight', 'bureaucrat', 'sysop', 'QC' );
  153. $wgRemoveGroups['oversight'] = array( 'oversight', 'bureaucrat', 'sysop', 'QC' );
  154. wfLoadExtension("CheckUser");
  155. $wgGroupPermissions['sysop']['checkuser'] = true;
  156. $wgGroupPermissions['sysop']['checkuser-log'] = true;
  157. wfLoadExtension("Renameuser");
  158. wfLoadExtension("GCLParserFunctions");
  159. wfLoadExtension("Nuke");
  160. $wgShowExceptionDetails = true;
  161. $wgUseFileCache = false;
  162. $wgShowIPinHeader = false;
  163. $wgExternalLinkTarget = '_blank';
  164. $wgUpgradeKey = 'ce338679bb42ab00';
  165. wfLoadSkin("Vector");
  166. wfLoadSkin("MonoBook");
  167. wfLoadSkin("GCL3");
  168. $wgCachePages = false;
  169. wfLoadExtension("Auth_remoteuser");
  170. $wgGroupPermissions['*']['autocreateaccount'] = true;
  171. # Disable MediaWiki's PHP session handling since it conflicts with SMF's
  172. $wgPHPSessionHandling = "disable";
  173. # This requires the link to SMF API.
  174. $wgSMFPathAPI= "/application/forums/smf_api.php"; # The smf_api.php file can be download from SMF website and must be placed in rootdir of your forum)
  175. $wgSMFPathSSI= "/application/forums/SSI.php"; # The SSI.php file (watch capitals!) (normally in your rootdir of your forum)
  176. $wgSMFPath = "/application/forums";
  177. $wgSMFURL = getenv("GCL_FORUMS_URL") ?: "https://forums.glitchcity.info";
  178. require_once("{$IP}/extensions/Auth_SMF.php");
  179. //$wgAuthRemoteuserUserName = "Abwayax";