coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on July 28, 2004, 09:05:22 PM

Title: record and write user's ip?
Post by: bit bit spears 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
Title: Re: record and write user's ip?
Post by: Nibbler 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.
Title: Re: record and write user's ip?
Post by: bit bit spears 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
Title: Re: record and write user's ip?
Post by: Keanuette on September 19, 2004, 10:41:53 PM
I would like to know this also.  Thank you...:)
Title: Re: record and write user's ip?
Post by: radianation 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.
Title: Re: record and write user's ip?
Post by: Keanuette on December 04, 2004, 08:29:01 PM
In English please...