2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * object the server plugin page
12 require_once 'libraries/common.inc.php';
17 $response = PMA_Response
::getInstance();
18 $header = $response->getHeader();
19 $scripts = $header->getScripts();
20 $scripts->addFile('jquery/jquery.tablesorter.js');
21 $scripts->addFile('server_plugins.js');
24 * Does the common work
26 require 'libraries/server_common.inc.php';
27 require 'libraries/server_plugins.lib.php';
32 $sql = "SELECT p.plugin_name, p.plugin_type, p.is_active, m.module_name,
33 m.module_library, m.module_version, m.module_author,
34 m.module_description, m.module_license
35 FROM data_dictionary.plugins p
36 JOIN data_dictionary.modules m USING (module_name)
37 ORDER BY m.module_name, p.plugin_type, p.plugin_name";
38 $res = $GLOBALS['dbi']->query($sql);
41 while ($row = $GLOBALS['dbi']->fetchAssoc($res)) {
42 $plugins[$row['plugin_type']][] = $row;
43 $modules[$row['module_name']]['info'] = $row;
44 $modules[$row['module_name']]['plugins'][$row['plugin_type']][] = $row;
46 $GLOBALS['dbi']->freeResult($res);
48 // sort plugin list (modules are already sorted)
54 $response->addHTML(PMA_getHtmlForSubPageHeader('plugins'));
55 $response->addHTML(PMA_getPluginAndModuleInfo($plugins, $modules));