@@ -30,13 +30,13 @@ |
||
| 30 | 30 | |
| 31 | 31 | $ddns = new DDNS($input['domain'], $input['password']); |
| 32 | 32 | |
| 33 | -if($ddns->inwxLogin()) { |
|
| 34 | - if($ddns->inwxGetNameserverInfo()) { |
|
| 33 | +if ($ddns->inwxLogin()) { |
|
| 34 | + if ($ddns->inwxGetNameserverInfo()) { |
|
| 35 | 35 | $dnns->inwxSetNameserverInfo($input['ipv4'], 'ipv4'); |
| 36 | 36 | $dnns->inwxSetNameserverInfo($input['ipv6'], 'ipv6'); |
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | -if(OUTPUT){ |
|
| 39 | +if (OUTPUT) { |
|
| 40 | 40 | $ddns->returnStatus(); |
| 41 | 41 | } |
| 42 | 42 | $ddns->inwxLogout(); |
@@ -20,10 +20,10 @@ |
||
| 20 | 20 | protected $iniFilePath = "./conf/"; |
| 21 | 21 | protected $iniFileInwx = "inwx.ini"; |
| 22 | 22 | protected $iniFileDomain = ""; |
| 23 | - protected $inwx = []; // {apiurl, username, password}
|
|
| 24 | - protected $domain = []; // [inwx] => {domain, subdomain}, [ddns] => {apikey}
|
|
| 25 | - protected $IP4 = []; // {oldip, newip, id}
|
|
| 26 | - protected $IP6 = []; // {oldip, newip, id}
|
|
| 23 | + protected $inwx = []; // {apiurl, username, password}
|
|
| 24 | + protected $domain = []; // [inwx] => {domain, subdomain}, [ddns] => {apikey}
|
|
| 25 | + protected $IP4 = []; // {oldip, newip, id}
|
|
| 26 | + protected $IP6 = []; // {oldip, newip, id}
|
|
| 27 | 27 | protected $domrobot; |
| 28 | 28 | protected $logger; |
| 29 | 29 | protected $returnStatus = ""; |