gr2 Posted April 23, 2011 Share Posted April 23, 2011 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. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted April 23, 2011 Author Share Posted April 23, 2011 is it possible to encrypt .tpl files with ioncube in whmcs? 0 Quote Link to comment Share on other sites More sharing options...
mylove4life Posted April 23, 2011 Share Posted April 23, 2011 why do you want to encrpt the ioncube files? 0 Quote Link to comment Share on other sites More sharing options...
GGWH-James Posted April 23, 2011 Share Posted April 23, 2011 (edited) While I haven't tested the template encryption with WHMCS specifically... Please note that the script calling ioncube_read_file(), e.g. the template engine, must be encoded.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? Edited April 23, 2011 by GGWH-James 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted April 23, 2011 Author Share Posted April 23, 2011 Hello mylove4life, GGWH-James, Thank you both for your replies. why do you want to encrypt the ioncube files? 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. 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 0 Quote Link to comment Share on other sites More sharing options...
GGWH-James Posted April 23, 2011 Share Posted April 23, 2011 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 Did you encode the file in BINARY, but upload it in ASCII or AUTO mode? If you did encode it in BINARY, force BINARY mode in your FTP program while uploading the file. 0 Quote Link to comment Share on other sites More sharing options...
gr2 Posted April 23, 2011 Author Share Posted April 23, 2011 (edited) 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. Edited April 23, 2011 by gr2 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.