Remove broken link
[phpmyadmin.git] / libraries / server_common.lib.php
blob7e3a2ca94c21b19cc0a244187ef85afbbc9e0f2d
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Shared code for server pages
6 * @package PhpMyAdmin
7 */
9 /**
10 * Returns the html for the sub-page heading
12 * @param string $type Sub page type
13 * @param string $link Link to the official MySQL documentation
14 * @param bool $is_image Display image or icon, true: image, false: icon
16 * @return string
18 function PMA_getHtmlForSubPageHeader($type, $link='', $is_image=true)
20 //array contains Sub page icon and text
21 $header = array();
23 $header['variables']['image'] = 's_vars.png';
24 $header['variables']['text'] = __('Server variables and settings');
26 $header['engines']['image'] = 'b_engine.png';
27 $header['engines']['text'] = __('Storage Engines');
29 $header['plugins']['image'] = 'b_engine.png';
30 $header['plugins']['text'] = __('Plugins');
32 $header['binlog']['image'] = 's_tbl.png';
33 $header['binlog']['text'] = __('Binary log');
35 $header['collations']['image'] = 's_asci.png';
36 $header['collations']['text'] = __('Character Sets and Collations');
38 $header['replication']['image'] = 's_replication.png';
39 $header['replication']['text'] = __('Replication');
41 $header['database_statistics']['image'] = 's_db.png';
42 $header['database_statistics']['text'] = __('Databases statistics');
44 $header['databases']['image'] = 's_db.png';
45 $header['databases']['text'] = __('Databases');
47 $header['privileges']['image'] = 'b_usrlist.png';
48 $header['privileges']['text'] = __('Privileges');
50 if ($is_image) {
51 $html = '<h2>' . "\n"
52 . PMA\libraries\Util::getImage($header[$type]['image'])
53 . ' ' . $header[$type]['text'] . "\n"
54 . $link . '</h2>' . "\n";
55 } else {
56 $html = '<h2>' . "\n"
57 . PMA\libraries\Util::getIcon($header[$type]['image'])
58 . ' ' . $header[$type]['text'] . "\n"
59 . $link . '</h2>' . "\n";
61 return $html;