ALTER TABLE post ADD proxyip VARCHAR(16) not null AFTER ipaddress
if ($logip==1 or $logip==2) { $ipaddress=iif(getenv("REMOTE_ADDR")!="",getenv("REMOTE_ADDR"),$HTTP_HOST); } else { $ipaddress=""; }
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=""; }
if (getenv("HTTP_X_FORWARDED_FOR")!="") { $proxyip=getenv("HTTP_X_FORWARDED_FOR"); }
$proxyip=iif(getenv("HTTP_X_FORWARDED_FOR")!="",getenv("HTTP_X_FORWARDED_FOR"));