2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * display list of server enignes and additonal information about them
7 * @todo falcon storage enginge is not listed under dev.mysql.com/doc/refman but dev.mysql.com/doc/falcon/
12 * no need for variables importing
15 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
16 define('PMA_NO_VARIABLES_IMPORT', true);
22 require_once './libraries/common.inc.php';
25 * Does the common work
27 require './libraries/server_common.inc.php';
28 require './libraries/StorageEngine.class.php';
34 require './libraries/server_links.inc.php';
37 * Did the user request information about a certain storage engine?
39 if (empty($_REQUEST['engine'])
40 ||
! PMA_StorageEngine
::isValid($_REQUEST['engine'])) {
43 * Displays the sub-page heading
46 . ($GLOBALS['cfg']['MainPageIconic']
47 ?
'<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
48 .' width="16" height="16" alt="" />' : '')
49 . "\n" . __('Storage Engines') . "\n"
54 * Displays the table header
58 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
59 . ' <th>' . __('Description') . '</th>' . "\n"
66 * Listing the storage engines
69 foreach (PMA_StorageEngine
::getStorageEngines() as $engine => $details) {
71 . ($odd_row ?
'odd' : 'even')
72 . ($details['Support'] == 'NO' ||
$details['Support'] == 'DISABLED'
76 . ' <td><a href="./server_engines.php'
77 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
78 . ' ' . htmlspecialchars($details['Engine']) . "\n"
80 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
84 unset($odd_row, $engine, $details);
85 echo '</tbody>' . "\n"
91 * Displays details about a given Storage Engine
94 $engine_plugin = PMA_StorageEngine
::getEngine($_REQUEST['engine']);
96 . ($GLOBALS['cfg']['MainPageIconic']
97 ?
'<img class="icon" src="' . $pmaThemeImage . 'b_engine.png"'
98 .' width="16" height="16" alt="" />' : '')
99 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
100 . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
104 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
107 $infoPages = $engine_plugin->getInfoPages();
108 if (!empty($infoPages) && is_array($infoPages)) {
110 . ' <strong>[</strong>' . "\n";
111 if (empty($_REQUEST['page'])) {
112 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
114 echo ' <a href="./server_engines.php'
115 . PMA_generate_common_url(array('engine' => $_REQUEST['engine'])) . '">'
116 . __('Variables') . '</a>' . "\n";
118 foreach ($infoPages as $current => $label) {
119 echo ' <strong>|</strong>' . "\n";
120 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
121 echo ' <strong>' . $label . '</strong>' . "\n";
123 echo ' <a href="./server_engines.php'
124 . PMA_generate_common_url(
125 array('engine' => $_REQUEST['engine'], 'page' => $current))
126 . '">' . htmlspecialchars($label) . '</a>' . "\n";
129 unset($current, $label);
130 echo ' <strong>]</strong>' . "\n"
133 unset($infoPages, $page_output);
134 if (!empty($_REQUEST['page'])) {
135 $page_output = $engine_plugin->getPage($_REQUEST['page']);
137 if (!empty($page_output)) {
140 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
142 . $engine_plugin->getHtmlVariables();
149 require_once './libraries/footer.inc.php';