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']
45 ?
'<img class="icon ic_b_engine" src="themes/dot.gif" alt="" />' : '')
46 . "\n" . __('Storage Engines') . "\n"
51 * Displays the table header
53 echo '<table class="noclick">' . "\n"
55 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
56 . ' <th>' . __('Description') . '</th>' . "\n"
63 * Listing the storage engines
66 foreach (PMA_StorageEngine
::getStorageEngines() as $engine => $details) {
68 . ($odd_row ?
'odd' : 'even')
69 . ($details['Support'] == 'NO' ||
$details['Support'] == 'DISABLED'
73 . ' <td><a href="./server_engines.php'
74 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
75 . ' ' . htmlspecialchars($details['Engine']) . "\n"
77 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
82 $PMA_Config = $GLOBALS['PMA_Config'];
83 if ($PMA_Config->get('BLOBSTREAMING_PLUGINS_EXIST')) {
84 // Special case for PBMS daemon which is not listed as an engine
86 . ($odd_row ?
'odd' : 'even')
88 . ' <td><a href="./server_engines.php'
89 . PMA_generate_common_url(array('engine' => "PBMS")) . '">' . "\n"
92 . ' <td>' . htmlspecialchars("PrimeBase MediaStream (PBMS) daemon") . '</td>' . "\n"
96 unset($odd_row, $engine, $details);
97 echo '</tbody>' . "\n"
103 * Displays details about a given Storage Engine
106 $engine_plugin = PMA_StorageEngine
::getEngine($_REQUEST['engine']);
108 . ($GLOBALS['cfg']['MainPageIconic']
109 ?
'<img class="icon ic_b_engine" src="themes/dot.gif" alt="" />' : '')
110 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
111 . ' ' . PMA_showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
115 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
118 $infoPages = $engine_plugin->getInfoPages();
119 if (!empty($infoPages) && is_array($infoPages)) {
121 . ' <strong>[</strong>' . "\n";
122 if (empty($_REQUEST['page'])) {
123 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
125 echo ' <a href="./server_engines.php'
126 . PMA_generate_common_url(array('engine' => $_REQUEST['engine'])) . '">'
127 . __('Variables') . '</a>' . "\n";
129 foreach ($infoPages as $current => $label) {
130 echo ' <strong>|</strong>' . "\n";
131 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
132 echo ' <strong>' . $label . '</strong>' . "\n";
134 echo ' <a href="./server_engines.php'
135 . PMA_generate_common_url(
136 array('engine' => $_REQUEST['engine'], 'page' => $current))
137 . '">' . htmlspecialchars($label) . '</a>' . "\n";
140 unset($current, $label);
141 echo ' <strong>]</strong>' . "\n"
144 unset($infoPages, $page_output);
145 if (!empty($_REQUEST['page'])) {
146 $page_output = $engine_plugin->getPage($_REQUEST['page']);
148 if (!empty($page_output)) {
151 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
153 . $engine_plugin->getHtmlVariables();
160 require './libraries/footer.inc.php';