diff --git a/db_details_importdocsql.php3 b/db_details_importdocsql.php3 index 4c31cbe5a..49a4ea179 100644 --- a/db_details_importdocsql.php3 +++ b/db_details_importdocsql.php3 @@ -29,12 +29,13 @@ if (isset($do) && $do == 'import') { if (is_dir($docpath)) { $handle = opendir($docpath); while ($file = @readdir ($handle)) { - $filename = basename($file); + $_filename = basename($file); // echo '
Working on file ' . $filename . '
'; - $parts = explode('_', $filename); - if (count($parts) == 3 && $parts[1] == 'field' && $parts[2] == 'comment.txt') { - $tab = $parts[0]; - //echo 'Added comment for column ' . htmlspecialchars($tab) . '.' . htmlspecialchars($inf[0]) . '
'; + echo 'Added comment for column ' . htmlspecialchars($_tab) . '.' . htmlspecialchars($inf[0]) . '
'; } else { echo 'Writing of comment not possible
'; } @@ -62,13 +63,13 @@ if (isset($do) && $do == 'import') { . '(master_db, master_table, master_field, foreign_db, foreign_table, foreign_field)' . ' VALUES(' . '\'' . PMA_sqlAddslashes($db) . '\', ' - . '\'' . PMA_sqlAddslashes(trim($tab)) . '\', ' + . '\'' . PMA_sqlAddslashes(trim($_tab)) . '\', ' . '\'' . PMA_sqlAddslashes(trim($inf[0])) . '\', ' . '\'' . PMA_sqlAddslashes($db) . '\', ' . '\'' . PMA_sqlAddslashes(trim($for[0])) . '\',' . '\'' . PMA_sqlAddslashes(trim($for[1])) . '\')'; if (PMA_query_as_cu($qry)) { - echo 'Added relation for column ' . htmlspecialchars($tab) . '.' . htmlspecialchars($inf[0]) . ' to ' . htmlspecialchars($for) . '
'; + echo 'Added relation for column ' . htmlspecialchars($_tab) . '.' . htmlspecialchars($inf[0]) . ' to ' . htmlspecialchars($for) . '
'; } else { echo "writing of Relation not possible
"; }