?php #error_reporting( E_ALL ); #ini_set( 'display_errors', 1 ); # MediaWiki debug help - uncomment as needed. //$wgShowExceptionDetails = true; # This should only be used for debugging, as it may reveal private information //$wgShowSQLErrors = true; # Whether to show SQL errors on "we're sorry, but there has been a database error" pages. //$wgSiteNotice = 'There is no registration required to read this wiki or download and install Gramps. You only need an account to edit this wiki.'; //$wgSiteNotice = 'Download and unlimited use of Gramps never needed registration nor an account. However, that allows you to join the community improving Gramps and the documentation.' //$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'A2 is Live##### Migration in Progress. ########### ADMIN: Migration of Gramps website and applications...2019/11/08 to 2019/11/11. We are migrating to a managed VPS (Virtual Private server) host, with a new hosting company that should allow for a more responsive website. At the point we make the cut over, there will be some down time where gramps-project.org will not be available. See https://sourceforge.net/p/gramps/mailman/message/36801685/ for further information'; //$wgSiteNotice = 'A2 is Live#########Migration in Progress. ############### ADMIN: Migration of Gramps website and applications...2019/11/08 to 2019/11/11. We are migrating to a managed VPS (Virtual Private server) host, with a new hosting company that should allow for a more responsive website. At the point we make the cut over, there will be some down time where gramps-project.org will not be available. See https://sourceforge.net/p/gramps/mailman/message/36801685/ for further information'; //$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : '503 Service Unavailable error. Please check back in a couple of hours.'; //$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'This wiki is currently being upgraded to a newer software version. Please check back later.'; //$wgSiteNotice = '2020-05-07 - Sorry the Gramps wiki is currently being upgraded to a newer software version. Please check back after the 2020-05-11.'; //$wgReadOnly = ( PHP_SAPI === 'cli' ) ? false : 'The Gramps Wiki database is currently being backed up. Please check back in a couple of hours.'; //$wgSiteNotice = 'The Gramps Wiki database is currently being backed up. Please check back in a couple of hours.'; # Removing the Login link from all pages ( use during migration ) # https://www.mediawiki.org/wiki/Manual:Preventing_access#Removing_the_Login_link_from_all_pages function NoLoginLinkOnMainPage( &$personal_urls ){ unset( $personal_urls['login'] ); unset( $personal_urls['anonlogin'] ); return true; } $wgHooks['PersonalUrls'][]='NoLoginLinkOnMainPage'; ## https://www.mediawiki.org/wiki/Topic:Tq787050gi4h1s5e ## Deprecation warnings can be safely ignored, they're for development. ## You can disable them by adding this to LocalSettings.php: error_reporting(E_ERROR | E_WARNING | E_PARSE); # 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. # 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() ); # Load default settings require_once( "includes/DefaultSettings.php" ); # If PHP's memory limit is very low, some operations may fail. # ini_set( 'memory_limit', '20M' ); $wgMemoryLimit = '96M'; #$wgMaxShellMemory = 300000; $wgMaxShellMemory = 524288; if ( $wgCommandLineMode ) { if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) { die( "This script must be run from the command line\n" ); } } elseif ( empty( $wgNoOutputBuffer ) ) { ## Compress output if the browser supports it if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' ); } $wgLogo = "https://gramps-project.org/gramps.jpg"; $wgSitename = "Gramps"; #$wgSitename = "Gramps - Free Genealogy Software"; $wgEnableEmail = true; $wgEnableUserEmail = false; $wgEmergencyContact = "webmaster@gramps-project.org"; $wgPasswordSender = "noreply@gramps-project.org"; ## For a detailed description of the following switches see ## http://meta.wikimedia.org/Enotif and http://meta.wikimedia.org/Eauthent ## There are many more options for fine tuning available see ## /includes/DefaultSettings.php ## UPO means: this is also a user preference option $wgEnotifUserTalk = false; # UPO $wgEnotifWatchlist = true; # UPO $wgEmailAuthentication = true; $wgDBtype = "mysql"; $wgDBserver = "localhost"; $wgDBname = "grampsa2_wiki"; $wgDBuser = "grampsa2_wiki"; $wgDBpassword = "K1lld8wabb1t#z"; $wgDBport = "5432"; $wgDBprefix = ""; $wgDBadminuser = "grampsa2_wiki"; $wgDBadminpassword = "K1lld8wabb1t#z"; # Schemas for Postgres #$wgDBmwschema = "mediawiki"; $wgDBts2schema = "public"; # Experimental charset support for MySQL 4.1/5.0. $wgDBmysql5 = false; ## To enable image uploads, make sure the 'images' directory ## is writable, then set this to true: $wgEnableUploads = true; $wgUseImageResize = false; # $wgUseImageMagick = true; # $wgImageMagickConvertCommand = "/usr/bin/convert"; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'zip','gz','svg','pdf'); ## image uploads directory for mediwiki #$wgUploadPath = "../../wikimedia"; #$wgUploadDirectory = "../../wikimedia"; ## 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; $wgLocalInterwiki = "Gramps"; $wgLanguageCode = "en"; $wgProxyKey = "e9114f116b0f3cc2a5bbb45c16d4f9267f4733148dda3bd7e39c938fe2c8829a"; ## Default skin: you can change the default skin. Use the internal symbolic ## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook': $wgDefaultSkin = 'vector'; # Skins (Themes) for MediaWiki wfLoadSkin( 'Vector' ); # Default from 20180127 - responsive template able to be used on mobile phones! #wgVectorResponsive = false; wfLoadSkin( 'Timeless' ); # New skins from mw1.31.3 wfLoadSkin( 'MonoBook' ); # old Default wfLoadSkin( 'MinervaNeue' ); # Third party mobile skin ## 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 = "http://www.gnu.org/copyleft/fdl.html"; $wgRightsText = "GNU Free Documentation License 1.2"; $wgRightsIcon = "${wgScriptPath}/skins/common/images/gnu-fdl.png"; # $wgRightsCode = "gfdl"; # Not yet used $wgDiff3 = "/usr/bin/diff3"; $wgDiff = "/usr/bin/diff"; # When you make changes to this configuration file, this will make # sure that cached pages are cleared. $configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) ); $wgCacheEpoch = max( $wgCacheEpoch, $configdate ); $wgEnableSorbs = true; ## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. $wgScriptPath = "/wiki"; ## For more information on customizing the URLs please see: ## http://www.mediawiki.org/wiki/Manual:Short_URL # Disable anonymous edit $wgGroupPermissions['*']['edit'] = false; # Other standard edit permissions $wgGroupPermissions['user']['edit'] = true; $wgGroupPermissions['user']['editprotected'] = false; $wgGroupPermissions['user']['editsemiprotected'] = true; $wgGroupPermissions['user']['protect'] = true; # Uncomment these three(3) lines to restrict editing... # Stop all edits to the wiki - useful for upgrading! # $wgGroupPermissions['*']['edit'] = false; # $wgGroupPermissions['user']['edit'] = false; # $wgGroupPermissions['sysop']['edit'] = false; $wgFavicon = "https://gramps-project.org/blog/wp-content/themes/Hello_Gramps/images/favicon.ico"; $wgServer = "https://" . $_SERVER["SERVER_NAME"]; $wgUseFileCache = true; $wgFileCacheDirectory = "$IP/cache"; # #################################################################################### # Extensions used by Gramps # wfLoadExtension( 'extensionName' ); # Use new style extension registration if supported # #################################################################################### # TitleBlacklist (comes with mediwiki) #wfLoadExtension( 'TitleBlacklist' ); #require_once( "{$IP}/extensions/TitleBlacklist/TitleBlacklist.php" ); # TitleBlacklist # ParserFunctions (comes with mediwiki) wfLoadExtension( 'ParserFunctions' ); #$wgPFEnableStringFunctions = true; #$wgPFStringLengthLimit = 2000; #require_once("$IP/extensions/ParserFunctions/ParserFunctions.php"); # ParserFunctions # The following are third party extensions # LabeledSectionTransclusion wfLoadExtension( 'LabeledSectionTransclusion' ); $wgAllowUserJs=true; $wgAllowUserCss=true; # LabeledSectionTransclusion # Confirm User Accounts – Gives bureaucrats the ability to confirm account requests #wfLoadExtension( 'ConfirmAccount' ); require_once("$IP/extensions/ConfirmAccount/ConfirmAccount.php"); $wgMakeUserPageFromBio = false; $wgUseRealNamesOnly = false; $wgAccountRequestMinWords = 5; $wgAccountRequestExtraInfo = false; $wgAccountRequestToS = false; $wgConfirmAccountContact = 'webmaster@gramps-project.org'; #$wgRejectedAccountMaxAge = 0; # Confirm User Accounts # GoogleAnalytics for Gramps mediawiki [ UA-112920528-1 ] # Statistics available via webmaster@gramps-project account at: # https://www.google.com/analytics/reporting/login #wfLoadExtension( 'googleAnalytics' ); #require_once "$IP/extensions/googleAnalytics/googleAnalytics.php"; // Replace xxxxxxx-x with YOUR GoogleAnalytics UA number #$wgGoogleAnalyticsAccount = 'UA-112920528-1'; # GoogleAnalytics # Variables - Parser functions allowing to work with dynamic variables in an article scoped context wfLoadExtension( 'Variables' ); #require_once( "$IP/extensions/Variables/Variables.php" ); # Variables ################################# # extension to make website more mobile friendly wfLoadExtension( 'MobileFrontend' ); #$wgMFDefaultSkinClass = 'SkinVector'; // use Vector skin $wgMFDefaultSkinClass = 'SkinMinerva'; // use Minerva skin (You need to download and install it separately, otherwise you'll get an exception) ################################## # test $wgExpensiveParserFunctionLimit = '1000'; ################################# # test for thumbnails so they parse $wgGenerateThumbnailOnParse = true; ################################# #$wgShowExceptionDetails = true; #$wgShowDBErrorBacktrace = true; ################################# $wgGroupPermissions['sysop']['deletelogentry'] = true; $wgGroupPermissions['sysop']['deleterevision'] = true; #$wgGroupPermissions['oversight']['suppressrevision'] = true; #$wgGroupPermissions['oversight']['suppressionlog'] = true; ################################# #### Allows translation image on language portal added 2021/06/05 ### $wgAllowExternalImagesFrom = 'https://hosted.weblate.org/'; ################################# # Unused extensions ********************************************************* # UserMerge - Merges references from one user to another user in the wiki database # will also delete old users following merge. Requires usermerge privileges #wfLoadExtension( 'UserMerge' ); #$wgGroupPermissions['bureaucrat']['usermerge'] = true; # UserMerge //require_once "$IP/extensions/Collection/Collection.php"; # Disabled due to server resource usage load causing errors and timeouts. //require_once "$IP/extensions/AJAXPoll/AJAXPoll.php"; //require_once "$IP/extensions/SecurePoll/SecurePoll.php"; //require_once "$IP/extensions/Poll/Poll.php"; # Trying to get RSS feed for recent changes # require_once ("extensions/SearchFeed/SearchFeed.php"); # Captcha extension # require_once( "$IP/extensions/ConfirmEdit/ConfirmEdit.php" ); # Dynamic news list - use DynamicPageList2 because DynamicPageList seems to be broken # require_once("extensions/DynamicPageList2.php"); # Unused extensions ********************************************************* #====Begin : code to hide/remove View Source tab from Mediawiki==== function efAddSkinStyles(OutputPage &$out, Skin &$skin) { if(!$skin->getUser()->isLoggedIn()) { if ($skin->getSkinName() == 'vector') { $out->addInlineStyle('#ca-history { display:none; }'); } } else { if ($skin->getSkinName() == 'vector') { $out->addInlineStyle('#ca-view { display:none; }'); } } return true; } $wgHooks['BeforePageDisplay'][] = 'efAddSkinStyles'; #====End of code==== # Removing talk or discussion link using PHP # https://www.sbarjatiya.com/notes_wiki/index.php/Disabling_link_to_talk/discussion_page /** $wgHooks['SkinTemplateNavigation'][] = 'replaceTabs'; function replaceTabs( $skin, &$links) { unset( $links['namespaces']['talk'] ); // Remove the talk action return true; } **/ # End - Removing talk or discussion link using PHP MediaWiki

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot access the database)