Searched refs:forwardedFor (Results 1 – 3 of 3) sorted by relevance
/dokuwiki/inc/ |
D | Ip.php | 179 public static function forwardedFor(): array function in dokuwiki\\Ip 184 $forwardedFor = $INPUT->server->str('HTTP_X_FORWARDED_FOR'); 186 if (empty($conf['trustedproxies']) || !$forwardedFor) { 195 $forwardedFor = explode(',', str_replace(' ', '', $forwardedFor)); 198 $clientAddress = array_shift($forwardedFor); 202 $proxies = $forwardedFor; 265 $ips = array_merge($ips, Ip::forwardedFor());
|
/dokuwiki/_test/tests/inc/ |
D | common_clientip.test.php | 89 * @param string $forwardedFor The X-Forwarded-For header. 95 …nt_ip_v4(string $remoteAddr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, … argument 108 …P_X_FORWARDED_FOR'] = str_replace(array_keys($addresses), array_values($addresses), $forwardedFor); 125 * @param string $forwardedFor The X-Forwarded-For header. 131 …nt_ip_v6(string $remoteAddr, bool $useRealIp, string $realIp, string $forwardedFor, bool $single, … argument 144 …P_X_FORWARDED_FOR'] = str_replace(array_keys($addresses), array_values($addresses), $forwardedFor);
|
D | IpTest.php | 296 $result = Ip::forwardedFor();
|