public function ipaddress() { $connect = new Auth(); $connect->setHost("172.18.1.254"); $connect->setUsername("admin"); $connect->setPassword("1261"); $connect->setDebug(true); $talker = new Talker($connect); $id = new Address($talker); DebugDumper::dump($id->getAll()); }
public function set() { $connect = new Auth(); $connect->setHost("172.18.1.254"); $connect->setUsername("admin"); $connect->setPassword("1261"); $connect->setDebug(true); $talker = new Talker($connect); $id = new FirewallAddressList($talker); DebugDumper::dump($id->set($param, $id)); }
public function detail($id) { $connect = new Auth(); $connect->setHost("172.18.1.254"); $connect->setUsername("admin"); $connect->setPassword("1261"); $connect->setDebug(true); $talker = new Talker($connect); $addr = new FirewallAddressList($talker); $data = ['ipaddr' => $addr->detail($id)]; return View::make('fitur/f_addresslist/detail', $data); }
public function detail($id) { $connect = new Auth(); $connect->setHost("172.18.1.254"); $connect->setUsername("admin"); $connect->setPassword("1261"); $connect->setDebug(true); $talker = new Talker($connect); $addr = new HotspotActive($talker); $data = ['ipaddr' => $addr->detail_address($id)]; return View::make('fitur/h_aktive/detail', $data); }
<?php require '../vendor/autoload.php'; use MikrotikAPI\Talker\Talker; use MikrotikAPI\Entity\Auth; use MikrotikAPI\Commands\IP\Address; use MikrotikAPI\Commands\IP\Firewall\FirewallFilter; $auth = new Auth(); $auth->setHost("172.18.1.254"); $auth->setUsername("admin"); $auth->setPassword("1261"); $auth->setDebug(true); $talker = new Talker($auth); //$filter = new FirewallFilter($talker); //$a = $filter->getAll(); $ipaddr = new Address($talker); $listIP = $ipaddr->getAll(); MikrotikAPI\Util\DebugDumper::dump($listIP);