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

No access to source, but I want to....

Author Message
victornguyen



Joined: 06 Jan 2019
Posts: 1

PostPosted: Sun Jan 06, 2019 4:26 pm    Post subject: No access to source, but I want to.... Reply with quote

I have no access to the original unencoded source of my PHP files, but I would like to be able to add some PHP code before the encoded content so that I may password protect the pages with a front login page. Is this at all possible? And how would I go about doing this, so far I try and I get an error stating that the file is corrupt?
Back to top
View user's profile Send private message AIM Address
alastair



Joined: 23 Feb 2010
Posts: 354

PostPosted: Mon Jan 07, 2019 9:45 am    Post subject: Reply with quote

Hi,

It is not possible to do what you described as the files cannot be changed after encoding. As you have discovered, if you try to alter the files then you will get a "corrupt" message.

You could, of course, create a wrapper file that included the encoded file in each case like the following skeleton:

<?php

<security checks>

if (logged_in) {
include_once(<encoded file>);
}

?>
_________________
Alastair

ionCube
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