Home
last modified time | relevance | path

Searched refs:ips (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/inc/
H A DIp.php257 $ips = [];
261 $ips[] = $INPUT->server->str('HTTP_X_REAL_IP');
265 $ips = array_merge($ips, Ip::forwardedFor());
268 $ips[] = $INPUT->server->str('REMOTE_ADDR');
271 $ips = array_filter($ips, static fn($ip) => filter_var($ip, FILTER_VALIDATE_IP));
274 $ips = array_values(array_unique($ips));
277 if (!$ips) {
278 $ips[] = '0.0.0.0';
281 return $ips;
H A Dcommon.php858 * @param string $ips comma separated list of IP addresses
863 function gethostsbyaddrs($ips) argument
866 if (!$conf['dnslookups']) return $ips;
869 $ips = explode(',', $ips);
871 if (is_array($ips)) {
872 foreach ($ips as $ip) {
877 return gethostbyaddr(trim($ips));