Revize c1bdc1c4
Přidáno uživatelem Michal Kliment před více než 9 roky(ů)
application/controllers/tools.php | ||
---|---|---|
'ssh' => __('SSH'),
|
||
'whois' => __('WHOIS')
|
||
);
|
||
|
||
// access control
|
||
if (!Settings::get('networks_enabled'))
|
||
Controller::error (ACCESS);
|
||
}
|
||
|
||
/**
|
||
... | ... | |
*/
|
||
public function ssh($ip = NULL, $port = NULL)
|
||
{
|
||
if (!$this->acl_check_edit('Devices_Controller', 'tools'))
|
||
if (!$this->acl_check_view('Tools_Controller', 'tools'))
|
||
Controller::error(ACCESS);
|
||
|
||
if (!isset($ip) || !valid::ip($ip))
|
||
... | ... | |
*/
|
||
public function whois($hostname = NULL)
|
||
{
|
||
if (!$this->acl_check_edit('Devices_Controller', 'tools'))
|
||
if (!$this->acl_check_view('Tools_Controller', 'tools'))
|
||
Controller::error(ACCESS);
|
||
|
||
if (!$this->input->post('query') == NULL)
|
Také k dispozici: Unified diff
Release 1.1.0