diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 12:47:16 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-04 12:47:16 +0200 |
commit | b73c9eca744c3e75791427348fa97de279827fb7 (patch) | |
tree | 3f7f6619ac028bfca26d9aa2357905117c010b35 /index.php | |
parent | 69e49c133c7c1e7443e2bb7c2de3e1e8a3980cca (diff) |
Provide a way to hide/show the visitor IP address.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -151,9 +151,12 @@ final class LookingGlass { print '<div class="footer_bar">'; print '<p class="text-center">'; - if (isset($this->frontpage['disclaimer']) && - !empty($this->frontpage['disclaimer'])) { + if (!isset($this->frontpage['show_visitor_ip'] || + $this->frontpage['show_visitor_ip']) { print 'Your IP address: '.htmlentities($_SERVER['REMOTE_ADDR']).'<br />'; + } + + if (isset($this->frontpage['disclaimer'])) { print $this->frontpage['disclaimer']; print '<br /><br />'; } |