getHeader(); $scripts = $header->getScripts(); $scripts->addFile('jquery/jquery.tablesorter.js'); $scripts->addFile('server_plugins.js'); /** * Does the common work */ require 'libraries/server_common.inc.php'; /** * Displays the sub-page heading */ echo '

' . "\n" . PMA_Util::getImage('b_engine.png') . "\n" . __('Plugins') . "\n" . '

' . "\n"; /** * Prepare plugin list */ $sql = "SELECT p.plugin_name, p.plugin_type, p.is_active, m.module_name, m.module_library, m.module_version, m.module_author, m.module_description, m.module_license FROM data_dictionary.plugins p JOIN data_dictionary.modules m USING (module_name) ORDER BY m.module_name, p.plugin_type, p.plugin_name"; $res = PMA_DBI_query($sql); $plugins = array(); $modules = array(); while ($row = PMA_DBI_fetch_assoc($res)) { $plugins[$row['plugin_type']][] = $row; $modules[$row['module_name']]['info'] = $row; $modules[$row['module_name']]['plugins'][$row['plugin_type']][] = $row; } PMA_DBI_free_result($res); // sort plugin list (modules are already sorted) ksort($plugins); /** * Displays the page */ ?>

$plugin_list) { $key = 'plugins-' . preg_replace('/[^a-z]/', '', strtolower($plugin_type)); sort($plugin_list); ?>
$module) { $odd_row = !$odd_row; ?>
$plugin_list) { ?>
' : '') . htmlspecialchars($plugin_list[$i]['plugin_name']); if (!$plugin_list[$i]['is_active']) { echo ' ' . __('disabled') . ''; } } ?>