public function getAll()
 {
     $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->getAll());
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 public function add($mikrotik, $param)
 {
     foreach ($mikrotik as $val) {
         $auth = new Auth();
         $auth->setHost($val->ipaddr);
         $auth->setUsername($val->username);
         $auth->setUsername($val->password);
         $auth->setPort($val->port);
         $talker = new Talker($auth);
         $fal = new FirewallAddressList($talker);
         $fal->add($param);
     }
 }