diff options
author | Romain Boissat rboissat <rboissat@lv0.in> | 2014-08-05 10:55:02 +0200 |
---|---|---|
committer | Romain Boissat rboissat <rboissat@lv0.in> | 2014-08-05 10:55:02 +0200 |
commit | c264b14b390d78c2146cb500e06683f504f8aef1 (patch) | |
tree | 3c280bf8d22d618dde1122915a72f2b0b41ab86b /index.php | |
parent | 592b22a06433ab3aa66f39f5c462af074ed6c992 (diff) | |
parent | acce675f40b52560881677ace989902a28ba4c23 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -157,11 +157,11 @@ final class LookingGlass { if (!isset($this->frontpage['show_visitor_ip']) || $this->frontpage['show_visitor_ip']) { - if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { - print 'Your IP address: '.htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']).'<br />'; - } else { - print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'<br />'; - } + if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { + print 'Your IP address: '.htmlentities($_SERVER['HTTP_X_FORWARDED_FOR']).'<br />'; + } else { + print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'<br />'; + } } if (isset($this->frontpage['disclaimer'])) { |