@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | $ipAddress = $_SERVER['argv'][3]; |
| 6 | 6 | $cpl->format = 'json'; |
| 7 | -$lisc = json_decode($cpl->fetchLicenseId(['ip' => $ipAddress]), TRUE); |
|
| 7 | +$lisc = json_decode($cpl->fetchLicenseId(['ip' => $ipAddress]), true); |
|
| 8 | 8 | print_r($lisc); |
| 9 | 9 | $liscid = $lisc['licenseid'][0]; |
| 10 | 10 | |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | reason => 'Automagic Expiration', |
| 16 | 16 | expcode => 'normal' |
| 17 | 17 | ] |
| 18 | - ), TRUE); |
|
| 18 | + ), true); |
|
| 19 | 19 | print $expire['result'].PHP_EOL; |
| 20 | 20 | } else { |
| 21 | 21 | print "There is no valid license for $ipAddress\n"; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | $cpl = new \Detain\Cpanel\Cpanel($_SERVER['argv'][1], $_SERVER['argv'][2]); |
| 6 | 6 | $cpl->format = 'json'; |
| 7 | -$licenses = json_decode($cpl->fetchLicenses(), TRUE); |
|
| 7 | +$licenses = json_decode($cpl->fetchLicenses(), true); |
|
| 8 | 8 | echo json_encode($licenses, JSON_PRETTY_PRINT); |
| 9 | 9 | /* |
| 10 | 10 | foreach ( $licenses->licenses as $lisc ) { |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | curl_setopt($this->curl, $option, $value); |
| 73 | 73 | $result = curl_exec($this->curl); |
| 74 | 74 | curl_close($this->curl); |
| 75 | - if ($result == FALSE) { |
|
| 75 | + if ($result == false) { |
|
| 76 | 76 | error_log('cPanelLicensing::get failed: "'.curl_error($this->curl).'"'); |
| 77 | 77 | return; |
| 78 | 78 | } |