src/FS/File/Log/Tracker/Reader.php
public function getReferers( $skip )
	{
		$referers		= array();
		foreach( $this->data as $entry )
		{
			if( $entry['remote_addr'] != $this->skip )
			{
				if( $entry['referer_uri'] && !preg_match( "#.*".$skip.".*#si", $entry['referer_uri'] ) )
				{
					if( isset( $referers[$entry['referer_uri']] ) )
						$referers[$entry['referer_uri']] ++;
					else
						$referers[$entry['referer_uri']]	= 1;
				}
			}
		}
		arsort( $referers );
		foreach( $referers as $referer => $count )
			$lines[]	= "<tr><td>".$referer."</td><td>".$count."</td></tr>";
		$lines	= implode( "\n\t", $lines );
		$content	= "<table>".$lines."</table>";
		return $content;
	}
public function getReferers( $skip )
	{
		$referers		= array();
		foreach( $this->data as $entry )
		{
			if( $entry['remote_addr'] != $this->skip )
			{
				if( $entry['referer_uri'] && !preg_match( "#.*".$skip.".*#si", $entry['referer_uri'] ) )
				{
					if( isset( $referers[$entry['referer_uri']] ) )
						$referers[$entry['referer_uri']] ++;
					else
						$referers[$entry['referer_uri']]	= 1;
				}
			}
		}
		arsort( $referers );
		foreach( $referers as $referer => $count )
			$lines[]	= "<tr><td>".$referer."</td><td>".$count."</td></tr>";
		$lines	= implode( "\n\t", $lines );
		$content	= "<table>".$lines."</table>";
		return $content;
	}
public function getReferers ( $ skip ) { $ referers = array ( ) ; foreach ( $ this -> data as $ entry ) { if ( $ entry [ 'remote_addr' ] != $ this -> skip ) { if ( $ entry [ 'referer_uri' ] && ! preg_match ( "#.*" . $ skip . ".*#si" , $ entry [ 'referer_uri' ] ) ) { if ( isset ( $ referers [ $ entry [ 'referer_uri' ] ] ) ) $ referers [ $ entry [ 'referer_uri' ] ] ++ ; else $ referers [ $ entry [ 'referer_uri' ] ] = 1 ; } } } arsort ( $ referers ) ; foreach ( $ referers as $ referer => $ count ) $ lines [ ] = "<tr><td>" . $ referer . "</td><td>" . $ count . "</td></tr>" ; $ lines = implode ( "\n\t" , $ lines ) ; $ content = "<table>" . $ lines . "</table>" ; return $ content ; }
Returns Referers of unique Visitors.
@access		public
@return 	array
Returns Referers of unique Visitors .