Location: PHPKode > projects > Wexplorer > weXplorer/mime.php
<?php
/*
 * Created on 25 août 2005
 * @author Matthias Cullmann
 */

function getExtension($path){
	$path_parts = pathinfo($path);
	if(isset($path_parts['extension']))
		return $path_parts['extension'];
	return "";
}
$isInline_exts = split(',',trim(INLINE_FILE_EXTENSIONS));
function isInline($filename){
	global $isInline_exts;
	$ext = strtolower(getExtension($filename));
	if(strtoupper($filename) == "README")
		return true; 
	if (in_array($ext, $isInline_exts)) 
 		return true;
	return false;
}
 
?>
Return current item: Wexplorer