Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
LackateeOffline



Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
Post   Posted: May 10, 2005 - 05:07 PM Reply with quote Back to top

When a new user registers on my site, i have it set to send me an e-mail. But all the e-mail says is:

Code:
A new user has registered on the web site. User name: username


I was wondering how i can have it show me the IP address that the user registered with, as well.

Got any ideas?

_________________
Image


Last edited by Lackatee on May 10, 2005 - 05:08 PM; edited 1 time in total
View user's profile Send private message Visit poster's website MSN Messenger
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: May 11, 2005 - 08:19 AM Reply with quote Back to top

mmm... maybe changing the lang define _NOTIFYEMAILCONT1 would be enough :
NewUser/lang/eng/global.php

Code:

define('_NOTIFYEMAILCONT1','A new user has registered on the web site. '.pnServerGetVar('REMOTE_ADDR').' - User name: ');

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
LackateeOffline



Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
Post   Posted: May 12, 2005 - 03:00 AM Reply with quote Back to top

You Da man! It works perfectly. When i can, ill donate you something for all your time and help. Its appreciated. Smile

_________________
Image
View user's profile Send private message Visit poster's website MSN Messenger
LackateeOffline



Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
Post   Posted: May 12, 2005 - 03:15 AM Reply with quote Back to top

Hey, where can i get a list of these ServerGetvar's? Or any getvars .. trying to learn..

_________________
Image
View user's profile Send private message Visit poster's website MSN Messenger
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: May 12, 2005 - 08:08 AM Reply with quote Back to top

If you do a phpinfo on your site

Example phpinfo.php

Code:

<?php
phpinfo();
<?


the pnSerVerGetVar('xxx') will show you most of the values of the APACHE ENVIRONMENT setcion and the PHP VARIABLES sections.

Wink

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
LackateeOffline



Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
Post   Posted: May 12, 2005 - 06:19 PM Reply with quote Back to top

Yeah, i figured that out after i posted this. Just forgot to post about it. Thanks though. Smile

_________________
Image
View user's profile Send private message Visit poster's website MSN Messenger
LackateeOffline



Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
Post   Posted: May 12, 2005 - 06:40 PM Reply with quote Back to top

So if i wanted to add th auth user name is would be
Code:
'.pnRequestGetVar('authusername').'
... Th reason i ask it doesn't say _SERVER in front of it. Its _REQUEST. So I'm assuming it isn't a "Server" Var .. or is it still? Its listed under the Variables.

Thanks Smile

_________________
Image


Last edited by Lackatee on May 12, 2005 - 06:41 PM; edited 1 time in total
View user's profile Send private message Visit poster's website MSN Messenger
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: May 12, 2005 - 11:33 PM Reply with quote Back to top

mmm nope... don't think so... along with the fact that there is no pnRequestGetVar function...

Only the $_SERVER vars will be returned.

The pnVarCleanFromInput might give it to you if it is a script that saved the value in the $_REQUEST part of the superglobals.

Code:

$x = pnVarCleanFromInput('x');

_________________
Chestnut ! Cool
Administrator
PNConcept.com


Last edited by Chestnut on May 12, 2005 - 11:34 PM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ