Jump to content


I need help protecting some code lines

  • Please log in to reply
1 reply to this topic

#1 unforgotten

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 16 June 2006 - 10:01 PM


I have a template I designed and coded for php-nuke platform that I would like to give for free but the only thing is that I want the person which will download the template to not be able to alter nor delete my copyrights. My copyrights are represented as an jpg image linking to my web-site. I am not a coder I only know the basics to get me around so I would like to know if there is a way to protect that jpg image displaying my copyrights from been alter or delete.

A friend of mine suggested something like this:
$keepimage = "dir/to/image/image.jpg";

and somewhere in the footer.php file to put in a rule like

if $keepimage === TRUE; { } else{ echo "THIS IMAGE IS MISSING";}

I am not a coder so I would like to know if there is a way to protect this and if so how?

There might not be a way to fully protect this as I have to give them the source code of the template so they can use it but than I would not mind at least making it harder for those regular people with not much of coding experience so they are unable to alter nor delete the copyrights on it due to their low coding knowledge.


#2 joquius

  • Members
  • PipPipPip
  • Advanced Member
  • 319 posts

Posted 16 June 2006 - 10:09 PM

you could only use javascript I suppose to check that the code has not been altered and it has just block all the code from being loaded

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users