By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.