Page 1 of 1

I have a strange question!

Posted: Fri Oct 28, 2005 1:43 pm
by jasear
I have an application in php encoded with zend encoder.

The problem is that it has some stuff written at the bottom of the page that i need to get rid of.

I have been thinking of various solutions but havent been able to come up with a feasible one.

Is it possible to remove that?

The output in html is:

<div class="bold">
<a href="http://www.hat.com">Powered by hat </a>
</div>

Is there a way I can put some conditional statement in PHP which will get rid of this before it is output?

Or is there no way round this at all?

Posted: Fri Oct 28, 2005 1:59 pm
by Burrito
Moved to Code

they probably don't want you to remove it by design. They want credit, as they should, for the work they put into developing the application.

you should check to the license agreement to see if you're even "allowed" to remove it...

Posted: Fri Oct 28, 2005 2:08 pm
by Charles256
assuming you're allowed to remove it why not just delete it from the code?.....

Posted: Fri Oct 28, 2005 2:10 pm
by John Cartwright
It's been made dificult for a reason, so you DONT do it.

Posted: Fri Oct 28, 2005 2:28 pm
by elecktricity
although there are a few ways to not display the code keeping it there here are a few:

Code: Select all

<span style="display:none">
<div class="bold">
<a href="http://www.hat.com">Powered by hat </a>
</div>
</span>

Code: Select all

<?PHP
$nodisplay = '1';
if($nodisplay == '5') {
echo '<div class="bold">';
echo '<a href="http://www.hat.com">Powered by hat </a>';
echo '</div>';
}
?>

Posted: Fri Oct 28, 2005 2:36 pm
by jasear
ok, I think you misunderstood my question.

The code is already encoded. All i can see is the output html when i view source after loading the page.

In the view source i see the html code i posted above.

I was wondering whether there is a way to block that from outputting.

Posted: Fri Oct 28, 2005 2:54 pm
by elecktricity
so your saying on the page it looks something like:
Powered by hat
and you dont want that there? still kinda lost at what you want if that above didnt help

Posted: Fri Oct 28, 2005 3:16 pm
by pickle
So the encoder throws that on the bottom of every page? That sucks. If that's the case, there's nothing you can code in your PHP page that'll get rid of it. However, you may be able to write something in javascript that runs every time the page loads, which removes that bit of code.

Another option (which is ugly), is to end your file with <div style = 'display:none;'>. That may set that added extra stuff to be not displayed. Of course then you've got the problem that you've got an unclosed div at the end of your page.

Posted: Fri Oct 28, 2005 6:26 pm
by alex.barylski
Burrito wrote:Moved to Code

they probably don't want you to remove it by design. They want credit, as they should, for the work they put into developing the application.

you should check to the license agreement to see if you're even "allowed" to remove it...
Agreed...

I hate people who steal others hard work!!! :(

Posted: Fri Oct 28, 2005 6:57 pm
by RobertGonzalez
Seriously? If it is encoded then they don't want you messing with the code. Find out from the developer what it would take to have them remove that piece of output from the code. But I wouldn't mess with it unless the license says you can.

Posted: Fri Oct 28, 2005 10:05 pm
by rohabrar
I might be late commentin on this conversation --

Anyways, to the original sender - just have a look in the dircetory structure of the script you should find something similar to template or skin. As these big scripts are based on pure template system.

Now open any page in some editor and go right to the bottom of the screen -- choose view design for easy navigation and click on php code there -- hopefully (crosses finger) you will find include statement -- Bingo!! open the page in the include statement and remove the text you want to remove.

:roll: does this make sense :?:

rohabrar

Posted: Sat Oct 29, 2005 6:44 am
by n00b Saibot
i guess it wouldn't be that hard just to hard-code the text in the encoder :roll: