ioncube encryption of tpl files
been at this for hours with no result.
http://www.ioncube.com/sa_encoder.php?page=smarty_patch
http://www.ioncube.com/resources/encrypted_smarty_patch.phps
any feedback is much appreciated.
thanks in advance.
ioncube encryption of tpl files
been at this for hours with no result.
http://www.ioncube.com/sa_encoder.php?page=smarty_patch
http://www.ioncube.com/resources/encrypted_smarty_patch.phps
any feedback is much appreciated.
thanks in advance.
is it possible to encrypt .tpl files with ioncube in whmcs?
why do you want to encrpt the ioncube files?
While I haven't tested the template encryption with WHMCS specifically...
That means that the file "includes/smarty/Smarty.class.php" needs to be encoded as well. I'm guessing that you replaced the _read_file function, but haven't encoded the .PHP though?Please note that the script calling ioncube_read_file(), e.g. the template engine, must be encoded.
Last edited by GGWH-James; 04-23-11 at 04:50 AM.
Hello mylove4life, GGWH-James,
Thank you both for your replies.
sorry if i was not clear on that mylove4life, when i write tpl file i am referring to the files located in the templates directory with the .tpl extension.why do you want to encrypt the ioncube files?
GGWH-James,
in smarty.class.php, i commented out line3429 to 3455 and added the patch code directly under that.
encoded the file and uploaded it to the smarty directory.
i get this error:
Fatal error:
The encoded file /home/mydir/public_html/includes/smarty/Smarty.class.php is corrupt. in Unknown on line 0
thanks in advance for your time.
best regards
Andreas
issue resolved.
Thank you all for your feedback.
for some ridiculous reason i felt the need to put the contents of the tpl files inside {php}{/php} tags thinking it was needed and that was my mistake.
yes, i had uploaded the smarty.class file in auto mode and that is why the file broke.
so just to let you all know, .tpl WHMCS files can be encoded with ioncube.
Last edited by gr2; 04-23-11 at 03:28 PM.