I will start using Cloudflare soon and because all IPs are the same for every visitor i need to rewrite these to the real ones given in a special HTTP header by cloudflare. To make the IPs visible to dolphin system wide i need to run this code on every page that is called
if ($_SERVER["HTTP_CF_CONNECTING_IP"]) {
$_SERVER["REMOTE_ADDR"] = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
Where is the correct place to put such a code? Anybody knows?