Encoded Copyright

From: Dave (shight_at_gmail.com_REMOVE_THIS)
Date: 01/30/05


Date: Sun, 30 Jan 2005 21:32:58 GMT

I see they are getting better at this, in the coppermine gallery app
from sourceforge, if you try to edit the copyright footer (I am not
telling you to do this, this is just an observation), it's written as

define
('LOC','YToyOntzOjE6ImwiO3M6OToie0dBTExFUll9IjtzOjE6InMiO3M6MTY5OiI8ZGl2
IGNsYXNzPSJmb290ZXIiIGFsaWduPSJjZW50ZXIiIHN0eWxlPSJwYWRkaW5nLXRvcDogMTBw
eDsiPlBvd2VyZWQgYnkgPGEgaHJlZj0iaHR0cDovL3d3dy5jaGV6Z3JlZy5uZXQvY29wcGVy
bWluZS8iIHRhcmdldD0iX2JsYW5rIj5Db3BwZXJtaW5lIFBob3RvIEdhbGxlcnk8L2E+PC9k
aXY+Ijt9');

On base64_decoding it, you end up with a serialized multidimensional
array. On unserializing it and looping through the array,you get 2 main
parts, an template string, and the block of HTML for the footer.
So, if you want to edit the footer you must edit the html in the array,
re-serialize it, and re-base64_encode it.

This of course, stops people from doing a grep -R through a shell to try
and find the file with the copyright string in to edit it.

This method is a good idea for anyone writing PHP with a block of HTML
or text in that you don't want edited. You could also actually encode
your actual PHP code this way, so it's not as easy to edit.

Dave



Relevant Pages

  • Re: Inserting background image in word
    ... If you put the image in the document's header or footer, ... harder for users to 'edit' accidentally. ... > I am currently trying to insert a image into a word document which will ...
    (microsoft.public.word.docmanagement)
  • Combo box, command button placement questions
    ... different database projects which make use of multiple ... Where's the best/recommended placement for command buttons for things ... like delete, save, edit, cancel buttons - in the footer, or on the form ... If in the footer, how do you add them to the tab order? ...
    (comp.databases.ms-access)
  • Cant Edit Footer in HTML-Formatted Messages
    ... that you can edit the header and footer. ... Editing the header works fine, ...
    (microsoft.public.outlook.printing)
  • Re: How do I get the date and fake words off the top of my document?
    ... Go to View>Header and Footer... ... You will be able to edit it there. ... Operating System: Mac OS X 10.5 ...
    (microsoft.public.mac.office.word)
  • Re: How to edit footer on Slide Master
    ... Can you edit it on the slide master? ... Echo [MS PPT MVP] http://www.echosvoice.com ... On my slides, the footer, which appears on every slide, is in three ...
    (microsoft.public.powerpoint)