localsettings.php,LocalSettings.php

# This file was automatically generated by the MediaWiki 1.23.0rc0

# 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:

# https://www.mediawiki.org/wiki/Manual:Configuration_settings

# Protect against web entry

if ( !defined( 'MEDIAWIKI' ) ) {

exit;

}

## Uncomment this to disable output compression

# $wgDisableOutputCompression = true;

$wgSitename = "星火档案";

## 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

## (like /w/index.php/Page_title to /wiki/Page_title) please see:

## https://www.mediawiki.org/wiki/Manual:Short_URL

$wgScriptPath = "";

$wgScriptExtension = ".php";

## The protocol and server name to use in fully-qualified URLs

$wgServer = "http://wiki.sparkthu.com";

## The relative URL path to the skins directory

$wgStylePath = "$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 = "$wgStylePath/common/images/logo.png";

## UPO means: this is also a user preference option

$wgEnableEmail = true;

$wgEnableUserEmail = true; # UPO

$wgEmergencyContact = "noreply@sparkthu.com";

$wgPasswordSender = "noreply@sparkthu.com";

$wgEnotifUserTalk = false; # UPO

$wgEnotifWatchlist = false; # UPO

$wgEmailAuthentication = true;

## Database settings

$wgDBtype = "mysql";

$wgDBserver = "localhost";

$wgDBname = "xh_wiki";

$wgDBuser = "root";

$wgDBpassword = "eekexierohmsql";

# MySQL specific settings

$wgDBprefix = "";

# MySQL table options to use during installation or update

$wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

# Experimental charset support for MySQL 5.0.

$wgDBmysql5 = false;

## Shared memory settings

$wgMainCacheType = CACHE_NONE;

$wgMemCachedServers = array();

## To enable image uploads, make sure the 'images' directory

## is writable, then set this to true:

$wgEnableUploads = true;

#$wgUseImageMagick = true;

#$wgImageMagickConvertCommand = "/usr/bin/convert";

# InstantCommons allows wiki to use images from http://commons.wikimedia.org

$wgUseInstantCommons = false;

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

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

# Site language code, should be one of the list in ./languages/Names.php

$wgLanguageCode = "zh-cn";

$wgSecretKey = "fa57b3ab88853d06e8a30e325f5603be6aa76bf459b2a2ba3ece1bcd4bb324b7";

# Site upgrade key. Must be set to a string (default provided) to turn on the

# web installer while LocalSettings.php is in place

$wgUpgradeKey = "4d38a2859aed6551";

## Default skin: you can change the default skin. Use the internal symbolic

## names, ie 'cologneblue', 'monobook', 'vector':

$wgDefaultSkin = "vector";

## 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.

$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright

$wgRightsUrl = "";

$wgRightsText = "";

$wgRightsIcon = "";

#EMAIL SETTINGS

$wgSMTP = array(

'host'=>"smtp.gmail.com",

'IDHost'=>"sparkthu.com",

'port'=>25,

'auth'=>true,

'username'=>"noreply@sparkthu.com",

'password'=>"13b3bdf4"

);

# Path to the GNU diff3 utility. Used for conflict resolution.

$wgDiff3 = "/usr/bin/diff3";

$wgRestrictDisplayTitle = false;

#CHANGING THE LOGO URLS

$wgHooks['SkinTemplateOutputPageBeforeExec'][] = 'lfChangeMainPageURL';

function lfChangeMainPageURL( $sk, &$tpl ) {

$tpl->data['nav_urls']['mainpage']['href'] = Title::newFromText('星火计划:首页')->getLocalURL(); // Point the main page url to a wiki page's url

return true;

}

# The following permissions were set based on your choice in the installer

#if(1)

if ($_SERVER['REMOTE_ADDR']=='127.0.0.1' OR $_SERVER['REMOTE_ADDR']=='59.66.141.37')

{

$wgGroupPermissions['*']['read']=true;

$wgGroupPermissions['*']['edit']=true;

}

else

{

$wgGroupPermissions['*']['edit'] = false;

$wgGroupPermissions['*']['createaccount'] = false;

$wgGroupPermissions['*']['read'] = false;

$wgWhitelistRead = array("Special:User login","MediaWiki:Common.css","MediaWiki:Common.js", "MediaWiki:Monobook.css", "MediaWiki:Monobook.js", "-");

}

#GroupPermissions for operators

$wgGroupPermissions['sysop']['createaccount']=true;

#vip

$wgGroupPermissions['vip']=$wgGroupPermissions['user'];

#Users

$wgGroupPermissions['user']['move']=false;

$wgGroupPermissions['user']['movefile']=false;

$wgGroupPermissions['user']['move-rootuserpages']=false;

$wgGroupPermissions['user']['reupload']=false;

$wgGroupPermissions['user']['reload-shared']=false;

$wgGroupPermissions['user']['createpage']=false;

$wgGroupPermissions['user']['createclass']=false;

$wgGroupPermissions['user']['createtalk']=false;

$wgGroupPermissions['user']['purge']=false;

$wgGroupPermissions['user']['writeapi']=false;

$wgGroupPermissions['user']['minoredit']=false;

$wgGroupPermissions['user']['move-subpage']=false;

#appliant

$wgGroupPermissions['申请者']=$wgGroupPermissions['user'];

#comment this after all

$wgShowExceptionDetails = true;

# Enabled Extensions. Most extensions are enabled by including the base extension file here

# but check specific extension documentation for more details

# The following extensions were automatically enabled:

#WikiEditor

require_once "$IP/extensions/WikiEditor/WikiEditor.php";

#LiquidThreads

require_once "$IP/extensions/LiquidThreads/LiquidThreads.php";

#Semantics

enableSemantics('sparkthu.com');

include_once('extensions/SemanticForms/SemanticForms.php');

#visualEditor

require_once('extensions/Parsoid/Parsoid.php');

require_once('extensions/VisualEditor/VisualEditor.php');

$wgDefaultUserOptions['visualeditor-enable'] = 1;

$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVisualEditorParsoidURL='http://localhost:8000';

$wgVisualEditorParsoidPrefix='localhost';

#$wgVisualEditorParsoidForwardCookies = true;

# End of automatically generated settings.

# Add more configuration options below.

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值