From f2b4d0ec51e84768e5a2dda7223e4f482eac6a7c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 29 Nov 2009 12:50:21 +0000 Subject: [PATCH] unneeded code; XHTML compliancy; XSS protection --- db_tracking.php | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/db_tracking.php b/db_tracking.php index 68d284cc0..047c1772d 100644 --- a/db_tracking.php +++ b/db_tracking.php @@ -42,10 +42,6 @@ if ($num_tables == 0 && count($data['ddlog']) == 0) { * Display top menu links */ require_once './libraries/db_links.inc.php'; -?> -

-

- 0) { } else { $version_status = $strTrackingStatusNotActive; } - - if (($version['version'] == $last_version) && ($version_status == $strTrackingStatusNotActive)) { - $tracking_active = false; - } - if (($version['version'] == $last_version) && ($version_status == $strTrackingStatusActive)) { - $tracking_active = true; - } + $tmp_link = 'tbl_tracking.php?' . $url_query . '&table=' . htmlspecialchars($version['table_name']); ?> - - + + - - | - | + + | + | 0) { $style = 'even'; } } + unset($tmp_link); ?> @@ -161,7 +152,7 @@ if (isset($my_tables)) { foreach ($my_tables as $key => $tablename) { if (PMA_Tracker::getVersion($GLOBALS['db'], $tablename) == -1) { - $my_link = ''; + $my_link = ''; if ($cfg['PropertiesIconic']) { $my_link .= '' . $strTrackingTrackTable . ' '; @@ -169,7 +160,7 @@ if (isset($my_tables)) { $my_link .= $strTrackingTrackTable . ''; ?> - + -

- 0) { $log = '';