Exemplo n.º 1
0
Arquivo: App.php Projeto: ddliu/airdoc
 protected function handleStatic($path, $currentInfo)
 {
     $mimetype = MimeType::getMimeType($path);
     header('Content-Type: ' . $mimetype);
     readfile($currentInfo);
 }
	/**
	 * Gets the MIME type of the embedded or inline image
	 * @param string File extension
	 * @access public
	 * @return string MIME type of ext
	 * @static
	 */
	public static function _mime_types($ext = '') {
		$mimeType = MimeType::getMimeType($ext);
		return ($mimeType === null) ? 'application/octet-stream' : $mimeType;
	}