View detection for header.inc.php.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-02-06 Alexander M. Turek <me@derrabus.de>
|
||||||
|
* header.inc.php, tbl_properties_table_info.php: View detection for
|
||||||
|
header.inc.php.
|
||||||
|
|
||||||
2005-02-05 Marc Delisle <lem9@users.sourceforge.net>
|
2005-02-05 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_relation.php: removed comments handling (pmadb-style) from relation view
|
* tbl_relation.php: removed comments handling (pmadb-style) from relation view
|
||||||
|
|
||||||
|
@@ -192,12 +192,17 @@ if (empty($GLOBALS['is_header_sent'])) {
|
|||||||
. '</td>' . "\n\n";
|
. '</td>' . "\n\n";
|
||||||
|
|
||||||
if (!empty($GLOBALS['table'])) {
|
if (!empty($GLOBALS['table'])) {
|
||||||
|
if (PMA_MYSQL_INT_VERSION >= 50000) {
|
||||||
|
require_once('./tbl_properties_table_info.php');
|
||||||
|
} else {
|
||||||
|
$tbl_is_view = FALSE;
|
||||||
|
}
|
||||||
echo ' '
|
echo ' '
|
||||||
. '<td class="serverinfo"><div></div></td>' . "\n" . ' '
|
. '<td class="serverinfo"><div></div></td>' . "\n" . ' '
|
||||||
. '<td class="serverinfo">' . $GLOBALS['strTable'] . ': '
|
. '<td class="serverinfo">' . ($GLOBALS['tbl_is_view'] ? $GLOBALS['strView'] : $GLOBALS['strTable']) . ': '
|
||||||
. '<a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']) . '">';
|
. '<a href="' . $GLOBALS['cfg']['DefaultTabTable'] . '?' . PMA_generate_common_url($GLOBALS['db'], $GLOBALS['table']) . '">';
|
||||||
if ($GLOBALS['cfg']['MainPageIconic']) {
|
if ($GLOBALS['cfg']['MainPageIconic']) {
|
||||||
echo '<img src="' . $GLOBALS['pmaThemeImage'] . 's_tbl.png" width="16" height="16" border="0" alt="' . htmlspecialchars($GLOBALS['table']) . '" />';
|
echo '<img src="' . $GLOBALS['pmaThemeImage'] . ($GLOBALS['tbl_is_view'] ? 'b_view' : 's_tbl') . '.png" width="16" height="16" border="0" alt="' . htmlspecialchars($GLOBALS['table']) . '" />';
|
||||||
}
|
}
|
||||||
echo htmlspecialchars($GLOBALS['table']) . '</a>' . "\n"
|
echo htmlspecialchars($GLOBALS['table']) . '</a>' . "\n"
|
||||||
. '</td>' . "\n\n";
|
. '</td>' . "\n\n";
|
||||||
|
@@ -11,6 +11,13 @@ require_once('./libraries/common.lib.php');
|
|||||||
|
|
||||||
PMA_checkParameters(array('db', 'table'));
|
PMA_checkParameters(array('db', 'table'));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Defining global variables, in case this script is included by a function.
|
||||||
|
* This is necessary because this script can be included by header.inc.php.
|
||||||
|
*/
|
||||||
|
global $showtable, $tbl_is_view, $tbl_type, $show_comment, $tbl_collation,
|
||||||
|
$table_info_num_rows, $auto_increment;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets table informations
|
* Gets table informations
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user