The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
Lets see, the files we would have to edit would be, newreply.php and newpost.php
First, I guess we would have to add another column to our 'post' table.. we would execute this mysql query: Code:
ALTER TABLE post ADD proxyip VARCHAR(16) not null AFTER ipaddress Code:
if ($logip==1 or $logip==2) { $ipaddress=iif(getenv("REMOTE_ADDR")!="",getenv("REMOTE_ADDR"),$HTTP_HOST); } else { $ipaddress=""; } Code:
if ($logip==1 or $logip==2) { $ipaddress=iif(getenv("REMOTE_ADDR")!="",getenv("REMOTE_ADDR"),$HTTP_HOST); if (getenv("HTTP_X_FORWARDED_FOR")!="") { $proxyip=getenv("HTTP_X_FORWARDED_FOR"); } } } else { $ipaddress=""; $proxyip=""; } Code:
if (getenv("HTTP_X_FORWARDED_FOR")!="") { $proxyip=getenv("HTTP_X_FORWARDED_FOR"); } Code:
$proxyip=iif(getenv("HTTP_X_FORWARDED_FOR")!="",getenv("HTTP_X_FORWARDED_FOR")); Now we have to add it to the sql table... |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|