Remove address IP on Ecard Remove address IP on Ecard
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Remove address IP on Ecard

Started by cavok, May 09, 2006, 12:50:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cavok

Hello,
I use Coppermine 1.4.5
I want to remove display Address IP on Ecard send.
With old Coppermine version I remove in file ecard.php "from IP {$_SERVER['REMOTE_ADDR']}".
But in the latest version, I don't find it.
On line 129 ther is:
        $message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, $_SERVER['REMOTE_ADDR'], localised_date(-1,$comment_date_fmt));
                                $subject = sprintf($lang_ecard_php['ecard_title'], $sender_name);

if I remove only "$_SERVER['REMOTE_ADDR'], ", all feet is not display.
So I would like to remove only address IP not all of the feet.

Thank's for your help.
Sorry for my english!

Coppermine 1.5.22 hosting by Free

Abbas Ali

Edit ecard.php

Replace


$message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, $_SERVER['REMOTE_ADDR'], localised_date(-1,$comment_date_fmt));


with


$message .= sprintf($lang_ecard_php['ecards_footer'], $sender_name, localised_date(-1,$comment_date_fmt));


then edit lang/yourlang.php (english.php in most cases)

Replace


'ecards_footer' => 'Sent by %s from IP %s at %s (Gallery time)', //cpg1.4


with


'ecards_footer' => 'Sent by %s at %s (Gallery time)', //cpg1.4



HTH
Abbas
Chief Geek at Ranium Systems

cavok

Quote from: Abbas Ali on May 09, 2006, 02:04:22 PM

Thank's Abbas, it's marvellous, that functions with wonder.

Thank you again for this fast and effective answer.
Coppermine 1.5.22 hosting by Free