@@ -561,7 +561,7 @@ public function validateLicenses($request, $whmcsServerId)
561
561
//dd($_SERVER);
562
562
if (isset ($ _SERVER ["HTTP_AUTHORIZATION " ]) && (strpos (strtolower ($ _SERVER ["HTTP_AUTHORIZATION " ]), 'basic ' ) !== false )) {
563
563
564
- /// file_put_contents(base_path().'/lic .txt', print_r((substr($_SERVER["HTTP_AUTHORIZATION"], 6)),1));
564
+ // file_put_contents(base_path().'/lic11 .txt', print_r((substr($_SERVER["HTTP_AUTHORIZATION"], 6)),1));
565
565
566
566
$ userLicenseKeys = base64_decode (substr ($ _SERVER ["HTTP_AUTHORIZATION " ], 6 ));
567
567
@@ -594,6 +594,9 @@ public function validateLicenses($request, $whmcsServerId)
594
594
$ userLicenseKeysForValidation []['local_key ' ] = $ userLicenseKeys ;
595
595
}
596
596
}
597
+ // file_put_contents(base_path().'/lic22.txt', print_r($userLicenseKeysForValidation ,1));
598
+ // file_put_contents(base_path().'/lic33.txt', print_r($userLicenseKeys ,1));
599
+ // file_put_contents(base_path().'/lic444.txt', print_r($_SERVER ,1));
597
600
598
601
$ userLicenseKeysMap = [];
599
602
@@ -612,7 +615,9 @@ public function validateLicenses($request, $whmcsServerId)
612
615
foreach ($ userLicenseKeysMap as $ k =>$ userLicenseKey ) {
613
616
614
617
$ consumeLicense = MicroweberSAASLicenseValidatorHelper::getLicenseStatus ($ userLicenseKey );
615
- if (isset ($ consumeLicense ['status ' ]) && strtolower ($ consumeLicense ['status ' ])=='active ' ) {
618
+
619
+
620
+ if (isset ($ consumeLicense ['status ' ]) && strtolower ($ consumeLicense ['status ' ])=='active ' ) {
616
621
617
622
$ whmcsProductId = false ;
618
623
if (isset ($ consumeLicense ['package_id ' ])) {
@@ -623,6 +628,9 @@ public function validateLicenses($request, $whmcsServerId)
623
628
'whmcs_product_id ' => $ whmcsProductId ,
624
629
'license ' => $ userLicenseKey ,
625
630
];
631
+
632
+
633
+
626
634
} else {
627
635
$ messaage = '' ;
628
636
$ status = '' ;
0 commit comments