Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.48 KB | None | 0 0
  1. <?php
  2. # This file was automatically generated by the MediaWiki 1.17.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. # Protect against web entry
  14. if ( !defined( 'MEDIAWIKI' ) ) {
  15. exit;
  16. }
  17.  
  18. ## Uncomment this to disable output compression
  19. # $wgDisableOutputCompression = true;
  20.  
  21. $wgSitename = 'Wascow Wiki';
  22. $wgMetaNamespace = "My_wiki";
  23.  
  24. ## The URL base path to the directory containing the wiki;
  25. ## defaults for all runtime URL paths are based off of this.
  26. ## For more information on customizing the URLs please see:
  27. ## http://www.mediawiki.org/wiki/Manual:Short_URL
  28. $wgScriptPath = '/~timboyv146';
  29. $wgArticlePath = $wgScriptPath.'/$1';
  30. $wgRunJobsAsync = false;
  31. $wgScriptExtension = ".php";
  32.  
  33. ## The relative URL path to the skins directory
  34. $wgStylePath = "$wgScriptPath/skins";
  35.  
  36. ## The relative URL path to the logo. Make sure you change this from the default,
  37. ## or else you'll overwrite your logo when you upgrade!
  38. $wgLogo = "$wgStylePath/common/images/logo.gif";
  39.  
  40. ## UPO means: this is also a user preference option
  41.  
  42. $wgEnableEmail = true;
  43. $wgEnableUserEmail = true; # UPO
  44.  
  45. $wgEmergencyContact = 'timboersma61@gmail.com';
  46. $wgPasswordSender = 'timboersma61@gmail.com';
  47.  
  48. $wgEnotifUserTalk = false; # UPO
  49. $wgEnotifWatchlist = false; # UPO
  50. $wgEmailAuthentication = true;
  51.  
  52. ## Database settings
  53. $wgDBtype = "mysql";
  54. $wgDBserver = 'localhost';
  55. $wgDBname = 'timboyv146_mw1';
  56. $wgDBuser = 'timboyv146_mw1';
  57. $wgDBpassword = 'C)l2gDnSdJ21~(6';
  58.  
  59. # MySQL specific settings
  60. $wgDBprefix = 'mw_';
  61.  
  62. # MySQL table options to use during installation or update
  63. $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";
  64.  
  65. # Experimental charset support for MySQL 4.1/5.0.
  66. $wgDBmysql5 = false;
  67.  
  68. ## Shared memory settings
  69. $wgMainCacheType = CACHE_NONE;
  70. $wgMemCachedServers = array();
  71.  
  72. ## To enable image uploads, make sure the 'images' directory
  73. ## is writable, then set this to true:
  74. $wgEnableUploads = true;
  75. $wgUseImageMagick = true;
  76. $wgImageMagickConvertCommand = "/usr/bin/convert";
  77.  
  78. # InstantCommons allows wiki to use images from http://commons.wikimedia.org
  79. $wgUseInstantCommons = false;
  80.  
  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.  
  86. ## If you want to use image uploads under safe mode,
  87. ## create the directories images/archive, images/thumb and
  88. ## images/temp, and make them all writable. Then uncomment
  89. ## this, if it's not already uncommented:
  90. #$wgHashedUploadDirectory = false;
  91.  
  92. ## If you have the appropriate support software installed
  93. ## you can enable inline LaTeX equations:
  94. $wgUseTeX = false;
  95.  
  96. ## Set $wgCacheDirectory to a writable directory on the web server
  97. ## to make your wiki go slightly faster. The directory should not
  98. ## be publically accessible from the web.
  99. #$wgCacheDirectory = "$IP/cache";
  100.  
  101. # Site language code, should be one of ./languages/Language(.*).php
  102. $wgLanguageCode = 'nl';
  103.  
  104. $wgSecretKey = "50736dba86b274e9c2f2f082044f0b3b01115f855322539d42e5723a2f0c1084";
  105.  
  106. # Site upgrade key. Must be set to a string (default provided) to turn on the
  107. # web installer while LocalSettings.php is in place
  108. $wgUpgradeKey = "a9b5baf10807f677";
  109.  
  110. ## Default skin: you can change the default skin. Use the internal symbolic
  111. ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook', 'vector':
  112. $wgDefaultSkin = "monobook";
  113.  
  114. ## For attaching licensing metadata to pages, and displaying an
  115. ## appropriate copyright notice / icon. GNU Free Documentation
  116. ## License and Creative Commons licenses are supported so far.
  117. #$wgEnableCreativeCommonsRdf = true;
  118. $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
  119. $wgRightsUrl = "";
  120. $wgRightsText = "";
  121. $wgRightsIcon = "";
  122. # $wgRightsCode = ""; # Not yet used
  123.  
  124. # Path to the GNU diff3 utility. Used for conflict resolution.
  125. $wgDiff3 = "/usr/bin/diff3";
  126.  
  127.  
  128.  
  129. # Query string length limit for ResourceLoader. You should only set this if
  130. # your web server has a query string length limit (then set it to that limit),
  131. # or if you have suhosin.get.max_value_length set in php.ini (then set it to
  132. # that value)
  133. $wgResourceLoaderMaxQueryLength = -1;
  134.  
  135. $wgFooterManagerLinks ['FAQ'] = true;
  136. # End of automatically generated settings.
  137. # Add more configuration options below.
  138.  
  139.  
  140. #ACCESCONTROL
  141.  
  142. //Om rechten toe te voegen $wgGroupPermissions ['Group'] ['Right'] = Boolean ;
  143.  
  144.  
  145.  
  146. #Whitelist Voeg hier publieke artikelen toe.
  147. $wgWhitelistRead = array( "Hoofdpagina" , "FAQ" , "My_wiki:Info" , "Cirkelzaag" ,"Hammer" , "Figuurzaag" , "Guts" ,"Schuurmachine",
  148. "Vijl", "Zaag","Spijker","Sleutel", "Tang" , "Bijl" , "Koevoet" , "draadsnijijzer" , "Waterpomptant" , "Lijmtang" );
  149.  
  150. #Anoniem
  151. $wgGroupPermissions ['*'] ['edit'] = false;
  152. $wgGroupPermissions ['*'] ['read'] = false;
  153. $wgGroupPermissions ['*'] ['upload'] = false;
  154. $wgGroupPermissions ['*'] ['createaccount'] = false;
  155. $wgGroupPermissions ['*'] ['read'] = false;
  156. $wgGroupPermissions ['*'] ['edit'] = false;
  157. $wgGroupPermissions ['*'] ['createpage'] = false;
  158. $wgGroupPermissions ['*'] ['createtalk'] = false;
  159. $wgGroupPermissions ['*'] ['writeapi'] = false;
  160. $wgGroupPermissions ['*'] ['editmyusercss'] = false;
  161. $wgGroupPermissions ['*'] ['editmyuserjs'] = false;
  162. $wgGroupPermissions ['*'] ['viewmywatchlist'] = false;
  163. $wgGroupPermissions ['*'] ['editmywatchlist'] = false;
  164. $wgGroupPermissions ['*'] ['viewmyprivateinfo'] = true;
  165. $wgGroupPermissions ['*'] ['editmyprivateinfo'] = true;
  166. $wgGroupPermissions ['*'] ['editmyoptions'] = true;
  167. $wgGroupPermissions ['*'] ['delete'] = false;
  168.  
  169. #UserGroup
  170. $wgGroupPermissions ['user'] ['read'] = true;
  171. $wgGroupPermissions ['user'] ['createpage'] = false;
  172. $wgGroupPermissions ['user'] ['edit'] = false;
  173. $wgGroupPermissions ['user'] ['upload'] = false;
  174. $wgGroupPermissions ['user'] ['movefile'] = false;
  175. $wgGroupPermissions ['user'] ['move'] = false;
  176. $wgGroupPermissions ['user'] ['move-subpages'] = false;
  177.  
  178.  
  179. #Moderator
  180. $wgGroupPermissions ['moderator'] ['read'] = true;
  181. $wgGroupPermissions ['moderator'] ['createpage'] = true;
  182. $wgGroupPermissions ['moderator'] ['edit'] = true;
  183. $wgGroupPermissions ['moderator'] ['upload'] = true;
  184. $wgGroupPermissions ['moderator'] ['reupload'] = true;
  185.  
  186.  
  187.  
  188. #SuperMod
  189. $wgGroupPermissions ['SuperMod'] ['read'] = true;
  190. $wgGroupPermissions ['SuperMod'] ['createpage'] = true;
  191. $wgGroupPermissions ['SuperMod'] ['edit'] = true;
  192. $wgGroupPermissions ['SuperMod'] ['upload'] = true;
  193. $wgGroupPermissions ['SuperMod'] ['delete'] = true;
  194. $wgGroupPermissions ['SuperMod'] ['undelete'] = true;
  195. $wgGroupPermissions ['SuperMod'] ['rollback'] = true;
  196. $wgGroupPermissions ['SuperMod'] ['browsearchive'] = true;
  197.  
  198. #AdminGroup
  199. #$wgAddGroups ['admins'] array('user', 'moderator', 'SuperMod', 'management' );
  200.  
  201. $wgGroupPermissions ['admins'] ['userrights'] = true;
  202. $wgGroupPermissions ['admins'] ['read'] = true;
  203. $wgGroupPermissions ['admins'] ['block'] = true;
  204. $wgGroupPermissions ['admins'] ['autoconfirmed'] = true;
  205. $wgGroupPermissions ['admins'] ['rollback'] = true;
  206. $wgGroupPermissions ['admins'] ['blockemail'] = true;
  207. #ManagementGroup
  208. $wgGroupPermissions ['management'] ['read'] = true;
  209. $wgGroupPermissions ['management'] ['createpage'] = true;
  210. $wgGroupPermissions ['management'] ['edit'] = true;
  211. $wgGroupPermissions ['management'] ['upload'] = true;
  212. $wgGroupPermissions ['management'] ['delete'] = false;
  213. $wgGroupPermissions ['management'] ['undelete'] = true;
  214. $wgGroupPermissions ['management'] ['protect'] = true ;
  215. $wgGroupPermissions ['management'] ['editprotected'] = true;
  216. $wgGroupPermissions ['management'] ['rollback'] = true;
  217.  
  218. $wgHooks['SkinBuildSidebar'][] = 'lfHideSidebar';
  219. function lfHideSidebar( $skin, &$bar ) {
  220. global $wgUser;
  221. // Hide sidebar for anonymous users
  222. if ( !$wgUser->isLoggedIn() ) {
  223. $bar = array(
  224. 'navigation' => array(
  225. array(
  226. 'text' => wfMsg( 'login' ),
  227. 'href' => SpecialPage::getTitleFor( 'Login' )->getLocalURL(),
  228. 'id' => 'n-login',
  229. 'active' => ''
  230. )
  231. )
  232. );
  233. }
  234. return true;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement