Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.42 KB | None | 0 0
  1. <?php
  2.  
  3. ini_set('display_errors', 'On');
  4. ini_set('html_errors', 0);
  5.  
  6. # This file was automatically generated by the MediaWiki 1.25.2
  7. # installer. If you make manual changes, please keep track in case you
  8. # need to recreate them later.
  9. #
  10. # See includes/DefaultSettings.php for all configurable settings
  11. # and their default values, but don't forget to make changes in _this_
  12. # file, not there.
  13. #
  14. # Further documentation for configuration settings may be found at:
  15. # https://www.mediawiki.org/wiki/Manual:Configuration_settings
  16.  
  17. # Protect against web entry
  18. if ( !defined( 'MEDIAWIKI' ) ) {
  19.     exit;
  20. }
  21.  
  22. ## Uncomment this to disable output compression
  23. # $wgDisableOutputCompression = true;
  24.  
  25. $wgSitename = "My Community";
  26. $wgMetaNamespace = "My_Community";
  27.  
  28. ## The URL base path to the directory containing the wiki;
  29. ## defaults for all runtime URL paths are based off of this.
  30. ## For more information on customizing the URLs
  31. ## (like /w/index.php/Page_title to /wiki/Page_title) please see:
  32. ## https://www.mediawiki.org/wiki/Manual:Short_URL
  33. $wgScriptPath = "/w";
  34. $wgScriptExtension = ".php";
  35.  
  36. ## The protocol and server name to use in fully-qualified URLs
  37. $wgServer = "http://test.MYURL.URL";
  38.  
  39. ## The relative URL path to the skins directory
  40. $wgStylePath = "$wgScriptPath/skins";
  41. $wgResourceBasePath = $wgScriptPath;
  42.  
  43. ## The relative URL path to the logo.  Make sure you change this from the default,
  44. ## or else you'll overwrite your logo when you upgrade!
  45. $wgLogo = "$wgResourceBasePath/resources/assets/wiki.png";
  46.  
  47. ## UPO means: this is also a user preference option
  48.  
  49. $wgEnableEmail = true;
  50. $wgEnableUserEmail = true; # UPO
  51.  
  52. $wgEmergencyContact = "apache@test.MYURL.URL";
  53. $wgPasswordSender = "apache@test.MYURL.URL";
  54.  
  55. $wgEnotifUserTalk = false; # UPO
  56. $wgEnotifWatchlist = false; # UPO
  57. $wgEmailAuthentication = true;
  58.  
  59. ## Database settings
  60. $wgDBtype = "mysql";
  61. $wgDBserver = "MYURL.URL";
  62. $wgDBname = "MY_DB_NAME";
  63. $wgDBuser = "MY_DB_USER";
  64. $wgDBpassword = "MY_DB_PASS";
  65.  
  66. # MySQL specific settings
  67. $wgDBprefix = "wiki_test_";
  68.  
  69. # MySQL table options to use during installation or update
  70. $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
  71.  
  72. # Experimental charset support for MySQL 5.0.
  73. $wgDBmysql5 = false;
  74.  
  75. ## Shared memory settings
  76. $wgMainCacheType = CACHE_NONE;
  77. $wgMemCachedServers = array();
  78.  
  79. ## To enable image uploads, make sure the 'images' directory
  80. ## is writable, then set this to true:
  81. $wgEnableUploads = false;
  82. $wgUseImageMagick = true;
  83. $wgImageMagickConvertCommand = "/usr/bin/convert";
  84.  
  85. # InstantCommons allows wiki to use images from http://commons.wikimedia.org
  86. $wgUseInstantCommons = false;
  87.  
  88. ## If you use ImageMagick (or any other shell command) on a
  89. ## Linux server, this will need to be set to the name of an
  90. ## available UTF-8 locale
  91. $wgShellLocale = "en_US.utf8";
  92.  
  93. ## If you want to use image uploads under safe mode,
  94. ## create the directories images/archive, images/thumb and
  95. ## images/temp, and make them all writable. Then uncomment
  96. ## this, if it's not already uncommented:
  97. #$wgHashedUploadDirectory = false;
  98.  
  99. ## Set $wgCacheDirectory to a writable directory on the web server
  100. ## to make your wiki go slightly faster. The directory should not
  101. ## be publically accessible from the web.
  102. #$wgCacheDirectory = "$IP/cache";
  103.  
  104. # Site language code, should be one of the list in ./languages/Names.php
  105. $wgLanguageCode = "en-gb";
  106.  
  107. $wgSecretKey = "37ac81d1d614f67c652fe558d5a1a6c82a632ce9926ba63a1942f95034dda590";
  108.  
  109. # Site upgrade key. Must be set to a string (default provided) to turn on the
  110. # web installer while LocalSettings.php is in place
  111. $wgUpgradeKey = "39a40e07a8fc85e3";
  112.  
  113. ## For attaching licensing metadata to pages, and displaying an
  114. ## appropriate copyright notice / icon. GNU Free Documentation
  115. ## License and Creative Commons licenses are supported so far.
  116. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  117. $wgRightsUrl = "";
  118. $wgRightsText = "";
  119. $wgRightsIcon = "";
  120.  
  121. # Path to the GNU diff3 utility. Used for conflict resolution.
  122. $wgDiff3 = "/usr/bin/diff3";
  123.  
  124. ## Default skin: you can change the default skin. Use the internal symbolic
  125. ## names, ie 'vector', 'monobook':
  126. $wgDefaultSkin = "vector";
  127.  
  128. # Enabled skins.
  129. # The following skins were automatically enabled:
  130. wfLoadSkin( 'CologneBlue' );
  131. wfLoadSkin( 'Modern' );
  132. wfLoadSkin( 'MonoBook' );
  133. wfLoadSkin( 'Vector' );
  134.  
  135.  
  136. # End of automatically generated settings.
  137. # Add more configuration options below.
  138.  
  139. # This requires a user be logged into the wiki to make changes.
  140. $wgGroupPermissions['*']['edit'] = false; // MediaWiki Setting
  141.  
  142. # If you experience the issue where you appear to be logged in
  143. # eventhough you are logged out then disable the page cache.
  144. #$wgEnableParserCache = false;
  145. #$wgCachePages = false;
  146.  
  147. # SMF Authentication
  148. # To get started you only need to configure wgSMFPath.
  149. # The rest of the settings are optional for advanced features.
  150.  
  151. # Relative path to the forum directory from the wiki
  152. # Do not put a trailing /
  153. # Example: /public_html/forum and /public_html/wiki -../forum
  154. $wgSMFPath = "../forums";
  155.  
  156. # Use SMF's login system to automatically log you in/out of the wiki
  157. # This works best if you are using SMF database sessions (default).
  158. # Make sure "Use database driven sessions" is checked in the
  159. # SMF Admin -Server Settings -Feature Configuration section
  160. # NOTE: Make sure to configure the wgCookeDomain below
  161. $wgSMFLogin = true;
  162. $wgCookieDomain = 'MYURL.URL';
  163.  
  164. # Members in these SMF groups will not be allowed to sign into wiki.
  165. # This is useful for denying access to wiki and a easy anti-spam
  166. # method.  The group ID, which can be found in the url (;group=XXX)
  167. # when viewing the group from the administrator control panel.
  168. #$wgSMFDenyGroupID = array(4);
  169.  
  170. # Grant members of this SMF group(s) access to the wiki
  171. # NOTE: The wgSMFDenyGroupID group supersedes this.
  172. #wgSMFGroupID = array(2);
  173.  
  174. # Grant members of this SMF group(s) wiki sysop privileges
  175. # NOTE: These members must be able to login to the wiki
  176. #$wgSMFAdminGroupID = array(1, 3);
  177.  
  178. # SMF to wiki group translation.  This allows us to assign wiki groups
  179. # to those in certain SMF groups.
  180. #$wgSMFSpecialGroups = array(
  181. #   // SMF Group ID =Wiki group name.
  182. #   5 ='autoconfirmed',
  183. #);
  184.  
  185. # THIS MUST BE ADDED.  This prevents direct access to the Auth file.
  186. define('SMF_IN_WIKI', true);
  187.  
  188. # Load up the extension
  189. require_once "$IP/extensions/Auth_SMF.php";
  190. $wgAuth = new Auth_SMF();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement