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: record and write user's ip?  (Read 4486 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
record and write user's ip?
« on: July 28, 2004, 09:05:22 pm »

hey everyone

does anyone know how to record and write the users ip address when the register-and when they use the gallery?

because i want to make sure people don't share their accounts with other people
Logged

Nibbler

  • Guest
Re: record and write user's ip?
« Reply #1 on: July 28, 2004, 10:19:00 pm »

init.inc.php already gives you $raw_ip and $hdr_ip, it is a trivial matter to simply log them into the db.
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
Re: record and write user's ip?
« Reply #2 on: July 28, 2004, 10:43:22 pm »

well it is to me, but can you please tell me how to tell it to write it into the user's account
Logged

Keanuette

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: record and write user's ip?
« Reply #3 on: September 19, 2004, 10:41:53 pm »

I would like to know this also.  Thank you...:)
Logged

radianation

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 79
    • Radianation
Re: record and write user's ip?
« Reply #4 on: November 27, 2004, 02:42:09 am »

I was able to do this in the login.php file. I searched for the string that updated the users last visit date and copied it, changing the variables for $raw_ip and used a field that I manually added the to user table.
Logged

Keanuette

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 34
Re: record and write user's ip?
« Reply #5 on: December 04, 2004, 08:29:01 pm »

In English please...
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 19 queries.