2 /* vim: set expandtab sw=4 ts=4 sts=4: */
9 * no need for variables importing
12 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
13 define('PMA_NO_VARIABLES_IMPORT', true);
19 require_once './libraries/common.inc.php';
22 * Does the common work
24 require './libraries/server_common.inc.php';
30 require './libraries/server_links.inc.php';
34 * Displays the sub-page heading
37 . ($GLOBALS['cfg']['MainPageIconic']
38 ?
'<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
39 .' width="16" height="16" alt="" />' : '')
40 . "\n" . __('Plugins') . "\n"
47 $sql = "SELECT p.plugin_name, p.plugin_type, p.is_active, m.module_name, m.module_library,
48 m.module_version, m.module_author, m.module_description, m.module_license
49 FROM data_dictionary.plugins p
50 JOIN data_dictionary.modules m USING (module_name)
51 ORDER BY m.module_name, p.plugin_type, p.plugin_name";
52 $res = PMA_DBI_query($sql);
54 while ($row = PMA_DBI_fetch_assoc($res)) {
55 $modules[$row['module_name']]['info'] = $row;
56 $modules[$row['module_name']]['plugins'][$row['plugin_type']][] = $row;
58 PMA_DBI_free_result($res);
67 <th
><?php
echo __('Module'); ?
></th
>
68 <th
><?php
echo __('Description'); ?
></th
>
69 <th
><?php
echo __('Library'); ?
></th
>
70 <th
><?php
echo __('Version'); ?
></th
>
71 <th
><?php
echo __('Author'); ?
></th
>
72 <th
><?php
echo __('License'); ?
></th
>
78 foreach ($modules as $module_name => $module) {
81 <tr
class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
82 <th rowspan
="2"><?php
echo htmlspecialchars($module_name); ?
></th
>
83 <td
><?php
echo htmlspecialchars($module['info']['module_description']); ?
></td
>
84 <td
><?php
echo htmlspecialchars($module['info']['module_library']); ?
></td
>
85 <td
><?php
echo htmlspecialchars($module['info']['module_version']); ?
></td
>
86 <td
><?php
echo htmlspecialchars($module['info']['module_author']); ?
></td
>
87 <td
><?php
echo htmlspecialchars($module['info']['module_license']); ?
></td
>
89 <tr
class="noclick <?php echo $odd_row ? 'odd' : 'even'; ?>">
94 foreach ($module['plugins'] as $plugin_type => $plugin_list) {
97 <td
><b
class="plugin-type"><?php
echo htmlspecialchars($plugin_type); ?
></b
></td
>
100 for ($i = 0; $i < count($plugin_list); $i++
) {
101 echo ($i != 0 ?
'<br />' : '') . htmlspecialchars($plugin_list[$i]['plugin_name']);
102 if (!$plugin_list[$i]['is_active']) {
103 echo ' <small class="attention">' . __('disabled') . '</small>';
125 require './libraries/footer.inc.php';