扩展:GoToShell

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:GoToShell and the translation is 20% complete.

Other languages:
English • ‎dansk • ‎español • ‎français • ‎polski • ‎português do Brasil • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
GoToShell
发布状态: 稳定版
GoToShell.png
实现 Special page
描述 Implements a special page that takes the user to shell and back
作者 Nathan Larson (Leucostictetalk)
最新版本 1.0.1 (2016-10-25)
MediaWiki 1.23+
PHP 5.3
数据更新
许可协议 GNU General Public License 3.0 or later
下载
$wgGoToShellCommand
翻译GoToShell扩展如果在translatewiki.net可用
检查使用和版本矩阵。

The GoToShell extension implements a special page that takes the user to shell and back. This extension is free software than can be modified and distributed under the terms of the GPL and/or the DWTSYWWI (Do Whatever The Shell You Want With It) license. By default, shell is reserved for bureaucrats only, but you can change $wgGroupPermissions so that other deserving users can go to shell too.

Installation and configuration

安装

  • 下载文件,并将其放置在您extensions/文件夹中的GoToShell目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/GoToShell/GoToShell.php";
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

Configuration

$wgGoToShellCommand

Set this to whatever you want it to do; e.g. "ls -l", "./maintenance/php update.php --quick ", "rm -rf /incriminating_data", etc.

See also