No going to work, there are hundreds of files which check the integrity of the Core file (SHA1 Hash of file). if you decode the main file, addon stop working.
You have to decode almost all the files, than can edit the main file, but when you decode other 100's of files, namespace and 'extend' path get messed up.
When you fix the "extend" and "namespaces" you are not 100% sure you use the correct, why? it's because files are encrypted, you are guessing based on it's file name and path.
Agree --
Sorry i was not able to clear my point .. i will make it more simple//
Step 1
You find the license url - key length - key md5 ( copy to safe location)
e.g : license url: lic.modgar.den/clients
e.g: Key lengeth is : 6
& keys hash is something 123456
Now create a new license in your own WHMCS ie. ( disable domain verify) Your KEY should
Your key should be MG-LEASED-1234568 ( make sure it matches with moduleg garden key)
Pro Tip: Make sure your key is same as your TRAIL KEY from modules garden :>
------------------------------------------------------------------
Step2
Edit your hosts files and make sure lic.modgar.den resolve to 127.0.0.1 or your localhost
In case your are using multiple domains with apache, you cal also add new conf in ///..../sites-available/modulesggarden.conf and point your whmcs path -
a2ensite modulesgarden.conf
------------------------------------------------------------------
Step3
Upload modules garden you want to use ( i have installed all modules and working perfect)
Make sure this moduel is untouched ( 100% clean)
Do not activate modules ---
First add lice key for addon ( if its from License.php )
Note: you have to add your own key that you have generated --==
---------------------------------------------------------------
It should work
--------------------------------------------------------------
In case its not working
Do it YourSelf ; ( check if modules garden is now hosted on your server)
wget -O check.txt
http://lic.modgar.den/clients/inde.php
Repy me ERROR Log: ( you have to enable whmcs logs)
Replay me whmcs License Url:
------------------------------------------------------------
How does it work?
You installed a plugin and now it has to verify the KEY:
You add a key as lic-123
Now plugin has backlink to server to check key i.e : lic.modgar.den/clients/licenseAddon/verify.php?lic=lic-123&domain=abc.zzz&id=1333&this=that etc etc
If you have a valid license your module will be activated after getting a 200 responce.
BUT : if you license is invalid is invalid your module will now work ..
You actully spoof your whmcs module =
Your whmcs acts as its modulesgarden whmcs and your key ( if you have generated carefuly) acts as original whmcs key
As module is unotuched it will still check ic.modgar.den/clients/licenseAddon/verify.php?lic=lic-123&domain=abc.zzz&id=1333&this=that etc etc and as it now points to your whmcs and you have created key -- it will pass 200 respnce .//
------------------------------------------
WHY IT DOES NOT WORK
Only 1 possible reason is : license url in module setting is https://
You have now redirected modgar.den domain to your localhost -- localhost -- i mean its localhost .. and localhosts does not have SSL ( you may say localhost supports SSL but $_POST method does not work )
Now if you try to active addon and license url inside addon is
https://lic.modgar.den/clients/xxxxxxxxxx
It will give error ( invalid_cert)
------------------------------------
Regards