2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * display list of server engines and additonal information about them
10 * no need for variables importing
13 if (! defined('PMA_NO_VARIABLES_IMPORT')) {
14 define('PMA_NO_VARIABLES_IMPORT', true);
20 require_once './libraries/common.inc.php';
23 * Does the common work
25 require './libraries/server_common.inc.php';
26 require './libraries/StorageEngine.class.php';
32 require './libraries/server_links.inc.php';
35 * Did the user request information about a certain storage engine?
37 if (empty($_REQUEST['engine'])
38 ||
! PMA_StorageEngine
::isValid($_REQUEST['engine'])) {
41 * Displays the sub-page heading
44 . ($GLOBALS['cfg']['MainPageIconic'] ?
PMA_getImage('b_engine.png') : '')
45 . "\n" . __('Storage Engines') . "\n"
50 * Displays the table header
52 echo '<table class="noclick">' . "\n"
54 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
55 . ' <th>' . __('Description') . '</th>' . "\n"
62 * Listing the storage engines
65 foreach (PMA_StorageEngine
::getStorageEngines() as $engine => $details) {
67 . ($odd_row ?
'odd' : 'even')
68 . ($details['Support'] == 'NO' ||
$details['Support'] == 'DISABLED'
72 . ' <td><a href="./server_engines.php'
73 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
74 . ' ' . htmlspecialchars($details['Engine']) . "\n"
76 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
81 unset($odd_row, $engine, $details);
82 echo '</tbody>' . "\n"
88 * Displays details about a given Storage Engine
91 $engine_plugin = PMA_StorageEngine
::getEngine($_REQUEST['engine']);
93 . ($GLOBALS['cfg']['MainPageIconic'] ?
PMA_getImage('b_engine.png') : '')
94 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
95 . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
99 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
102 $infoPages = $engine_plugin->getInfoPages();
103 if (!empty($infoPages) && is_array($infoPages)) {
105 . ' <strong>[</strong>' . "\n";
106 if (empty($_REQUEST['page'])) {
107 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
109 echo ' <a href="./server_engines.php'
110 . PMA_generate_common_url(array('engine' => $_REQUEST['engine'])) . '">'
111 . __('Variables') . '</a>' . "\n";
113 foreach ($infoPages as $current => $label) {
114 echo ' <strong>|</strong>' . "\n";
115 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
116 echo ' <strong>' . $label . '</strong>' . "\n";
118 echo ' <a href="./server_engines.php'
119 . PMA_generate_common_url(
120 array('engine' => $_REQUEST['engine'], 'page' => $current))
121 . '">' . htmlspecialchars($label) . '</a>' . "\n";
124 unset($current, $label);
125 echo ' <strong>]</strong>' . "\n"
128 unset($infoPages, $page_output);
129 if (!empty($_REQUEST['page'])) {
130 $page_output = $engine_plugin->getPage($_REQUEST['page']);
132 if (!empty($page_output)) {
135 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
137 . $engine_plugin->getHtmlVariables();
144 require './libraries/footer.inc.php';