2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * display list of server enignes and additonal information about them
6 * @todo falcon storage enginge is not listed under dev.mysql.com/doc/refman but dev.mysql.com/doc/falcon/
11 * no need for variables importing
14 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
15 define('PMA_NO_VARIABLES_IMPORT', true);
21 require_once './libraries/common.inc.php';
24 * Does the common work
26 require './libraries/server_common.inc.php';
27 require './libraries/StorageEngine.class.php';
33 require './libraries/server_links.inc.php';
36 * Did the user request information about a certain storage engine?
38 if (empty($_REQUEST['engine'])
39 ||
! PMA_StorageEngine
::isValid($_REQUEST['engine'])) {
42 * Displays the sub-page heading
45 . ($GLOBALS['cfg']['MainPageIconic']
46 ?
'<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
47 .' width="16" height="16" alt="" />' : '')
48 . "\n" . __('Storage Engines') . "\n"
53 * Displays the table header
57 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
58 . ' <th>' . __('Description') . '</th>' . "\n"
65 * Listing the storage engines
68 foreach (PMA_StorageEngine
::getStorageEngines() as $engine => $details) {
70 . ($odd_row ?
'odd' : 'even')
71 . ($details['Support'] == 'NO' ||
$details['Support'] == 'DISABLED'
75 . ' <td><a href="./server_engines.php'
76 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
77 . ' ' . htmlspecialchars($details['Engine']) . "\n"
79 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
83 unset($odd_row, $engine, $details);
84 echo '</tbody>' . "\n"
90 * Displays details about a given Storage Engine
93 $engine_plugin = PMA_StorageEngine
::getEngine($_REQUEST['engine']);
95 . ($GLOBALS['cfg']['MainPageIconic']
96 ?
'<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
97 .' width="16" height="16" alt="" />' : '')
98 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
99 . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
103 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
106 $infoPages = $engine_plugin->getInfoPages();
107 if (!empty($infoPages) && is_array($infoPages)) {
109 . ' <strong>[</strong>' . "\n";
110 if (empty($_REQUEST['page'])) {
111 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
113 echo ' <a href="./server_engines.php'
114 . PMA_generate_common_url(array('engine' => $_REQUEST['engine'])) . '">'
115 . __('Variables') . '</a>' . "\n";
117 foreach ($infoPages as $current => $label) {
118 echo ' <strong>|</strong>' . "\n";
119 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
120 echo ' <strong>' . $label . '</strong>' . "\n";
122 echo ' <a href="./server_engines.php'
123 . PMA_generate_common_url(
124 array('engine' => $_REQUEST['engine'], 'page' => $current))
125 . '">' . htmlspecialchars($label) . '</a>' . "\n";
128 unset($current, $label);
129 echo ' <strong>]</strong>' . "\n"
132 unset($infoPages, $page_output);
133 if (!empty($_REQUEST['page'])) {
134 $page_output = $engine_plugin->getPage($_REQUEST['page']);
136 if (!empty($page_output)) {
139 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
141 . $engine_plugin->getHtmlVariables();
148 require_once './libraries/footer.inc.php';