wok-current diff zerobin/stuff/zerobin.u @ rev 25560
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 25 18:09:10 2023 +0000 (20 months ago) |
parents | 8fd5d4c953f6 |
children |
line diff
1.1 --- a/zerobin/stuff/zerobin.u Tue Oct 04 15:58:11 2016 +0200 1.2 +++ b/zerobin/stuff/zerobin.u Tue Apr 25 18:09:10 2023 +0000 1.3 @@ -6,8 +6,8 @@ 1.4 1.5 +function remote_address() 1.6 +{ 1.7 -+ // if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) 1.8 -+ // return $_SERVER["HTTP_X_FORWARDED_FOR"]; 1.9 ++ if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])) 1.10 ++ return $_SERVER["HTTP_X_FORWARDED_FOR"]; 1.11 + return $_SERVER["REMOTE_ADDR"]; 1.12 +} 1.13 +