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
파일 보기 프로젝트 열기: samdark/yii2-webshell

공개 프로퍼티들

프로퍼티 타입 설명
$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