| Author |
Message |
Lackatee
Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
|
  Posted:
May 10, 2005 - 05:07 PM |
|
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? |
_________________

Last edited by Lackatee on May 10, 2005 - 05:08 PM; edited 1 time in total |
|
|
 |
Chestnut
Site Admin
Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
|
  Posted:
May 11, 2005 - 08:19 AM |
|
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 !
Administrator
PNConcept.com |
|
 |
 |
Lackatee
Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
|
  Posted:
May 12, 2005 - 03:00 AM |
|
You Da man! It works perfectly. When i can, ill donate you something for all your time and help. Its appreciated.  |
_________________
 |
|
|
 |
Lackatee
Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
|
  Posted:
May 12, 2005 - 03:15 AM |
|
Hey, where can i get a list of these ServerGetvar's? Or any getvars .. trying to learn.. |
_________________
 |
|
|
 |
Chestnut
Site Admin
Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
|
  Posted:
May 12, 2005 - 08:08 AM |
|
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.
 |
_________________ Chestnut !
Administrator
PNConcept.com |
|
 |
 |
Lackatee
Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
|
  Posted:
May 12, 2005 - 06:19 PM |
|
Yeah, i figured that out after i posted this. Just forgot to post about it. Thanks though.  |
_________________
 |
|
|
 |
Lackatee
Joined: Apr 26, 2005
Posts: 48
Location: Mountain View, California
Status: Offline
|
  Posted:
May 12, 2005 - 06:40 PM |
|
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  |
_________________

Last edited by Lackatee on May 12, 2005 - 06:41 PM; edited 1 time in total |
|
|
 |
Chestnut
Site Admin
Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
|
  Posted:
May 12, 2005 - 11:33 PM |
|
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 !
Administrator
PNConcept.com
Last edited by Chestnut on May 12, 2005 - 11:34 PM; edited 1 time in total |
|
 |
 |
|
|