PHP Класс samdark\webshell\Module

To use web shell, include it as a module in the application configuration like the following: ~~~ return [ 'modules' => [ 'webshell' => ['class' => 'samdark\webshell\Module'], ], ] ~~~ With the above configuration, you will be able to access web shell in your browser using the URL http://localhost/path/to/index.php?r=webshell
Автор: Alexander Makarov ([email protected])
Наследование: extends yii\base\Module
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$allowedIPs the list of IPs that are allowed to access this module. Each array element represents a single IP filter which can be either an IP address or an address with wildcard (e.g. 192.168.0.*) to represent a network segment. The default value is ['127.0.0.1', '::1'], which means the module can only be accessed by localhost.
$checkAccessCallback A valid PHP callback that returns true if user is allowed to use web shell and false otherwise The signature is the following: function (Action $action)
$controllerNamespace
$greetings console greetings
$quitUrl URL to use for quit command. If not set, quit command will do nothing.
$yiiScript path to yii script

Открытые методы

Метод Описание
beforeAction ( $action )
init ( )

Защищенные методы

Метод Описание
checkAccess ( Action $action ) : boolean

Описание методов

beforeAction() публичный Метод

public beforeAction ( $action )

checkAccess() защищенный Метод

protected checkAccess ( Action $action ) : boolean
$action yii\base\Action
Результат boolean whether the module can be accessed by the current user

init() публичный Метод

public init ( )

Описание свойств

$allowedIPs публичное свойство

the list of IPs that are allowed to access this module. Each array element represents a single IP filter which can be either an IP address or an address with wildcard (e.g. 192.168.0.*) to represent a network segment. The default value is ['127.0.0.1', '::1'], which means the module can only be accessed by localhost.
public $allowedIPs

$checkAccessCallback публичное свойство

A valid PHP callback that returns true if user is allowed to use web shell and false otherwise The signature is the following: function (Action $action)
С версии: 2.0.0
public $checkAccessCallback

$controllerNamespace публичное свойство

public $controllerNamespace

$greetings публичное свойство

console greetings
public $greetings

$quitUrl публичное свойство

URL to use for quit command. If not set, quit command will do nothing.
public $quitUrl

$yiiScript публичное свойство

path to yii script
public $yiiScript