function testShwoPHPDocuNotReplaceHelpImg() { $GLOBALS['cfg']['ReplaceHelpImg'] = false; $target = "docu"; $lang = _pgettext('PHP documentation language', 'en'); $expected = '[<a href="./url.php?url=http%3A%2F%2Fphp.net%2Fmanual%2F' . $lang . '%2F' . $target . '&server=99&lang=en&token=token' . '" target="documentation">' . __('Documentation') . '</a>]'; $this->assertEquals($expected, PMA_showPHPDocu($target)); }
function testShowPHPDocu() { $target = "docu"; $lang = _pgettext('PHP documentation language', 'en'); $expected = '<a href="./url.php?url=http%3A%2F%2Fphp.net%2Fmanual%2F' . $lang . '%2F' . $target . '&server=99&lang=en&token=token' . '" target="documentation"><img src="themes/dot.gif" title="' . __('Documentation') . '" alt="' . __('Documentation') . '" class="icon ic_b_help" /></a>'; $this->assertEquals($expected, PMA_showPHPDocu($target)); }
PMA_printListItem(__('Protocol version') . ': ' . PMA_DBI_get_proto_info(), 'li_mysql_proto'); PMA_printListItem(__('User') . ': ' . htmlspecialchars($mysql_cur_user_and_host), 'li_user_info'); echo ' <li id="li_select_mysql_charset">'; echo ' ' . __('MySQL charset') . ': ' . ' <span xml:lang="en" dir="ltr">' . ' ' . $mysql_charsets_descriptions[$mysql_charset_map[strtolower($charset)]] . "\n" . ' (' . $mysql_charset_map[strtolower($charset)] . ')' . "\n" . ' </span>' . "\n" . ' </li>' . "\n"; echo ' </ul>'; echo ' </div>'; } if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { echo '<div class="group">'; echo '<h2>' . __('Web server') . '</h2>'; echo '<ul>'; if ($GLOBALS['cfg']['ShowServerInfo']) { PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); if ($server > 0) { PMA_printListItem(__('MySQL client version') . ': ' . PMA_DBI_get_client_info(), 'li_mysql_client_version'); PMA_printListItem(__('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension'] . ' ' . PMA_showPHPDocu('book.' . $GLOBALS['cfg']['Server']['extension'] . '.php'), 'li_used_php_extension'); } } if ($cfg['ShowPhpInfo']) { PMA_printListItem(__('Show PHP information'), 'li_phpinfo', './phpinfo.php?' . $common_url_query); } echo ' </ul>'; echo ' </div>'; } echo '<div class="group pmagroup">'; echo '<h2>phpMyAdmin</h2>'; echo '<ul>'; $class = null; // workaround for bug 3302733; some browsers don't like the situation // where phpMyAdmin is called on a secure page but a part of the page // (the version check) refers to a non-secure page
PMA_printListItem($_SERVER['SERVER_SOFTWARE'], 'li_web_server_software'); if ($server > 0) { $client_version_str = PMA_DBI_get_client_info(); if (preg_match('#\d+\.\d+\.\d+#', $client_version_str) && in_array($GLOBALS['cfg']['Server']['extension'], array('mysql', 'mysqli')) ) { $client_version_str = 'libmysql - ' . $client_version_str; } PMA_printListItem( __('Database client version') . ': ' . $client_version_str, 'li_mysql_client_version' ); PMA_printListItem( __('PHP extension') . ': ' . $GLOBALS['cfg']['Server']['extension']. ' ' . PMA_showPHPDocu('book.' . $GLOBALS['cfg']['Server']['extension'] . '.php'), 'li_used_php_extension' ); } } if ($cfg['ShowPhpInfo']) { PMA_printListItem(__('Show PHP information'), 'li_phpinfo', 'phpinfo.php?' . $common_url_query); } echo ' </ul>'; echo ' </div>'; } echo '<div class="group pmagroup">'; echo '<h2>phpMyAdmin</h2>'; echo '<ul>';