#$wgReadOnly = 'This wiki is currently being upgraded to a newer software version, please check back in a couple of hours'; #$wgReadOnly = 'Undergoing maintenance -- read only -- try again later'; # This file was automatically generated by the MediaWiki installer. # If you make manual changes, please keep track in case you need to # recreate them later. # # See includes/DefaultSettings.php for all configurable settings # and their default values, but don't forget to make changes in _this_ # file, not there. # # Further documentation for configuration settings may be found at: # http://www.mediawiki.org/wiki/Manual:Configuration_settings # If you customize your file layout, set $IP to the directory that contains # the other MediaWiki files. It will be used as a base to locate files. if( defined( 'MW_INSTALL_PATH' ) ) { $IP = MW_INSTALL_PATH; } else { $IP = dirname( __FILE__ ); } $path = array( $IP, "$IP/includes", "$IP/languages" ); set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() ); #require_once( "$IP/includes/DefaultSettings.php" ); if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } ## Uncomment this to disable output compression # $wgDisableOutputCompression = true; $wgSitename = "PZwiki"; wfLoadSkin( 'Vector' ); wfLoadSkin( 'MonoBook' ); wfLoadSkin( 'Timeless' ); #wfLoadSkin( 'Citizen' ); ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/w"; $wgScriptExtension = ".php"; ## The relative URL path to the skins directory $wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$wgScriptPath/skins"; ## The relative URL path to the logo. Make sure you change this from the default, ## or else you'll overwrite your logo when you upgrade! $wgLogo = "/w/images/pzwlogo.png"; ## UPO means: this is also a user preference option $wgEnableEmail = true; $wgEnableUserEmail = true; # UPO $wgEmergencyContact = "kirrus@theindiestone.com"; $wgPasswordSender = "kirrus@theindiestone.com"; $wgEnotifUserTalk = true; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; ## Database settings $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "pzwiki"; $wgDBuser = "pzwiki"; $wgDBpassword = "rWz3g1BrjntD1PlABsA6x0Rzc"; # MySQL specific settings $wgDBprefix = ""; # MySQL table options to use during installation or update $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary"; # Experimental charset support for MySQL 4.1/5.0. $wgDBmysql5 = true; ## Shared memory settings #$wgMainCacheType = CACHE_NONE; #$wgMemCachedServers = array(); $wgMainCacheType = CACHE_MEMCACHED; $wgParserCacheType = CACHE_MEMCACHED; # optional $wgMessageCacheType = CACHE_MEMCACHED; # optional $wgMemCachedServers = array( "127.0.0.1:11211" ); $wgSessionsInObjectCache = true; # optional $wgSessionCacheType = CACHE_MEMCACHED; # optional ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; ## If you use ImageMagick (or any other shell command) on a ## Linux server, this will need to be set to the name of an ## available UTF-8 locale $wgShellLocale = "en_US.utf8"; ## If you want to use image uploads under safe mode, ## create the directories images/archive, images/thumb and ## images/temp, and make them all writable. Then uncomment ## this, if it's not already uncommented: # $wgHashedUploadDirectory = false; ## If you have the appropriate support software installed ## you can enable inline LaTeX equations: $wgUseTeX = false; ## Set $wgCacheDirectory to a writable directory on the web server ## to make your wiki go slightly faster. The directory should not ## be publically accessible from the web. #$wgCacheDirectory = "$IP/cache"; $wgLocalInterwiki = strtolower( $wgSitename ); $wgLanguageCode = "en"; $wgSecretKey = "7d1319fe17f571d18152690c8823f286896ac389626dc165c608712ad3774b2b"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'vector', 'monobook': #$wgDefaultSkin = 'vector'; $wgDefaultSkin = 'vector-2022'; ## For attaching licensing metadata to pages, and displaying an ## appropriate copyright notice / icon. GNU Free Documentation ## License and Creative Commons licenses are supported so far. # $wgEnableCreativeCommonsRdf = true; $wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright $wgRightsUrl = ""; $wgRightsText = ""; $wgRightsIcon = ""; # $wgRightsCode = ""; # Not yet used $wgDiff3 = "/usr/bin/diff3"; $wgUseSquid = true; $wgSquidServers = array('127.0.0.1'); $wgSquidServersNoPurge = array('127.0.0.1'); # When you make changes to this configuration file, this will make # sure that cached pages are cleared. $wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) ); $wgScriptPath = "/w"; # Path to the actual files. $wgArticlePath = "/wiki/$1"; # Virtual path. This directory MUST be different from the one used in $wgScriptPath #$wgScriptPath = "/w_new"; # Path to the actual files. #$wgArticlePath = "/wiki2/$1"; # Virtual path. This directory MUST be different from the one used in $wgScriptPath $wgUsePathInfo = true; # Enable use of pretty URLs $wgAllowUserCss = false; $wgAllowSiteCSSOnRestrictedPages = true; # allow common.css to access login and maint pages # Enable subpages in the main namespace $wgNamespacesWithSubpages[NS_MAIN] = true; # And categories $wgNamespacesWithSubpages[NS_CATEGORY] = true; wfLoadExtension( 'Cite' ); wfLoadExtension( 'ParserFunctions' ); wfLoadExtension( 'WikiEditor' ); $wgDefaultUserOptions['usebetatoolbar'] = 1; $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1; // Default user preference to use toolbar dialogs $wgWikiEditorModules['toolbar']['global'] = true; // Enable the WikiEditor toolbar for everyone $wgWikiEditorModules['toolbar']['user'] = false; // Don't allow users to turn the WikiEditor toolbar on/off individually wfLoadExtension( 'MsUpload' ); // Fancy drag and drop uploader // Bump the Perl Compatible Regular Expressions backtrack memory limit // (PHP 5.2.x default, 100K, is too low for SpamBlacklist) ini_set( 'pcre.backtrack_limit', '8M' ); wfLoadExtension( 'SpamBlacklist' ); wfLoadExtension('AntiSpoof'); wfLoadExtension('AbuseFilter'); wfLoadExtension( 'CheckUser' ); wfLoadExtension( 'SyntaxHighlight_GeSHi' ); ## Group Permissions for Abuse Filter $wgGroupPermissions['sysop']['abusefilter-modify'] = true; $wgGroupPermissions['sysop']['abusefilter-log-detail'] = true; $wgGroupPermissions['sysop']['abusefilter-view'] = true; $wgGroupPermissions['sysop']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-log'] = true; $wgGroupPermissions['sysop']['abusefilter-private'] = true; $wgGroupPermissions['sysop']['abusefilter-modify-restricted'] = true; $wgGroupPermissions['sysop']['abusefilter-revert'] = true; ## Turned off createpage edits and user tools for Anonymous Users $wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['edit'] = false; $wgShowIPinHeader = false; $wgSpamRegex = [ "/". # The "/" is the opening wrapper "s-e-x|zoofilia|sexyongpin|grusskarte|geburtstagskarten|animalsex|ppi-refunds|". "HCG|weightloss|payday|instantcash|instant-cash|IMF|Forex|warranty|". "Financial|capitalism|analysts|GDP|Socialist|Keynes|economist|". "dialysis|autoinsurance|autoloan|Paribas|Greece|Paribas|repayment|FHA". "sex-with|dogsex|adultchat|adultlive|camsex|sexcam|livesex|sexchat|BodHD". "chatsex|onlinesex|adultporn|adultvideo|adultweb.|hardcoresex|hardcoreporn|". "teenporn|xxxporn|lesbiansex|livegirl|livenude|livesex|livevideo|camgirl|". "spycam|voyeursex|casino-online|online-casino|kontaktlinsen|cheapest-phone|". "laser-eye|eye-laser|fuelcellmarket|lasikclinic|cragrats|parishilton|". "paris-hilton|paris-tape|2large|fuel-dispenser|fueling-dispenser|huojia|". "jinxinghj|telematicsone|telematiksone|a-mortgage|diamondabrasives|". "reuterbrook|sex-plugin|sex-zone|lazy-stars|eblja|liuhecai|". # "support|". "buy-viagra|-cialis|-levitra|boy-and-girl-kissing|". # These match spammy words "ppi-refunds\.org|". "dirare\.com". # This matches dirare.com a spammer's domain name # "overflow\s*:\s*auto|". # This matches against overflow:auto (regardless of whitespace on either side of the colon) # "height\s*:\s*[0-4]px|". # This matches against height:0px (most CSS hidden spam) (regardless of whitespace on either side of the colon) # "==
\[|". # This matches some recent spam related to starsearchtool.com and friends # "\<\s*a\s*href|". # This blocks all href links entirely, forcing wiki syntax # "display\s*:\s*none". # This matches against display:none (regardless of whitespace on either side of the colon) "/i"]; # The "/" ends the regular expression and the "i" switch which follows makes the test case-insensitive # The "\s" matches whitespace # The "*" is a repeater (zero or more times) # The "\s*" means to look for 0 or more amount of whitespace #require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); wfLoadExtension( 'ConfirmEdit' ); # Enable Nuke extension wfLoadExtension( 'Nuke' ); #wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/ReCaptchaNoCaptcha' ]); #$wgCaptchaClass = 'ReCaptchaNoCaptcha'; #$wgReCaptchaSiteKey = '6LeBTBcTAAAAAETBveoI74AzxhPZz2-4I5JA0p0B'; #$wgReCaptchaSecretKey = '6LeBTBcTAAAAAELvly1HnMmAi1t1jv89w88ZDfe-'; wfLoadExtensions([ 'ConfirmEdit', 'ConfirmEdit/hCaptcha' ]); $wgHCaptchaSiteKey = '3166223a-de7c-479f-9c96-d0c2ecf41d40'; $wgHCaptchaSecretKey = 'ES_a21dbbe3c02240a7864b8b1486693323'; # Disable Captcha for users who have confirmed their email addresses; $wgGroupPermissions['emailconfirmed']['skipcaptcha'] = true; $wgAllowConfirmedEmail = true; #TEMP # Prevent new user registrations except by sysops #$wgGroupPermissions['*']['createaccount'] = false; # Cleantalk #Broken by readonly? wfLoadExtension( 'Antispam' ); #require_once "$IP/extensions/Antispam/Antispam.php"; $wgCTAccessKey = "ene6u3anubab"; $wgCTNewEditsOnly = true; $wgCTShowLink = false; $wgGroupPermissions['sysop']['cleantalk-bypass'] = true; # Add Terms & Conditions to footer # Adapted from https://www.mediawiki.org/wiki/Manual:Hooks/SkinAddFooterLinks & https://www.mediawiki.org/wiki/Manual:Footer $wgHooks['SkinAddFooterLinks'][] = function ( Skin $skin, string $key, array &$footerlinks ) { if ( $key === 'places' ) { $footerlinks['tsandcs'] = Html::rawElement( 'a', [ 'href' => 'https://projectzomboid.com/blog/support/terms-conditions/' ], 'Terms & Conditions' ); $footerlinks['privacypol'] = Html::rawElement( 'a', [ 'href' => 'https://projectzomboid.com/blog/support/privacy-policy/' ], 'Privacy Policy' ); }; }; #Override default config settings for New Sigup Page extension $wgNewSignupPageToSURL = 'https://projectzomboid.com/blog/support/terms-conditions/'; $wgNewSignupPagePPURL = 'https://projectzomboid.com/blog/support/privacy-policy/'; #Load DisplayTitle extension wfLoadExtension( 'DisplayTitle' ); $wgAllowDisplayTitle = true; // defaults to true $wgRestrictDisplayTitle = false; // defaults to true # Load NewSignupPage extension; # https://www.mediawiki.org/wiki/Extension:NewSignupPage wfLoadExtension( 'NewSignupPage' ); # Catagory Tree extension https://www.mediawiki.org/wiki/Extension:CategoryTree wfLoadExtension( 'CategoryTree' ); # Matomo stats wfLoadExtension( 'Matomo' ); $wgMatomoURL = "matstats.theindiestone.com/"; $wgMatomoIDSite = "6"; $wgMatomoDisableCookies = true; # Enable cross-domain logins (for athena) #$wgCookieDomain = '.pzwiki.net'; #disabled needs shared session data #$wgShowExceptionDetails = true; # Enable advanced string functions that allows limited programming/parsing within strings $wgPFEnableStringFunctions = true; # force all users to login again cos sessions got messed up by caching $wgCookiePrefix = 'logincookie'; $wgServer="https://pzwiki.net"; #$wgShowExceptionDetails = true; $wgUpgradeKey = '15d9f27fb680fe77'; #wfLoadExtension( 'Renameuser' ); # #$wgLocalFileRepo['transformVia404'] = true; Internal error - MediaWiki $wgServer must be set in LocalSettings.php. See https://www.mediawiki.org/wiki/Manual:$wgServer.