3.1.3.1
[phpmyadmin/crack.git] / transformation_overview.php
blobd6b5989d2d49858a9155fcc1602aaa493fb833e3
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
5 * @version $Id$
6 */
8 /**
9 * Don't display the page heading
11 define('PMA_DISPLAY_HEADING', 0);
13 /**
14 * Gets some core libraries and displays a top message if required
16 require_once './libraries/common.inc.php';
17 require_once './libraries/header.inc.php';
18 require_once './libraries/transformations.lib.php';
20 $types = PMA_getAvailableMIMEtypes();
23 <h2><?php echo $strMIME_available_mime; ?></h2>
24 <?php
25 foreach ($types['mimetype'] as $key => $mimetype) {
27 if (isset($types['empty_mimetype'][$mimetype])) {
28 echo '<i>' . $mimetype . '</i><br />';
29 } else {
30 echo $mimetype . '<br />';
35 <br />
36 <i>(<?php echo $strMIME_without; ?>)</i>
38 <br />
39 <br />
40 <br />
41 <h2><?php echo $strMIME_available_transform; ?></h2>
42 <table border="0" width="90%">
43 <thead>
44 <tr>
45 <th><?php echo $strMIME_transformation; ?></th>
46 <th><?php echo $strMIME_description; ?></th>
47 </tr>
48 </thead>
49 <tbody>
50 <?php
51 $odd_row = true;
52 foreach ($types['transformation'] as $key => $transform) {
53 $func = strtolower(str_ireplace('.inc.php', '', $types['transformation_file'][$key]));
54 $desc = 'strTransformation_' . $func;
56 <tr class="<?php echo $odd_row ? 'odd' : 'even'; ?>">
57 <td><?php echo $transform; ?></td>
58 <td><?php echo (isset($$desc) ? $$desc : '<i>' . sprintf($strMIME_nodescription, 'PMA_transformation_' . $func . '()') . '</i>'); ?></td>
59 </tr>
60 <?php
61 $odd_row = !$odd_row;
64 </tbody>
65 </table>
67 <?php
68 /**
69 * Displays the footer
71 require_once './libraries/footer.inc.php';