Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 130 lines (116 sloc) 4.036 kb
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
1 <?php
817e790 synced/fixed vim line
Sebastian Mendel authored
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
3 /**
56ebe05 Marc Delisle blob streaming code cleanup (work in progress)
lem9 authored
4 * display list of server engines and additonal information about them
374abd5 fixed/added page level docblock
Sebastian Mendel authored
5 *
e56949f Michal Čihař Use package name PhpMyAdmin
nijel authored
6 * @package PhpMyAdmin
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
7 */
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
8
374abd5 fixed/added page level docblock
Sebastian Mendel authored
9 /**
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
10 * requirements
11 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
12 require_once 'libraries/common.inc.php';
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
13
14 /**
15 * Does the common work
16 */
b2fd866 Leading ./ paths for includes can be omitted, part 2
Jo Michael authored
17 require 'libraries/server_common.inc.php';
18 require 'libraries/StorageEngine.class.php';
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
19
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
20 /**
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
21 * Did the user request information about a certain storage engine?
22 */
cfeb306 coding standard: no spaces inside braces
Sebastian Mendel authored
23 if (empty($_REQUEST['engine'])
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
24 || ! PMA_StorageEngine::isValid($_REQUEST['engine'])
25 ) {
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
26
27 /**
28 * Displays the sub-page heading
29 */
30 echo '<h2>' . "\n"
e6894be Chanaka Indrajith Dharmarathna Renamed ->method() with PMA_Util::method()
Chanaka authored
31 . PMA_Util::getImage('b_engine.png')
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
32 . "\n" . __('Storage Engines') . "\n"
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
33 . '</h2>' . "\n";
34
35
36 /**
37 * Displays the table header
38 */
0427378 Piotr Przybylski Allow to use noclick class on table level
Crack authored
39 echo '<table class="noclick">' . "\n"
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
40 . '<thead>' . "\n"
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
41 . '<tr><th>' . __('Storage Engine') . '</th>' . "\n"
42 . ' <th>' . __('Description') . '</th>' . "\n"
9f6d597 removed MySQL < 5 code
Sebastian Mendel authored
43 . '</tr>' . "\n"
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
44 . '</thead>' . "\n"
45 . '<tbody>' . "\n";
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
46
47
48 /**
49 * Listing the storage engines
50 */
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
51 $odd_row = true;
573a616 fixed code indention
Sebastian Mendel authored
52 foreach (PMA_StorageEngine::getStorageEngines() as $engine => $details) {
0427378 Piotr Przybylski Allow to use noclick class on table level
Crack authored
53 echo '<tr class="'
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
54 . ($odd_row ? 'odd' : 'even')
55 . ($details['Support'] == 'NO' || $details['Support'] == 'DISABLED'
56 ? ' disabled'
57 : '')
58 . '">' . "\n"
3b56f6a Leading ./ paths for links and favicons can be omitted, part 1
Jo Michael authored
59 . ' <td><a href="server_engines.php'
cfeb306 coding standard: no spaces inside braces
Sebastian Mendel authored
60 . PMA_generate_common_url(array('engine' => $engine)) . '">' . "\n"
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
61 . ' ' . htmlspecialchars($details['Engine']) . "\n"
9f6d597 removed MySQL < 5 code
Sebastian Mendel authored
62 . ' </a></td>' . "\n"
63 . ' <td>' . htmlspecialchars($details['Comment']) . '</td>' . "\n"
64 . '</tr>' . "\n";
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
65 $odd_row = !$odd_row;
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
66 }
a8e5b0f Fix problem where PBMS daemon is not loaded or the 'pbms' database doesn...
Barry Leslie authored
67
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
68 unset($odd_row, $engine, $details);
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
69 echo '</tbody>' . "\n"
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
70 . '</table>' . "\n";
71
72 } else {
73
74 /**
75 * Displays details about a given Storage Engine
76 */
77
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
78 $engine_plugin = PMA_StorageEngine::getEngine($_REQUEST['engine']);
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
79 echo '<h2>' . "\n"
e6894be Chanaka Indrajith Dharmarathna Renamed ->method() with PMA_Util::method()
Chanaka authored
80 . PMA_Util::getImage('b_engine.png')
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
81 . ' ' . htmlspecialchars($engine_plugin->getTitle()) . "\n"
e6894be Chanaka Indrajith Dharmarathna Renamed ->method() with PMA_Util::method()
Chanaka authored
82 . ' ' . PMA_Util::showMySQLDocu('', $engine_plugin->getMysqlHelpPage()) . "\n"
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
83 . '</h2>' . "\n\n";
9f6d597 removed MySQL < 5 code
Sebastian Mendel authored
84 echo '<p>' . "\n"
85 . ' <em>' . "\n"
86 . ' ' . htmlspecialchars($engine_plugin->getComment()) . "\n"
87 . ' </em>' . "\n"
88 . '</p>' . "\n\n";
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
89 $infoPages = $engine_plugin->getInfoPages();
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
90 if (! empty($infoPages) && is_array($infoPages)) {
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
91 echo '<p>' . "\n"
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
92 . ' <strong>[</strong>' . "\n";
93 if (empty($_REQUEST['page'])) {
f55823f Marc Delisle strings to gettext, first batch
lem9 authored
94 echo ' <strong>' . __('Variables') . '</strong>' . "\n";
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
95 } else {
3b56f6a Leading ./ paths for links and favicons can be omitted, part 1
Jo Michael authored
96 echo ' <a href="server_engines.php'
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
97 . PMA_generate_common_url(array('engine' => $_REQUEST['engine']))
98 . '">' . __('Variables') . '</a>' . "\n";
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
99 }
100 foreach ($infoPages as $current => $label) {
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
101 echo ' <strong>|</strong>' . "\n";
102 if (isset($_REQUEST['page']) && $_REQUEST['page'] == $current) {
103 echo ' <strong>' . $label . '</strong>' . "\n";
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
104 } else {
3b56f6a Leading ./ paths for links and favicons can be omitted, part 1
Jo Michael authored
105 echo ' <a href="server_engines.php'
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
106 . PMA_generate_common_url(
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
107 array('engine' => $_REQUEST['engine'], 'page' => $current)
108 )
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
109 . '">' . htmlspecialchars($label) . '</a>' . "\n";
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
110 }
111 }
112 unset($current, $label);
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
113 echo ' <strong>]</strong>' . "\n"
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
114 . '</p>' . "\n\n";
115 }
116 unset($infoPages, $page_output);
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
117 if (! empty($_REQUEST['page'])) {
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
118 $page_output = $engine_plugin->getPage($_REQUEST['page']);
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
119 }
fa9aaea Madhura Jayaratne Coding style improvements
madhuracj authored
120 if (! empty($page_output)) {
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
121 echo $page_output;
122 } else {
5e2eea9 revised (style, code, xhtml output) server_engines.php
Sebastian Mendel authored
123 echo '<p> ' . $engine_plugin->getSupportInformationMessage() . "\n"
0ad2572 Alexander M. Turek moved engine-specific settings into plugins
derrabus authored
124 . '</p>' . "\n"
573a616 fixed code indention
Sebastian Mendel authored
125 . $engine_plugin->getHtmlVariables();
36bb21a Alexander M. Turek Detailed storage engines status information.
derrabus authored
126 }
127 }
128
129 ?>
Something went wrong with that request. Please try again.