Conditions | 4 |
Paths | 4 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public function __construct($param) { |
||
14 | |||
15 | $this->ip = $param["reseller"]["server_ip"]; |
||
16 | $this->user = $param["reseller"]["reseller_user"]; |
||
17 | $this->pass = $param["reseller"]["reseller_pass"]; |
||
18 | |||
19 | |||
20 | if(empty($this->ip)) { |
||
21 | $this->ip = $_SERVER['SERVER_ADDR']; |
||
22 | } |
||
23 | |||
24 | parent::__construct($this->ip); |
||
25 | if(!empty($this->user) && !empty($this->pass)) { |
||
26 | $this->password_auth($this->user, $this->pass); |
||
27 | } |
||
28 | |||
29 | $this->set_output($param["whm"]["output"]); |
||
30 | $this->set_port($param["whm"]["port"]); |
||
31 | $this->set_debug($param["whm"]["debug"]); |
||
32 | } |
||
33 | |||
48 |