News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

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