Cpanel::Mime::listmime

This article documents the usage of the Cpanel::Mime::listmime function in relation to the cPanel interface. This tag can be used inside cPanel pages.


SYNOPSIS

Cpanel::Mime::listmime


DESCRIPTION

This function outputs user and system defined MIME types for a domain.


VARIABLES

INPUT

system (string)
Controls the ouput of system defined MIME types. If system=no is present, system defined MIME types will not be displayed.

user (string)
Controls the ouput of user defined MIME types. If user=no is present, user defined MIME types will not be displayed.

OUTPUT

type (string)
Name of the MIME type

ext (string)
File extension(s) associated with the MIME type. Format: .extension


EXAMPLES

<?cp Mime::listmime(% %,type,ext) system=no ?>

This example will output the names and associated extensions for all user defined MIME types for a domain.


COPYRIGHT

Copyright 2007 cPanel Inc.