Jump to content

Extension:Site Settings

From mediawiki.org
This page is a translated version of the page Extension:Site Settings and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
Site Settings
リリースの状態: 保守されていない
実装 特別ページ , フック
説明 Defines a special page, "SiteSettings", that can be used to modify some of the wiki's settings from the web interface.
作者 Yaron Koren <yaron57@gmail.com>
最新バージョン 0.7 (2019年5月)
MediaWiki 1.19+
PHP 5.3+
データベースの変更 はい
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
$wgSiteSettingsSetupMode
sitesettings
translatewiki.net で翻訳を利用できる場合は、Site Settings 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告
警告 警告: Until version 0.7, this extension had a major security risk. If you are using an older version of this extension, please upgrade it immediately.

Site Settings is an extension to MediaWiki that defines a special page, "Special:SiteSettings", that lets administrators configure site-wide settings from within the wiki interface. Only users with the 'sitesettings' permission (sysops/administrators, by default) can access the page; for those users who can access it, a link to the page will also show up in their "Personal URLs", between "Talk" and "Preferences".

コードとダウンロード

You can download the Site Settings code, in .zip format, here.

You can also download the code directly via Git from the MediaWiki source code repository. From a command line, you can call the following:

git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SiteSettings.git

To view the code online, including version history for each file, go here.

インストール

After you've obtained an 'SiteSettings' directory (either by extracting a compressed file or downloading via Git), place this directory within the main MediaWiki 'extensions' directory. Then, in the file 'LocalSettings.php' in the main MediaWiki directory, add the following line:

include_once("$IP/extensions/SiteSettings/SiteSettings.php");

The SiteSettings extension requires its own database table, called "site_settings"; and until it is set up you will need to add the following line to LocalSettings.php, below the SiteSettings inclusion:

$wgSiteSettingsSetupMode = true;

Then, update the database by calling MediaWiki's update.php script. Once that script is run and the "site_settings" table has been created, remove the $wgSiteSettingsSetupMode line. At that point, you can start using Site Settings.

If you want to have the members of groups other than 'sysop' be able to use Special:SiteSettings, you can also add lines like the following:

$wgGroupPermissions['my-group']['sitesettings'] = true;

The Site Settings page lets administrators upload files to serve as the logo and favicon for the wiki. To get this feature working, you will need to have directories at both of the following locations:

/skins/common/images/logos/
/skins/common/images/favicon/

...and have them both be writable by the web server.

作者

Site Settings was written by Yaron Koren, reachable at yaron57 -at- gmail.com.

バージョン履歴

Site Settings is currently at version 0.7.

The version history is:

  • 0.5 - May 13, 2014 - Initial version
  • 0.6 - June 4, 2014 - i18n messages moved into JSON files; support for many languages added
  • 0.7 - May 29, 2019 - Major security issue fixed; other fixes


プロジェクトへの貢献

バグ / 機能の要望

Send any bug reports and requests to Yaron Koren, at yaron57 -at- gmail.com.

パッチの提供について

If you found some bug and fixed it, or if you wrote code for a new feature, please create a patch by going to the "SiteSettings" directory, and typing:

git diff > descriptivename.patch

Then send this patch, with a description, to Yaron Koren.