2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * display list of server engines and additonal information about them
12 require_once 'libraries/common.inc.php';
15 * Does the common work
17 require 'libraries/server_common.inc.php';
18 require 'libraries/StorageEngine.class.php';
21 * Did the user request information about a certain storage engine?
23 if (empty($_REQUEST['engine'])
24 ||
! PMA_StorageEngine
::isValid($_REQUEST['engine'])
28 * Displays the sub-page heading
31 . PMA_Util
::getImage('b_engine.png')
32 . "\n" . __('Storage Engines') . "\n"
37 * Displays the table header
39 echo '<table class="noclick">' . "\n"
41 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
42 . ' <th>' . __('Description') . '</th>' . "\n"
49 * Listing the storage engines
52 foreach (PMA_StorageEngine
::getStorageEngines() as $engine => $details) {
54 . ($odd_row ?
'odd' : 'even')
55 . ($details['Support'] == 'NO' ||
$details['Support'] == 'DISABLED'
59 . ' <td><a rel="newpage" href="server_engines.php'
60 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
61 . ' ' . htmlspecialchars($details['Engine']) . "\n"
63 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
68 unset($odd_row, $engine, $details);
69 echo '</tbody>' . "\n"
75 * Displays details about a given Storage Engine
78 $engine_plugin = PMA_StorageEngine
::getEngine($_REQUEST['engine']);
80 . PMA_Util
::getImage('b_engine.png')
81 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
82 . ' ' . PMA_Util
::showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
86 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
89 $infoPages = $engine_plugin->getInfoPages();
90 if (! empty($infoPages) && is_array($infoPages)) {
92 . ' <strong>[</strong>' . "\n";
93 if (empty($_REQUEST['page'])) {
94 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
96 echo ' <a href="server_engines.php'
97 . PMA_generate_common_url(array('engine' => $_REQUEST['engine']))
98 . '">' . __('Variables') . '</a>' . "\n";
100 foreach ($infoPages as $current => $label) {
101 echo ' <strong>|</strong>' . "\n";
102 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
103 echo ' <strong>' . $label . '</strong>' . "\n";
105 echo ' <a href="server_engines.php'
106 . PMA_generate_common_url(
107 array('engine' => $_REQUEST['engine'], 'page' => $current)
109 . '">' . htmlspecialchars($label) . '</a>' . "\n";
112 unset($current, $label);
113 echo ' <strong>]</strong>' . "\n"
116 unset($infoPages, $page_output);
117 if (! empty($_REQUEST['page'])) {
118 $page_output = $engine_plugin->getPage($_REQUEST['page']);
120 if (! empty($page_output)) {
123 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
125 . $engine_plugin->getHtmlVariables();