Collect IP Addresses at Registration (Technics)
Hi,
I don't validate the following changes!!!
Open the includes/register.inc.php
line 184ff and replace with:
if($settings['register_mode']==1) $new_user_notif_txt = $lang['new_user_notif_txt_locked']; else $new_user_notif_txt = $lang['new_user_notif_txt']; $new_user_notif_txt = str_replace("[name]", $data['user_name'], $new_user_notif_txt); $new_user_notif_txt = str_replace("[email]", $data['user_email'], $new_user_notif_txt); $new_user_notif_txt = str_replace("[ip]", htmlspecialchars($_SERVER["REMOTE_ADDR"]), $new_user_notif_txt); $new_user_notif_txt = str_replace("[user_link]", $settings['forum_address']."index.php?mode=user&show_user=".$id, $new_user_notif_txt);
The new Line is:
$new_user_notif_txt = str_replace("[ip]", htmlspecialchars($_SERVER["REMOTE_ADDR"]), $new_user_notif_txt);
Additional, you have to add the keyword [ip]
to your lang
-Files.
Look for new_user_notif_txt
and new_user_notif_txt_locked
, respectively and add this keyword e.g.:
new_user_notif_txt_locked = """Hi [recipient],
a new user has subscribed to the forum.
User name: [name]
E-mail: [email]
User-Ip: [ip]
...
Hope it works...
regards Micha
--
applied-geodesy.org - OpenSource Least-Squares Adjustment Software for Geodetic Sciences