ionCube Logo
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


 
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder

decrypt mo file that encrypted by ioncube encoder ?

Author Message
gnostic



Joined: 17 Jun 2016
Posts: 2

PostPosted: Fri Jun 17, 2016 3:24 am    Post subject: decrypt mo file that encrypted by ioncube encoder ? Reply with quote

I create a big "test.po" translate file with poeditor and compile it to "test.mo".
So i tried to encrypt it with ioncube encoder. In ioncube encoder, i add ".mo" type in "Non-php encryption extensions", and after start building, encrypted "test.mo" was created .

But, i dont know where use ioncube_read_file("test.mo") in my project. commands for use mo files are:

Code:
$locale = "fr_fr";
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
bindtextdomain("default", "/includes/locale");
textdomain("default");


And i dont khow where i used ioncube_read_file command to decrypt test.mo file.

I used ioncube_read_file () this way:

bindtextdomain(ioncube_read_file ("default", "/includes/locale"));
textdomain(ioncube_read_file ("default"));[/code]

But no one is correct.

More description : these above commands set options for "gettext" fuction. and gettext return translated of the words. "gettext" function is a php function that used for multilanguage software.
Back to top
View user's profile Send private message
gnostic



Joined: 17 Jun 2016
Posts: 2

PostPosted: Sat Jun 18, 2016 11:05 am    Post subject: Reply with quote

Can some one help me. moderators or other users?
Which command in gettext load mo file to cache, and where i use ioncube_read_file() to decryip .mo files ?
Back to top
View user's profile Send private message
liaison
ionCube Support


Joined: 16 Dec 2004
Posts: 2771

PostPosted: Sat Jun 18, 2016 11:45 pm    Post subject: Reply with quote

Creating a support ticket is the best way. But also think about what you're doing here, keep in mind that ioncube_read_file() decrypts a file and returns the contents as a string whereas gettext() looks in specific places on the flie system for a mo file.
_________________
Community Admin
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ionCube Forum Index -> ionCube PHP Encoder All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum