+ echo '
- ' . "\n"
+ '
. ($GLOBALS['cfg']['MainPageIconic']
? ' ' . "\n"
+ . ' height="32" alt="" />'
: '')
- . $strStructureSyn . "\n"
- .'' . "\n" .' | ';
- echo ' ' . "\n"
+ . $strStructureSyn
+ .'' .' | ';
+ echo ' '
. ($GLOBALS['cfg']['MainPageIconic']
? ' ' . "\n"
+ . ' height="32" alt="" />'
: '')
- . $strDataSyn . "\n"
- . '' . "\n" .' | ';
+ . $strDataSyn
+ . '' .' | ';
echo '
';
@@ -317,7 +317,7 @@ if ((isset($_REQUEST['submit_connect']))) {
* Displays the name of the matching table
*/
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo '' . $matching_tables[$i]. "\n" . ' |
+ echo '' . htmlspecialchars($matching_tables[$i]) . ' |
';
/**
* Calculating the number of alter columns, number of columns to be added, number of columns to be removed,
@@ -347,14 +347,13 @@ if ((isset($_REQUEST['submit_connect']))) {
/**
* Display the red button of structure synchronization if there exists any structure difference or index difference.
*/
- if (($num_alter_cols > 0) || ($num_insert_cols > 0) || ($num_remove_cols > 0) || ($num_add_index > 0) ||($num_remove_index > 0)) {
+ if (($num_alter_cols > 0) || ($num_insert_cols > 0) || ($num_remove_cols > 0) || ($num_add_index > 0) || ($num_remove_index > 0)) {
echo ' '. "\n" ;
-
+ onclick="showDetails(' . "'MS" . $i . "','" . $num_alter_cols . "','" .$num_insert_cols .
+ "','" . $num_remove_cols . "','" . $num_add_index . "','" . $num_remove_index . "'"
+ . ', this ,' . "'" . htmlspecialchars($matching_tables[$i]) . "'" . ')"/>';
}
/**
* Display the green button of data synchronization if there exists any data difference.
@@ -364,8 +363,8 @@ if ((isset($_REQUEST['submit_connect']))) {
echo ' '. "\n";
+ onclick="showDetails('. "'MD" . $i . "','" . $num_of_updates . "','" . $num_of_insertions .
+ "','" . null . "','" . null . "','" . null . "'" . ', this ,' . "'" . htmlspecialchars($matching_tables[$i]) . "'" . ')" />';
}
}
echo ' |
@@ -376,26 +375,26 @@ if ((isset($_REQUEST['submit_connect']))) {
*/
for ($j = 0; $j < count($source_tables_uncommon); $j++) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo ' + ' .$source_tables_uncommon[$j]. "\n" . ' | ';
+ echo ' + ' . htmlspecialchars($source_tables_uncommon[$j]) . ' | ';
echo ' '. "\n" ;
+ onclick="showDetails(' . "'US" . $j . "','" . null . "','" . null . "','" . null . "','" . null . "','" . null . "'" . ', this ,'
+ . "'" . htmlspecialchars($source_tables_uncommon[$j]) . "'" . ')"/>';
if ($row_count[$j] > 0)
{
- echo ' '. "\n";
+ onclick="showDetails(' . "'UD" . $j . "','" . null . "','" . $row_count[$j] . "','" . null .
+ "','" . null . "','" . null . "'" . ', this ,' . "'" . htmlspecialchars($source_tables_uncommon[$j]) . "'" . ')" />';
}
echo ' |
';
}
foreach ($target_tables_uncommon as $tbl_nc_name) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo ' | | ';
+ echo ' | | ';
echo '';
}
/**
@@ -406,12 +405,12 @@ if ((isset($_REQUEST['submit_connect']))) {
$odd_row = PMA_syncDisplayHeaderTargetAndMatchingTables($trg_db, $matching_tables);
foreach ($source_tables_uncommon as $tbl_nc_name) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo '' .$tbl_nc_name . "\n" . ' (' . $GLOBALS['strNotPresent'] . ') |
+ echo '' . htmlspecialchars($tbl_nc_name) . ' (' . $GLOBALS['strNotPresent'] . ') |
';
}
foreach ($target_tables_uncommon as $tbl_nc_name) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo ' - ' .$tbl_nc_name . ' | ';
+ echo ' - ' . htmlspecialchars($tbl_nc_name) . ' | ';
echo '';
}
echo '
';
@@ -429,20 +428,20 @@ if ((isset($_REQUEST['submit_connect']))) {
- '. $strTable .' |
- '. $strStructureDiff .' |
- '. $strDataDiff .' |
+ ' . $strTable . ' |
+ ' . $strStructureDiff . ' |
+ ' . $strDataDiff . ' |
- '. $strTableName .' |
- '. $strCreateTable .' |
- '. $strTableAddColumn .' |
- '. $strTableRemoveColumn .' |
- '. $strTableAlterColumn .' |
- '. $strTableRemoveIndex .' |
- '. $strTableApplyIndex .' |
- '. $strTableUpdateRow .' |
- '. $strTableInsertRow .' |
+ ' . $strTableName . ' |
+ ' . $strCreateTable . ' |
+ ' . $strTableAddColumn . ' |
+ ' . $strTableRemoveColumn . ' |
+ ' . $strTableAlterColumn . ' |
+ ' . $strTableRemoveIndex . ' |
+ ' . $strTableApplyIndex . ' |
+ '. $strTableUpdateRow . ' |
+ ' . $strTableInsertRow . ' |
@@ -454,11 +453,10 @@ if ((isset($_REQUEST['submit_connect']))) {
echo '
- ';
echo '';
}
}
@@ -513,7 +511,7 @@ if (isset($_REQUEST['Table_ids'])) {
* Creating link object for source and target databases
*/
foreach ($cons as $con) {
- if (${"{$con}_type"}=="rmt") {
+ if (${"{$con}_type"} == "rmt") {
${"{$con}_link"} = PMA_DBI_connect(${"{$con}_username"}, ${"{$con}_password"}, $is_controluser = false, ${"{$con}_server"});
} else {
${"{$con}_link"} = null;
@@ -718,7 +716,7 @@ if (isset($_REQUEST['Table_ids'])) {
$odd_row = false;
for($i = 0; $i < count($matching_tables); $i++) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo '' . $matching_tables[$i]. "\n" . ' |
+ echo '' . $matching_tables[$i] . ' |
';
$num_alter_cols = 0;
@@ -743,12 +741,11 @@ if (isset($_REQUEST['Table_ids'])) {
$num_remove_index = sizeof($remove_indexes_array[$i]);
}
- if (($num_alter_cols > 0) || ($num_insert_cols > 0) || ($num_remove_cols > 0) || ($num_add_index > 0) ||($num_remove_index > 0)) {
+ if (($num_alter_cols > 0) || ($num_insert_cols > 0) || ($num_remove_cols > 0) || ($num_add_index > 0) || ($num_remove_index > 0)) {
echo ' '. "\n" ;
+ onclick="showDetails(' . "'MS" . $i . "','" . $num_alter_cols . "','" . $num_insert_cols . "','" . $num_remove_cols . "','" . $num_add_index . "','" . $num_remove_index . "'" .',
+ this ,' . "'" . $matching_tables[$i] . "'" . ')"/>';
}
if (!(in_array($i, $matching_table_data_diff))) {
@@ -775,8 +772,8 @@ if (isset($_REQUEST['Table_ids'])) {
|| (isset($matching_tables_keys[$i][0]) && isset($insert_array[$i][0][$matching_tables_keys[$i][0]]))) {
echo ' ';
+ onclick="showDetails(' . "'MD" . $i . "','" . $num_of_updates . "','" . $num_of_insertions .
+ "','" . null . "','" . null . "','" . null . "'" .', this ,' . "'" . htmlspecialchars($matching_tables[$i]) . "'" . ')" />';
}
} else {
unset($update_array[$i]);
@@ -794,17 +791,16 @@ if (isset($_REQUEST['Table_ids'])) {
for ($j = 0; $j < count($source_tables_uncommon); $j++) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo ' | + ' .$source_tables_uncommon[$j]. "\n" . ' |
+ echo ' + ' . htmlspecialchars($source_tables_uncommon[$j]) . ' |
';
/**
* Display the difference only when it has not been applied
*/
if (!(in_array($j, $uncommon_table_structure_diff))) {
if (isset($uncommon_tables[$j])) {
- echo ' ' . "\n" .' ';
+ onclick="showDetails(' . "'US" . $j . "','" . null . "','" . null . "','" . null . "','" . null . "','" . null . "'" . ', this ,' . "'" . htmlspecialchars($source_tables_uncommon[$j]) . "'" . ')"/>' .' ';
}
} else {
unset($uncommon_tables[$j]);
@@ -814,10 +810,10 @@ if (isset($_REQUEST['Table_ids'])) {
*/
if (!(in_array($j, $uncommon_table_data_diff))) {
if (isset($row_count[$j]) && ($row_count > 0)) {
- echo ' '. "\n";
+ onclick="showDetails(' . "'UD" . $j . "','" . null ."','" . $row_count[$j] ."','"
+ . null . "','" . null . "','" . null . "'" . ', this ,' . "'". htmlspecialchars($source_tables_uncommon[$j]) . "'" . ')" />';
}
} else {
unset($row_count[$j]);
@@ -847,16 +843,16 @@ if (isset($_REQUEST['Table_ids'])) {
foreach ($source_tables_uncommon as $tbl_nc_name) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
if (in_array($tbl_nc_name, $uncommon_tables)) {
- echo ' | ' .$tbl_nc_name . "\n" . ' (' . $GLOBALS['strNotPresent'] . ') | ';
+ echo '' . htmlspecialchars($tbl_nc_name) . ' (' . $GLOBALS['strNotPresent'] . ') | ';
} else {
- echo '' .$tbl_nc_name . "\n" . ' | ';
+ echo '' . htmlspecialchars($tbl_nc_name) . ' | ';
}
echo '
';
}
foreach ($target_tables_uncommon as $tbl_nc_name) {
$odd_row = PMA_syncDisplayBeginTableRow($odd_row);
- echo ' - ' .$tbl_nc_name . ' | ';
+ echo ' - ' . htmlspecialchars($tbl_nc_name) . ' | ';
echo '';
}
echo '
@@ -874,20 +870,20 @@ if (isset($_REQUEST['Table_ids'])) {
echo '