@@ -7,8 +7,8 @@ |
||
| 7 | 7 | $newip = "__DESTINATIONIP__"; |
| 8 | 8 | |
| 9 | 9 | $response = (array)$cpl->changeip( array( |
| 10 | - "oldip" => $oldip, |
|
| 11 | - "newip" => $newip |
|
| 10 | + "oldip" => $oldip, |
|
| 11 | + "newip" => $newip |
|
| 12 | 12 | ) ); |
| 13 | 13 | |
| 14 | 14 | print_r($response)."\n"; |
@@ -6,11 +6,11 @@ |
||
| 6 | 6 | $oldip = "__SOURCEIP__"; |
| 7 | 7 | $newip = "__DESTINATIONIP__"; |
| 8 | 8 | |
| 9 | -$response = (array)$cpl->changeip( array( |
|
| 9 | +$response = (array)$cpl->changeip(array( |
|
| 10 | 10 | "oldip" => $oldip, |
| 11 | 11 | "newip" => $newip |
| 12 | -) ); |
|
| 12 | +)); |
|
| 13 | 13 | |
| 14 | -print_r($response)."\n"; |
|
| 14 | +print_r($response) . "\n"; |
|
| 15 | 15 | |
| 16 | 16 | |
@@ -4,9 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | $cpl = new \Detain\Cpanel\Cpanel("", ""); |
| 6 | 6 | $response = $cpl->registerAuth(array( |
| 7 | - "user" => $_SERVER['argv'][1], |
|
| 8 | - "pickup" => "__PHRASE__", |
|
| 9 | - "service" => "__SERVICE__")); |
|
| 7 | + "user" => $_SERVER['argv'][1], |
|
| 8 | + "pickup" => "__PHRASE__", |
|
| 9 | + "service" => "__SERVICE__")); |
|
| 10 | 10 | |
| 11 | 11 | echo $response; |
| 12 | 12 | |
@@ -7,17 +7,17 @@ |
||
| 7 | 7 | $status = $cpl->fetchLicenseRaw(array("ip" => $ip)); |
| 8 | 8 | print_r($status); |
| 9 | 9 | if (isset($status['@attributes'])) { |
| 10 | - print "The license id for the ip is: " . $status["@attributes"]["licenseid"] . "\n"; |
|
| 11 | - print "The status of the license is: "; |
|
| 12 | - if ($status["@attributes"]["valid"] > 0) { |
|
| 13 | - print "Active"; |
|
| 14 | - } else { |
|
| 15 | - print "Inactive"; |
|
| 16 | - } |
|
| 17 | - print "\n"; |
|
| 18 | - print "The company holding the license is: " . $status["@attributes"]["company"] . |
|
| 19 | - "\n"; |
|
| 10 | + print "The license id for the ip is: " . $status["@attributes"]["licenseid"] . "\n"; |
|
| 11 | + print "The status of the license is: "; |
|
| 12 | + if ($status["@attributes"]["valid"] > 0) { |
|
| 13 | + print "Active"; |
|
| 14 | + } else { |
|
| 15 | + print "Inactive"; |
|
| 16 | + } |
|
| 17 | + print "\n"; |
|
| 18 | + print "The company holding the license is: " . $status["@attributes"]["company"] . |
|
| 19 | + "\n"; |
|
| 20 | 20 | } else { |
| 21 | - print "The status of the license is: Not Licensed\n"; |
|
| 21 | + print "The status of the license is: Not Licensed\n"; |
|
| 22 | 22 | } |
| 23 | 23 | |