Anney Posted May 21, 2008 Share Posted May 21, 2008 Hey guys, Must say, I love this forum... Anyways... I am writing a new script that I would like to release as freeware. In that script I would like to make sure my copyright is displayed. But because some of these pages are going to be completely customizable, I cannot simply encode all of the pages. (although I do intend to encode 1 or 2 of the pages.) So my question would be, is there anyway for me to make sure that the copyright is displayed? and if it isn't perhaps disable the other functions or call another function? Thank you for even reading this Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/ Share on other sites More sharing options...
jonsjava Posted May 21, 2008 Share Posted May 21, 2008 any coder willing to spend the time can break the code so your copyright doesn't display. All you can do is hope they don't. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546750 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 If they are truly a good person, they will keep the copyright there. If they do not, they do not deserve the right to have the script, but, then again, it is freeware. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546751 Share on other sites More sharing options...
micmania1 Posted May 21, 2008 Share Posted May 21, 2008 Just an idea, why not create multiple functions in multiple files, all connected to each other. Make it as complicated as possible, and check if the copyright is still being displayed. If not, you could use the script to alert you via email or something without them even knowing. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546759 Share on other sites More sharing options...
Anney Posted May 21, 2008 Author Share Posted May 21, 2008 Thank you all of you... Good advice... and I know about them being able to crack it if they are good enough... but I still think making it harder than just opening up notepad and pressing delete would be prefferable. Just an idea, why not create multiple functions in multiple files, all connected to each other. Make it as complicated as possible, and check if the copyright is still being displayed. If not, you could use the script to alert you via email or something without them even knowing. I like this idea, but I am not exactly a php genius, so could you elaborate a little, perhaps an example? if you would. Also, I meant to mention that something like the SMF copyright... If you break it, or don't use the theme_copyright() function it displays a message something like: 'COPYRIGHT MISSING, PLEASE RE-INSTATE'... and before you ask, I have checked the coding, but its too complex for me... Thanks again Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546768 Share on other sites More sharing options...
DeanWhitehouse Posted May 21, 2008 Share Posted May 21, 2008 have one file that has something that is required for the page to run, then in the copyright bit have a require ''; for that file , then encrypt the copyright piece of code, and then if they delete the code there pages will display an error Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546771 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 Fancy, brilliant, complex, and stunning all in one. I like that idea, even though it is not for me... Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546778 Share on other sites More sharing options...
Anney Posted May 21, 2008 Author Share Posted May 21, 2008 Blade do you mean something like this?: --------functions.php------ function neededfunction() { require ('copyright.php'); global $variableneeded; if ($variableneeded != "found") { echo 'Copyright Missing...'; } else { some code... } } -------copyright.php-------- function copyright() { global $variableneeded; $variableneeded = "found"; echo 'COPYRIGHT INFO'; } -------Index.php------------ <? echo $TOPOFPAGE; neededfunction(); copyright(); echo $BOTTOMOFPAGE; ?> thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546786 Share on other sites More sharing options...
947740 Posted May 21, 2008 Share Posted May 21, 2008 The only problem I see is that they could completely change the code on functions.php, thus removing the problem. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546788 Share on other sites More sharing options...
DarkWater Posted May 21, 2008 Share Posted May 21, 2008 Not if functions.php was obfuscated. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546792 Share on other sites More sharing options...
Anney Posted May 21, 2008 Author Share Posted May 21, 2008 What if I encode both the functions.php & copyright.php pages... and just give people a list of the usable functions? The only thing then... would the script work? as the copyright.php's variable is being called before the page has been 'require'd.. thank you guys a million times for you very prompt and great advice Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546796 Share on other sites More sharing options...
DeanWhitehouse Posted May 21, 2008 Share Posted May 21, 2008 erm i think, i am not that experienced but , the basic idea would be //page 1 contain something really important e.g. a session (have this encrypted) // then on each page put // copyright // then at the begining of each page check for the session if it is not there, then they have removed something that kinda idea Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-546806 Share on other sites More sharing options...
947740 Posted May 22, 2008 Share Posted May 22, 2008 If you delete the reference in the file calling copyright.php, you can do nothing about it. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-547409 Share on other sites More sharing options...
Anney Posted May 23, 2008 Author Share Posted May 23, 2008 Yeah thanks for all your help guys... None of those would work... but no worries.. I have an answer!... It does involve the use of a PHP encrypter, but hey... SOLUTION: Create page that has the needed functions needed for the script (can be 1 function or more). I called it 'functions.php' Then create a copyright function within a file that just echos/prints your copyright. And use that function in that same file I called it 'copyright.php' function called 'copyright()' mine went like this (roughly): <? function copyright() { echo '© COPYRIGHT ME 2008'; } copyright(); ?> Place ALL of the functions in the function.php page within this stipulation: if (is_callable('copyright') == false) { echo 'COPYRIGHT MISSING...'; exit; } else { //PLACE ANY OR ALL NECESSARY FUNCTIONS HERE } Then if you encrypt both of these files, and use this syntax for any page needing the functions: <?php include('copyright.php'); include('functions.php'); ?> <html> <head> ...... Normal code here ...... ...the copyright will be displayed on any of the pages with these functions, or it will not work, and display a message saying that the copyright is missing... ****NOTE**** You might be thinking... well that will only display the copyright info at the top, OR the functions wont work (because they aren't defined before called). Not necessary... just add 'style="bottom:0;position:fixed;"' attributes to the copyright div tag, and this will display the copyright at the bottom of the page, in a static location...therefore.. always viewable Just to clarify... I am not an experienced PHP programmer... So if anyone can tell me any problems with this, i would be grateful.. or a better way? Thanks again guys and girls! Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-547766 Share on other sites More sharing options...
947740 Posted May 23, 2008 Share Posted May 23, 2008 That is a good idea. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548192 Share on other sites More sharing options...
.josh Posted May 23, 2008 Share Posted May 23, 2008 Best option is to obfuscate your script using an encryption program like from zend or sourceguardian etc...just google "encrypting php" or w/e. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548223 Share on other sites More sharing options...
jonsjava Posted May 23, 2008 Share Posted May 23, 2008 a decent one (to my knowledge) is PHP Obfuscater Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548224 Share on other sites More sharing options...
Anney Posted May 23, 2008 Author Share Posted May 23, 2008 Do you think it'll work though?... I haven't been able to get my hands on an 'Encrypter' anywhere... Know any sources?.. Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548594 Share on other sites More sharing options...
AndyB Posted May 24, 2008 Share Posted May 24, 2008 I haven't been able to get my hands on an 'Encrypter' anywhere... Know any sources?.. ... obfuscate your script using an encryption program like from zend or sourceguardian etc Does that help? Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548634 Share on other sites More sharing options...
Anney Posted May 24, 2008 Author Share Posted May 24, 2008 It would if I had around $250 to spare... which I don't, and as I'm gonna be giving this as freeware... My money wouldn't be well spent.. Thanks anyways... Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548637 Share on other sites More sharing options...
LooieENG Posted May 24, 2008 Share Posted May 24, 2008 It would if I had around $250 to spare... which I don't, and as I'm gonna be giving this as freeware... My money wouldn't be well spent.. Thanks anyways... a decent one (to my knowledge) is PHP Obfuscater The application is provided for free Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548645 Share on other sites More sharing options...
Anney Posted May 24, 2008 Author Share Posted May 24, 2008 I did search the forum for Free PHP obfuscator... but no good matches came up... classic SMF search I suppose... Thanks LooieENG Quote Link to comment https://forums.phpfreaks.com/topic/106667-help-with-copyright-retention/#findComment-548841 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.