protected function checkIPv6($UserIP = false)
	{
		// Check if IP present
		if ($UserIP === false)
		{
			return false; // No IP, no search.
		}
		// search for user bot IP-filter definitions in localconfig.php
		if (isset($GLOBALS['DLSTATS']['BOT_IPV6']))
		{
			foreach ($GLOBALS['DLSTATS']['BOT_IPV6'] as $lineleft)
			{
				$network = explode("/", trim($lineleft));
				if (! isset($network[1]))
				{
					$network[1] = 128;
				}
				if ($this->dlstatsIPv6InNetwork($UserIP, $network[0], $network[1]))
				{
					return true; // IP found
				}
			}
		}
		return false;
	}
protected function checkIPv6($UserIP = false)
	{
		// Check if IP present
		if ($UserIP === false)
		{
			return false; // No IP, no search.
		}
		// search for user bot IP-filter definitions in localconfig.php
		if (isset($GLOBALS['DLSTATS']['BOT_IPV6']))
		{
			foreach ($GLOBALS['DLSTATS']['BOT_IPV6'] as $lineleft)
			{
				$network = explode("/", trim($lineleft));
				if (! isset($network[1]))
				{
					$network[1] = 128;
				}
				if ($this->dlstatsIPv6InNetwork($UserIP, $network[0], $network[1]))
				{
					return true; // IP found
				}
			}
		}
		return false;
	}
protected function checkIPv6 ( $ UserIP = false ) { // Check if IP present if ( $ UserIP === false ) { return false ; // No IP, no search. } // search for user bot IP-filter definitions in localconfig.php if ( isset ( $ GLOBALS [ 'DLSTATS' ] [ 'BOT_IPV6' ] ) ) { foreach ( $ GLOBALS [ 'DLSTATS' ] [ 'BOT_IPV6' ] as $ lineleft ) { $ network = explode ( "/" , trim ( $ lineleft ) ) ; if ( ! isset ( $ network [ 1 ] ) ) { $ network [ 1 ] = 128 ; } if ( $ this -> dlstatsIPv6InNetwork ( $ UserIP , $ network [ 0 ] , $ network [ 1 ] ) ) { return true ; // IP found } } } return false ; }
IP Check for IPv6

@param string   User IP
@return boolean true when own IP found in localconfig definitions
@access protected
IP Check for IPv6