@@ -323,7 +323,7 @@ |
||
| 323 | 323 | $updatesExpiry = $order->subscription->update_ends_at; |
| 324 | 324 | $supportExpiry = $order->subscription->support_ends_at; |
| 325 | 325 | $cont = new \App\Http\Controllers\License\LicenseController(); |
| 326 | - $updateLicensedDomain = $cont->updateLicensedDomain($licenseCode, $order->domain, $order->product, $licenseExpiry,$updatesExpiry,$supportExpiry, $order->number); |
|
| 326 | + $updateLicensedDomain = $cont->updateLicensedDomain($licenseCode, $order->domain, $order->product, $licenseExpiry, $updatesExpiry, $supportExpiry, $order->number); |
|
| 327 | 327 | //Now make Installation status as inactive |
| 328 | 328 | $updateInstallStatus = $cont->updateInstalledDomain($licenseCode, $order->product); |
| 329 | 329 | } |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | if(strtotime($updatesExpiry) >1) { |
| 161 | 161 | $u_expiry = date('Y-m-d', strtotime($updatesExpiry)); |
| 162 | - } |
|
| 162 | + } |
|
| 163 | 163 | if(strtotime($supportExpiry) >1) { |
| 164 | 164 | $s_expiry = date('Y-m-d', strtotime($supportExpiry)); |
| 165 | 165 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | $productId = $searchLicense['productId']; |
| 181 | 181 | $licenseCode = $searchLicense['code']; |
| 182 | 182 | $updateLicense = $this->postCurl($url, "api_key_secret=$api_key_secret&api_function=licenses_edit&product_id=$productId&license_code=$licenseCode&license_id=$licenseId&license_order_number=$orderNo&license_require_domain=$requiredomain&license_status=1&license_expire_date=$l_expiry&license_updates_date=$u_expiry&license_support_date=$s_expiry&license_domain=$domain&license_ip=$ip"); |
| 183 | - } |
|
| 183 | + } |
|
| 184 | 184 | |
| 185 | 185 | public function searchLicenseId($licenseCode, $productId) |
| 186 | 186 | { |
@@ -149,28 +149,28 @@ discard block |
||
| 149 | 149 | /* |
| 150 | 150 | * Edit Existing License |
| 151 | 151 | */ |
| 152 | - public function updateLicensedDomain($licenseCode, $domain, $productId, $licenseExpiry,$updatesExpiry,$supportExpiry, $orderNo) |
|
| 152 | + public function updateLicensedDomain($licenseCode, $domain, $productId, $licenseExpiry, $updatesExpiry, $supportExpiry, $orderNo) |
|
| 153 | 153 | { |
| 154 | 154 | $l_expiry = ''; |
| 155 | 155 | $s_expiry = ''; |
| 156 | 156 | $u_expiry = ''; |
| 157 | - if (strtotime($licenseExpiry) >1) { |
|
| 157 | + if (strtotime($licenseExpiry) > 1) { |
|
| 158 | 158 | $l_expiry = date('Y-m-d', strtotime($licenseExpiry)); |
| 159 | 159 | } |
| 160 | - if(strtotime($updatesExpiry) >1) { |
|
| 160 | + if (strtotime($updatesExpiry) > 1) { |
|
| 161 | 161 | $u_expiry = date('Y-m-d', strtotime($updatesExpiry)); |
| 162 | 162 | } |
| 163 | - if(strtotime($supportExpiry) >1) { |
|
| 163 | + if (strtotime($supportExpiry) > 1) { |
|
| 164 | 164 | $s_expiry = date('Y-m-d', strtotime($supportExpiry)); |
| 165 | 165 | } |
| 166 | 166 | $url = $this->url; |
| 167 | 167 | $isIP = (bool) ip2long($domain); |
| 168 | 168 | if ($isIP == true) { |
| 169 | - $requiredomain= 0; |
|
| 169 | + $requiredomain = 0; |
|
| 170 | 170 | $ip = $domain; |
| 171 | 171 | $domain = ''; |
| 172 | 172 | } else { |
| 173 | - $requiredomain= 1; |
|
| 173 | + $requiredomain = 1; |
|
| 174 | 174 | $domain = $domain; |
| 175 | 175 | $ip = ''; |
| 176 | 176 | } |
@@ -243,11 +243,11 @@ discard block |
||
| 243 | 243 | $url = $this->url; |
| 244 | 244 | $isIP = (bool) ip2long($domain); |
| 245 | 245 | if ($isIP == true) { |
| 246 | - $requiredomain= 0; |
|
| 246 | + $requiredomain = 0; |
|
| 247 | 247 | $ip = $domain; |
| 248 | 248 | $domain = ''; |
| 249 | 249 | } else { |
| 250 | - $requiredomain= 1; |
|
| 250 | + $requiredomain = 1; |
|
| 251 | 251 | $domain = $domain; |
| 252 | 252 | $ip = ''; |
| 253 | 253 | } |
@@ -54,8 +54,8 @@ discard block |
||
| 54 | 54 | public function editUpdateDateInAPL($orderId, $expiryDate, $licenseSupportExpiry) |
| 55 | 55 | { |
| 56 | 56 | $order = Order::find($orderId); |
| 57 | - $licenseExpiry = strtotime($licenseSupportExpiry->ends_at)>1 ? date('Y-m-d', strtotime($licenseSupportExpiry->ends_at)) : ''; |
|
| 58 | - $supportExpiry = strtotime($licenseSupportExpiry->support_ends_at) >1 ? date('Y-m-d', strtotime($licenseSupportExpiry->support_ends_at)) : ''; |
|
| 57 | + $licenseExpiry = strtotime($licenseSupportExpiry->ends_at) > 1 ? date('Y-m-d', strtotime($licenseSupportExpiry->ends_at)) : ''; |
|
| 58 | + $supportExpiry = strtotime($licenseSupportExpiry->support_ends_at) > 1 ? date('Y-m-d', strtotime($licenseSupportExpiry->support_ends_at)) : ''; |
|
| 59 | 59 | $expiryDate = strtotime($expiryDate) > 1 ? date('Y-m-d', strtotime($expiryDate)) : ''; |
| 60 | 60 | $cont = new \App\Http\Controllers\License\LicenseController(); |
| 61 | 61 | $updateLicensedDomain = $cont->updateExpirationDate($order->serial_key, $expiryDate, $order->product, $order->domain, $order->number, $licenseExpiry, $supportExpiry); |
@@ -99,9 +99,9 @@ discard block |
||
| 99 | 99 | public function editLicenseDateInAPL($orderId, $date, $updatesSupportExpiry) |
| 100 | 100 | { |
| 101 | 101 | $order = Order::find($orderId); |
| 102 | - $expiryDate = strtotime($updatesSupportExpiry->update_ends_at)>1 ? date('Y-m-d', strtotime($updatesSupportExpiry->update_ends_at)) : ''; |
|
| 103 | - $supportExpiry = strtotime($updatesSupportExpiry->support_ends_at)>1 ? date('Y-m-d', strtotime($updatesSupportExpiry->support_ends_at)) : ''; |
|
| 104 | - $licenseExpiry = strtotime($date)>1 ? date('Y-m-d', strtotime($date)) : ''; |
|
| 102 | + $expiryDate = strtotime($updatesSupportExpiry->update_ends_at) > 1 ? date('Y-m-d', strtotime($updatesSupportExpiry->update_ends_at)) : ''; |
|
| 103 | + $supportExpiry = strtotime($updatesSupportExpiry->support_ends_at) > 1 ? date('Y-m-d', strtotime($updatesSupportExpiry->support_ends_at)) : ''; |
|
| 104 | + $licenseExpiry = strtotime($date) > 1 ? date('Y-m-d', strtotime($date)) : ''; |
|
| 105 | 105 | $cont = new \App\Http\Controllers\License\LicenseController(); |
| 106 | 106 | $updateLicensedDomain = $cont->updateExpirationDate($order->serial_key, $expiryDate, $order->product, $order->domain, $order->number, $licenseExpiry, $supportExpiry); |
| 107 | 107 | } |
@@ -144,9 +144,9 @@ discard block |
||
| 144 | 144 | public function editSupportDateInAPL($orderId, $date, $updatesLicenseExpiry) |
| 145 | 145 | { |
| 146 | 146 | $order = Order::find($orderId); |
| 147 | - $expiryDate = strtotime($updatesLicenseExpiry->update_ends_at)>1 ? date('Y-m-d', strtotime($updatesLicenseExpiry->update_ends_at)) : ''; |
|
| 148 | - $licenseExpiry = strtotime($updatesLicenseExpiry->ends_at)>1 ? date('Y-m-d', strtotime($updatesLicenseExpiry->ends_at)) : ''; |
|
| 149 | - $supportExpiry = strtotime($date)>1 ? date('Y-m-d', strtotime($date)) : ''; |
|
| 147 | + $expiryDate = strtotime($updatesLicenseExpiry->update_ends_at) > 1 ? date('Y-m-d', strtotime($updatesLicenseExpiry->update_ends_at)) : ''; |
|
| 148 | + $licenseExpiry = strtotime($updatesLicenseExpiry->ends_at) > 1 ? date('Y-m-d', strtotime($updatesLicenseExpiry->ends_at)) : ''; |
|
| 149 | + $supportExpiry = strtotime($date) > 1 ? date('Y-m-d', strtotime($date)) : ''; |
|
| 150 | 150 | $cont = new \App\Http\Controllers\License\LicenseController(); |
| 151 | 151 | $updateLicensedDomain = $cont->updateExpirationDate($order->serial_key, $expiryDate, $order->product, $order->domain, $order->number, $licenseExpiry, $supportExpiry); |
| 152 | 152 | } |