If your reverse proxy supports this header, simply add this to your client:
PHP Code:
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_X_REAL_IP"];
mysql_query("UPDATE users SET ip_last = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE username = '" . USER_ID . "'");
// If your CMS doesn't support USER_ID, find another identifier for that specific user.
I recommend you add that to your global.php.
Warning: Be sure that you don't have $_SERVER["remote_addr"] set to another variable. In addition, if you use CloudFlare, this could turn up some problems, as the IP's will turn into CloudFlare's

Originally Posted by
Luminia
Yeah, I'm very early with my answer. I know!
To the question: "Who the hell uses Phoenix".
Some Hotels use Phoenix, the reason for that is: Phoenix is stabil, and don't have a hundred of bugs how butterstorm, and the other shit.
I think that's the most hilarious spelling of stable I've ever seen.