Home : Products : Links 2.0 : Customization :

Products: Links 2.0: Customization: Re: [Andy] Adding Ip address to Registration Process: Edit Log

Here is the list of edits for this post
Re: [Andy] Adding Ip address to Registration Process
Adding your link or registering your link, I consider both to mean the same thing. Sorry that is just my feeble mind managing everything according to me. I already have a line in add.cgi that collects the ip address ( I think perlflunkie provided it for me) In case anyone else wants to add it I've provided it below. My problem is resolved. I had just misconfigured my email address for admin. Thanks for taking the time to try and help me Andy, it is much appreciated.
Code:
# --------------------------------------------------------
# Sends an email to the admin, letting him know that there is
# a new link waiting to be validated. No error checking as we don't
# want users to see the informative &cgierr output.
# Check to make sure that there is an admin email address defined.
$db_admin_email or &cgierr("Admin Email Address Not Defined in config file!");
my $to = $db_admin_email;
my $from = $in{$db_cols[$db_contact_email]};
my $subject = "Addition to Database: $in{'Title'}\n";
my $msg = qq|
The following link is awaiting validation:
Title: $in{'Title'}
URL: $in{'URL'}
Category: $in{'Category'}
Description: $in{'Description'}
Contact Name: $in{'Contact Name'}
Contact Email: $in{'Contact Email'}

Remote Host: $ENV{'REMOTE_HOST'}
Referer: $ENV{'HTTP_REFERER'}
Ip Address: $ENV{'REMOTE_ADDR'}

To validate, please go to:
$db_script_url

Sincerely,
Links Manager.
|;
Nootkan

Last edited by:

nootkan: Jan 16, 2009, 12:27 AM

Edit Log: