link releases to tags in CVS
[phpmyadmin/crack.git] / transformation_overview.php
blob18095142a1f8bd1fd43d770558bff63c174b4a1e
1 <?php
2 /* $Id$ */
3 // vim: expandtab sw=4 ts=4 sts=4:
5 /**
6 * Don't display the page heading
7 */
8 define('PMA_DISPLAY_HEADING', 0);
10 /**
11 * Gets some core libraries and displays a top message if required
13 require_once('./libraries/common.lib.php');
14 require_once('./libraries/header.inc.php');
15 require_once('./libraries/relation.lib.php');
16 require_once('./libraries/transformations.lib.php');
17 $cfgRelation = PMA_getRelationsParam();
19 $types = PMA_getAvailableMIMEtypes();
22 <h2><?php echo $strMIME_available_mime; ?></h2>
23 <?php
24 foreach ($types['mimetype'] AS $key => $mimetype) {
26 if (isset($types['empty_mimetype'][$mimetype])) {
27 echo '<i>' . $mimetype . '</i><br />';
28 } else {
29 echo $mimetype . '<br />';
34 <br />
35 <i>(<?php echo $strMIME_without; ?>)</i>
37 <br />
38 <br />
39 <br />
40 <h2><?php echo $strMIME_available_transform; ?></h2>
41 <table border="0" width="90%">
42 <tr>
43 <th><?php echo $strMIME_transformation; ?></th>
44 <th><?php echo $strMIME_description; ?></th>
45 </tr>
47 <?php
48 @reset($types);
49 $i = 0;
50 foreach ($types['transformation'] AS $key => $transform) {
51 $i++;
52 $func = strtolower(preg_replace('@(\.inc\.php3?)$@i', '', $types['transformation_file'][$key]));
53 $desc = 'strTransformation_' . $func;
55 <tr bgcolor="<?php echo ($i % 2 ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']); ?>">
56 <td><?php echo $transform; ?></td>
57 <td><?php echo (isset($$desc) ? $$desc : '<font size="-1"><i>' . sprintf($strMIME_nodescription, 'PMA_transformation_' . $func . '()') . '</i></font>'); ?></td>
58 </tr>
59 <?php
63 <?php
64 /**
65 * Displays the footer
67 echo "\n";
68 require_once('./libraries/footer.inc.php');