Encoded Copyright
From: Dave (shight_at_gmail.com_REMOVE_THIS)
Date: 01/30/05
- Next message: Sigmund: "PHP"
- Previous message: Peter Wilson: "PHP Apache please help (please)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Sigmund: "PHP"
- Previous message: Peter Wilson: "PHP Apache please help (please)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|