|
No access to source, but I want to....
|
|
|
Author |
Message |
victornguyen
Joined: 06 Jan 2019 Posts: 1
|
Posted: Sun Jan 06, 2019 4:26 pm Post subject: No access to source, but I want to.... |
|
|
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 |
|
 |
alastair
Joined: 23 Feb 2010 Posts: 405
|
Posted: Mon Jan 07, 2019 9:45 am Post subject: |
|
|
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 |
|
 |
|
|
|
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
|
|
|