2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Lists available transformation plugins
9 use PhpMyAdmin\Response
;
10 use PhpMyAdmin\Transformations
;
13 * Gets some core libraries and displays a top message if required
15 require_once './libraries/common.inc.php';
17 $response = Response
::getInstance();
18 $header = $response->getHeader();
19 $header->disableMenuAndConsole();
21 $types = Transformations
::getAvailableMIMEtypes();
24 <h2
><?php
echo __('Available MIME types'); ?
></h2
>
26 foreach ($types['mimetype'] as $key => $mimetype) {
28 if (isset($types['empty_mimetype'][$mimetype])) {
29 echo '<i>' , htmlspecialchars($mimetype) , '</i><br />';
31 echo htmlspecialchars($mimetype) , '<br />';
35 $transformation_types = array(
36 'transformation', 'input_transformation'
39 'transformation' => __('Available browser display transformations'),
40 'input_transformation' => __('Available input transformations')
43 'transformation' => __('Browser display transformation'),
44 'input_transformation' => __('Input transformation')
48 <?php
foreach ($transformation_types as $ttype) { ?
>
49 <a name
="<?php echo $ttype; ?>"></a
>
50 <h2
><?php
echo $label[$ttype] ?
></h2
>
54 <th
><?php
echo $th[$ttype] ?
></th
>
55 <th
><?php
echo _pgettext('for MIME transformation', 'Description'); ?
></th
>
60 foreach ($types[$ttype] as $key => $transform) {
61 $desc = Transformations
::getDescription($types[$ttype . '_file'][$key]);
64 <td
><?php
echo htmlspecialchars($transform); ?
></td
>
65 <td
><?php
echo htmlspecialchars($desc); ?
></td
>
73 } // End of foreach ($transformation_types)