471,089 Members | 1,274 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

How to get rid of annoying copyright info in mxComment (which isGNU/GPL licensed!)

1. Find the file /components/com_maxcomment/includes/
maxcomment.utils.php
2. Find the lines that contain call to a function named "eval()", for
ex. "eval(stripslashes(base64_decode("...")));"

the eval function is used to evaluate the php code inside brackets,
base64_decode function is used to encode the human readable php code
into base64 encoded text, thus, here is where the copyright code is
hidden

3. copy the text between quotation marks in base64_decode("") function
call
4. go to http://www.opinionatedgeek.com/dotne.../Base64Decode/
5. paste that text into the page and press DECODE button
6. you'll see a human readable php code now, copy it to the Notepad,
find the function named _getNoticeCopyright() it starts something like
this:

function _getNoticeCopyright(){
global $mosConfig_absolute_path, $COMMENT;
require($mosConfig_absolute_path.\'/administrator/components/
com_maxcomment/version.php\');
....
}

7. delete all the code in that function or just put one 'return' at
the beginning of the function, for ex.

function _getNoticeCopyright(){
return;
global $mosConfig_absolute_path, $COMMENT;
require($mosConfig_absolute_path.\'/administrator/components/
com_maxcomment/version.php\');
....
}

8. select all that text now, copy it to clipboard and go to
http://www.opinionatedgeek.com/dotne.../Base64Encode/
9. paste the text in the page and press ENCODE button
10. the resulting text (base64 encoded text) should be put back in the
file /components/com_maxcomment/includes/maxcomment.utils.php

Have fun, cheers :)
Aug 20 '08 #1
2 1566
burek021 wrote:
1. Find the file /components/com_maxcomment/includes/
maxcomment.utils.php
2. Find the lines that contain call to a function named "eval()", for
ex. "eval(stripslashes(base64_decode("...")));"

the eval function is used to evaluate the php code inside brackets,
base64_decode function is used to encode the human readable php code
into base64 encoded text, thus, here is where the copyright code is
hidden

3. copy the text between quotation marks in base64_decode("") function
call
4. go to http://www.opinionatedgeek.com/dotne.../Base64Decode/
5. paste that text into the page and press DECODE button
6. you'll see a human readable php code now, copy it to the Notepad,
find the function named _getNoticeCopyright() it starts something like
this:

function _getNoticeCopyright(){
global $mosConfig_absolute_path, $COMMENT;
require($mosConfig_absolute_path.\'/administrator/components/
com_maxcomment/version.php\');
...
}

7. delete all the code in that function or just put one 'return' at
the beginning of the function, for ex.

function _getNoticeCopyright(){
return;
global $mosConfig_absolute_path, $COMMENT;
require($mosConfig_absolute_path.\'/administrator/components/
com_maxcomment/version.php\');
...
}

8. select all that text now, copy it to clipboard and go to
http://www.opinionatedgeek.com/dotne.../Base64Encode/
9. paste the text in the page and press ENCODE button
10. the resulting text (base64 encoded text) should be put back in the
file /components/com_maxcomment/includes/maxcomment.utils.php

Have fun, cheers :)
And why would I want to violate the copyright by removing this
information? Just because it's GNU/GPL licensed does not mean you can
legally remove copyright notices.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 20 '08 #2
While the city slept, burek021 feverishly typed:
1. Find the file /components/com_maxcomment/includes/
maxcomment.utils.php
[...]

Or, if you don't want to attribute someone for their hard work, just write
your own? Or maybe you can't

--
Nigel Moss | http://www.nigenet.org.uk
Email not valid. ni***@dog.nigenet.org.uk - take the dog out!
"You're mother ate my dog!", "Not all of him..."
Aug 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Stephen Durtschi | last post: by
2 posts views Thread by Grey Knight | last post: by
2 posts views Thread by Dave Cullen | last post: by
8 posts views Thread by Malakie | last post: by
24 posts views Thread by invitro81 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.