english/libraries/joomla/installer/installer.php
/**
	 * Loads an MD5SUMS file into an associative array
	 * @param   string Filename to load
	 * @return  array    Associative array with filenames as the index and the MD5 as the value
	 */
Loads an MD5SUMS file into an associative array
@param   string Filename to load
@return  array    Associative array with filenames as the index and the MD5 as the value
Loads an MD5SUMS file into an associative array @param string Filename to load @return array Associative array with filenames as the index and the MD5 as the value
function loadMD5Sum($filename)
	{
		if (!file_exists($filename)) {
			return false; 
		}
		$data = file($filename, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
		$retval = Array();
		foreach ($data as $row)
		{
			$results = explode('  ', $row); 
			$results[1] = str_replace('./','', $results[1]); 
			$retval[$results[1]] = $results[0]; 
		}
		return $retval;
	}
function loadMD5Sum ( $ filename ) { if ( ! file_exists ( $ filename ) ) { return false ; } $ data = file ( $ filename , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ) ; $ retval = Array ( ) ; foreach ( $ data as $ row ) { $ results = explode ( '  ' , $ row ) ; $ results [ 1 ] = str_replace ( './' , '' , $ results [ 1 ] ) ; $ retval [ $ results [ 1 ] ] = $ results [ 0 ] ; } return $ retval ; }
Loads an MD5SUMS file into an associative array
 @param   string Filename to load
 @return  array    Associative array with filenames as the index and the MD5 as the value
Loads an MD5SUMS file into an associative array @param string Filename to load @return array Associative array with filenames as the index and the MD5 as the value
// bail if the file doesn't exist // split up the data // cull any potential prefix // throw into the array