Jump to content

MediaWiki LocalSettings on OmCollab installation

From mediawiki.org

This is the generated LocalSettings.php file on installation of OmCollab 1.100.3

<?php

include_once( dirname(__file__) . '/../common/omconfig.php' );

# 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() );

require_once( "$IP/includes/DefaultSettings.php" );

# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );

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 = OMWIKI_APPLICATION_NAME;

## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath           = OMWIKI_SCRIPT_PATH;
$wgScript               = "{$wgScriptPath}/index.php";
$wgScriptExtension      = '.php';
$wgRedirectScript       = "{$wgScriptPath}/redirect.php";
$wgShowExceptionDetails = true;
$wgArticlePath          = OMWIKI_ARTICLE_PATH;
$wgUsePathInfo          = true;


# MySQL database settings
$wgDBtype           = "mysql";
$wgDBserver         = OMCOLLAB_DB_HOSTNAME;
$wgDBname           = OMWIKI_DATABASE_NAME;
$wgDBuser           = OMWIKI_DB_USERNAME;
$wgDBpassword       = OMWIKI_DB_PASSWORD;
$wgDBprefix         = OMWIKI_DB_TABLE_PREFIX;


# MySQL table options to use during installation or update
$wgDBTableOptions   = "TYPE=InnoDB";

# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;

# Postgres specific settings
$wgDBport           = "5432";
$wgDBmwschema       = "mediawiki";
$wgDBts2schema      = "public";

## Shared memory settings
$wgMainCacheType    = CACHE_NONE;
$wgMemCachedServers = array();

$wgLocalInterwiki   = $wgSitename;
$wgLanguageCode     = "en";
$wgProxyKey         = "4b3e36213be7ba5c16302ecde7b577643c0a2752692cbf64887d5c3f6c9db2";

## 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 = "";

# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );


# ------------------------------------------------- #
#                                                   #
#         omCollab Settings and Extensions          #
#                                                   #
# --------------------------------------------------#

# [ error reporting ]
$wgShowExceptionDetails = false; // set to false to disable

# [ permissions ]
$wgGroupPermissions['*']['edit']                   = false;
$wgGroupPermissions['*']['createaccount']          = true;
$wgGroupPermissions['*']['read']                   = true;
$wgGroupPermissions['Core Contributor']['protect'] = true;
$wgGroupPermissions['sysop']['editwidgets'] 	   = true;
$wgSysopUserBans                                   = true;
$wgWhitelistRead                                   = array( "Main Page"
                                                          , "Special:Userlogin"
                                                          , "-"
                                                          , "MediaWiki:Monobook.css" );

# [ skin ]
require_once( FS_COMMON_SKIN_DIRECTORY . '/common.php' );
$wgStylePath           = "$wgScriptPath/skins";
$wgStyleDirectory      = "$IP/skins";
$wgLogo                = RR_COMMON_SKIN_DIRECTORY . '/images/omcollab_logo_text.gif';
$wgDefaultSkin         = OMCOLLAB_SKIN_DIRNAME;
$wgEnableParserCache   = false;
$wgUseAjax             = true;
$wgFavicon             = RR_OMCOLLAB_DIRECTORY . 'favicon.ico';

# [ messaging ]
$wgEnotifUserTalk      = true; # User Preference Option
$wgEnotifWatchlist     = true; # User Preference Option
$wgEmailAuthentication = true;
$wgEnableEmail         = true;
$wgEnableUserEmail     = true;
$wgEmergencyContact    = OMCOLLAB_ADMIN_EMAIL;
$wgPasswordSender      = OMCOLLAB_ADMIN_EMAIL;

# [ namespaces ]
$wgExtraNamespaces = array( 100 => "OMCOLLAB" );

$wgNamespacesWithSubpages = array( NS_TALK           => true
                                 , NS_USER           => true
                                 , NS_USER_TALK      => true
                                 , NS_PROJECT_TALK   => true
                                 , NS_IMAGE_TALK     => true
                                 , NS_MEDIAWIKI_TALK => true
                                 , NS_TEMPLATE_TALK  => true
                                 , NS_HELP_TALK      => true
                                 , NS_CATEGORY_TALK  => true
                                 , 100               => true );

$wgNamespacesToBeSearchedDefault = array( NS_MAIN => true
                                        ,NS_FILE => true
                                        ,NS_CATEGORY => true
                                        , 100     => true );
	                       
# [ uploads ]
$wgUploadPath        = "$wgScriptPath/images";
$wgUploadDirectory   = "$IP/images";
$wgEnableUploads     = true;
$wgUploadBaseUrl     = $wgServer;
$wgFileExtensions    = array( 'png', 'gif', 'jpg', 'jpeg', 'doc', 'pdf', 'xls', 'ppt', 'docx','xlsx','pptx','zip');

# [ extensions ]
require_once( "$IP/extensions/omCollabSingleSignon.php" );
require_once( "$IP/extensions/APIQueryExtension/APIQueryExtension.php" );
require_once( "$IP/extensions/omCollabHelperFunctions.php" );
require_once( "$IP/extensions/omCollabBookmarks/omCollabBookmarks.php" );
require_once( "$IP/extensions/omBookmarksExternal/omBookmarksExternal.php" );
require_once( "$IP/extensions/Contributors/Contributors.php" );
require_once( "$IP/extensions/ContributionScores/ContributionScores.php" ); 
require_once( "$IP/extensions/ContributorsAddon/ContributorsAddon.php" );
require_once( "$IP/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php" );
require_once( "$IP/extensions/SelectCategoryTagCloud/SelectCategoryTagCloud.php" );
$wgSCTC_min_size		= OMWIKI_EXT_SCTC_MIN_SIZE;
$wgSCTC_increase_factor	= OMWIKI_EXT_SCTC_INCREASE_FACTOR;
$wgSCTC_min_count		= OMWIKI_EXT_SCTC_MIN_COUNT;

require_once( "$IP/extensions/DynamicArticleList/DynamicArticleList.php" );
require_once( "$IP/extensions/DynamicPageList/DynamicPageList2.php" );
require_once( "$IP/extensions/CategoryTree/CategoryTree.php" );
require_once( "$IP/extensions/TreeAndMenu/TreeAndMenu.php" ); 
require_once( "$IP/extensions/RSSReader/RSSReader.php" );
require_once( "$IP/extensions/referenceselector/referenceselector.php" );
require_once( "$IP/extensions/ImageMap/ImageMap.php" );
require_once( "$IP/extensions/Cite/Cite.php" ); 
require_once( "$IP/extensions/CharInsert/CharInsert.php" );
require_once( "$IP/extensions/SocialProfile/SocialProfile.php" );
require_once( "$IP/extensions/skype.php" );
require_once( "$IP/extensions/Flash.php" );
require_once( "$IP/extensions/Anywebsite/Anywebsite.php" );
require_once( "$IP/extensions/CreateArticle.php" );
require_once( "$IP/extensions/ShareThis.php" );
require_once( "$IP/extensions/GoogleSitemap/GoogleSitemap.php" );
require_once( "$IP/extensions/GoogleSitemap/GoogleSitemap.php" );
require_once( "$IP/extensions/Widgets/Widgets.php" );
#require_once( "$IP/extensions/omCollabWikiEditorHelp.php" );
require_once( "$IP/extensions/FCKeditor/FCKeditor.php" );
#require_once( "$IP/extensions/LiquidThreads/LqtPages.php" );
require_once( "$IP/extensions/DiscussionThreading/DiscussionThreading.php" );

#MediaWiki Extension DocConvert settings
require_once( "$IP/extensions/DocConvert/SpecialDocConvertExt.php" );
$wgEnableAPI=true;
#Uncomment this line and put in the Path to the soffice (Open Office) binary, or alternatively, make sure you have soffice binary on your SYSTEM %path% variable or a symbolic link to your bin folder
$wgExtDocConvertOOPath = OMWIKI_DOCCONVERT_OO_PATH;
#these are the allowable extensions that Open Office can export to mediawiki, change only if you have tested file extensions inside open office by going to File -> Export As -> MediaWiki
$wgExtDocConvAllowed = array(".doc",".odt",".docx");
#Use this to completely disable the Extension, for example, if your host doesn't allow for open office installations
$wgExtDocConvEnabled = OMWIKI_ENABLE_DOCCONVERT;
#increase or decrease this to your liking, this controls how long the extension waits for open office to convert before it gives up and reports timeout message to the user
$wgExtDocConvTimeout = 120;


#InviteFriends Extension
require_once("$IP/extensions/invitefriends.php");
$wgExtInviteFriendsLoginRequired = true;

# [ extensions - additional configuration options for the above ]

//for extensions/APIQueryExtension/APIQueryExtension.php
$wgAQETarget = 'http://mike2.openmethodology.org/w';

//for extensions/ContributionScores/ContributionScores.php
$contribScoreIgnoreBots = true;                        // Optional
$contribScoreReports    = array( array( 7  , 50 )      // Optional. Each array defines a report - 7,50 is "past 7 days" and "LIMIT 50"
                               , array( 30 , 50 )
                               , array( 0  , 50 ) );

//for extensions/TreeAndMenu/TreeAndMenu.php
$wgTreeViewShowLines = true;  

//for extensions/ShareThis.php
$wgShowShareThisSidebar = true;
unset($wgShareThisSiteList['Fark']);
unset($wgShareThisSiteList['Newsvine']);
unset($wgShareThisSiteList['reddit']);
unset($wgShareThisSiteList['Segnalo']);
unset($wgShareThisSiteList['Slashdot']);
unset($wgShareThisSiteList['Spurl']);
unset($wgShareThisSiteList['Wists']);

# To remove various skins from the User Preferences choices
$wgSkipSkins = array("chick", "monobook" ,"cologneblue", "modern","myskin", "nostalgia", "simple", "standard");

# [ extensions requiring configuration AFTER omCollab has been installed ]

/*
// ReCaptcha - adds CAPTCHA security to the registration process.
// Sign up for your keys at http://recaptcha.net/api/getkey
// then just paste them below and uncomment this block.
require_once( "$IP/extensions/recaptcha/ReCaptcha.php" );
$recaptcha_public_key = 'Paste_your_PUBLIC_recaptcha_key_here';
$recaptcha_private_key = 'Paste_your_PRIVATE_recaptcha_key_here';
*/

/* POST-INSTALL-PLACEHOLDER (DO NOT REMOVE OR EDIT THIS COMMENT) */

# mediawiki 1.14.0

/** enable Mediawiki article name suggestion */
$wgEnableMWSuggest =true;

/**
 * use FCKEditor default
 */
//$wgDefaultUserOptions['riched_start_disabled']=false;