Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Remove address IP on Ecard  (Read 5193 times)

0 Members and 1 Guest are viewing this topic.

cavok

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
Remove address IP on Ecard
« on: May 09, 2006, 12:50:57 pm »

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!

« Last Edit: May 09, 2006, 09:26:36 pm by TranzNDance »
Logged
Coppermine 1.5.22 hosting by Free

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Remove address IP on Ecard
« Reply #1 on: May 09, 2006, 02:04:22 pm »

Edit ecard.php

Replace

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

with

Code: [Select]
$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

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

with

Code: [Select]
'ecards_footer' => 'Sent by %s at %s (Gallery time)', //cpg1.4


HTH
Abbas
Logged
Chief Geek at Ranium Systems

cavok

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
Re: Remove address IP on Ecard
« Reply #2 on: May 09, 2006, 08:37:54 pm »


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

Thank you again for this fast and effective answer.
Logged
Coppermine 1.5.22 hosting by Free
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.