@@ -154,14 +154,14 @@ |
||
154 | 154 | public function updateLicensedDomain($clientEmail, $domain) |
155 | 155 | { |
156 | 156 | $url = $this->url; |
157 | - $isIP = (bool)ip2long($domain); |
|
158 | - if($isIP == true) { |
|
159 | - $ip = $domain; |
|
160 | - $domain = ''; |
|
161 | - } else { |
|
162 | - $domain = $domain ; |
|
163 | - $ip= ''; |
|
164 | - } |
|
157 | + $isIP = (bool)ip2long($domain); |
|
158 | + if($isIP == true) { |
|
159 | + $ip = $domain; |
|
160 | + $domain = ''; |
|
161 | + } else { |
|
162 | + $domain = $domain ; |
|
163 | + $ip= ''; |
|
164 | + } |
|
165 | 165 | $api_key_secret = $this->api_key_secret; |
166 | 166 | $searchLicense = $this->searchLicenseId($clientEmail); |
167 | 167 | $licenseId = $searchLicense['licenseId']; |
@@ -175,15 +175,15 @@ |
||
175 | 175 | { |
176 | 176 | $needle = 'www'; |
177 | 177 | foreach ($seperateDomains as $domain) { |
178 | - $isIP = (bool)ip2long($domain); |
|
179 | - if($isIP == true) { |
|
180 | - $allowedDomains[] = $domain; |
|
181 | - } else { |
|
182 | - $customDomain = (strpos($domain, $needle) !== false) ? str_replace('www.', '', $domain) : 'www.'.$domain; |
|
183 | - $allowedDomains[] = ($domain.','.$customDomain); |
|
178 | + $isIP = (bool)ip2long($domain); |
|
179 | + if($isIP == true) { |
|
180 | + $allowedDomains[] = $domain; |
|
181 | + } else { |
|
182 | + $customDomain = (strpos($domain, $needle) !== false) ? str_replace('www.', '', $domain) : 'www.'.$domain; |
|
183 | + $allowedDomains[] = ($domain.','.$customDomain); |
|
184 | 184 | |
185 | - } |
|
186 | - } |
|
185 | + } |
|
186 | + } |
|
187 | 187 | return $allowedDomains; |
188 | 188 | } |
189 | 189 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | $serial_key = $this->checkSerialKey($faveo_encrypted_key, $order_number); |
96 | 96 | |
97 | 97 | \Log::emergency(json_encode(['domain' => $request->input('domain'), |
98 | - 'serial' => $serial_key, 'order' => $order_number, ])); |
|
98 | + 'serial' => $serial_key, 'order' => $order_number, ])); |
|
99 | 99 | $result = []; |
100 | 100 | if ($request_type == 'install') { |
101 | 101 | $result = $this->verificationResult($order_number, $serial_key); |
@@ -348,7 +348,7 @@ discard block |
||
348 | 348 | // $faveo_encrypted_key = self::decryptByFaveoPrivateKey($request->input('serial_key')); |
349 | 349 | // $faveo_encrypted_domain = self::decryptByFaveoPrivateKey($request->input('domain')); |
350 | 350 | $this_order = $order |
351 | - ->where('number', $faveo_encrypted_order_number) |
|
351 | + ->where('number', $faveo_encrypted_order_number) |
|
352 | 352 | // ->where('number', $request->input('order_number')) |
353 | 353 | //->where('serial_key', $faveo_encrypted_key) |
354 | 354 | //->where('domain', $faveo_encrypted_domain) |