} $dumpBuffer .= '-- ' . sprintf(_("Table Summary: %s"), $tableSelect) . DUMP_CRLF . '--' . DUMP_CRLF . '-->' . DUMP_CRLF . DUMP_CRLF; // Now build the structure // TODO: Make db and table names XML compatible (designer responsability) $dumpBuffer .= '<database name="' . OPEN_DATABASE . '">' . DUMP_CRLF; if (isset($_POST['table_select'])) { $tmpSelect = implode($_POST['table_select'], OPEN_SEPARATOR); $tmpSelect = OPEN_SEPARATOR . $tmpSelect . OPEN_SEPARATOR; } if (!isset($limitFrom) || !isset($limitTo)) { $limitFrom = $limitTo = 0; } for ($i = 0; $i < $numTables; $i++) { $table = $single ? $_POST['table_select'][$i] : $auxConn->tableName($i); if (isset($tmpSelect) && strpos(' ' . $tmpSelect, OPEN_SEPARATOR . $table . OPEN_SEPARATOR) || !isset($tmpSelect) && !empty($table)) { $dumpBuffer .= Dump::XMLData(OPEN_DATABASE, $table, array('from' => $limitFrom, 'to' => $limitTo)); } // end if } // end for $dumpBuffer .= '</database>' . DUMP_CRLF; } else { if (isset($_POST['table_select'])) { $tmpSelect = implode($_POST['table_select'], OPEN_SEPARATOR); $tmpSelect = OPEN_SEPARATOR . $tmpSelect . OPEN_SEPARATOR; } if (!isset($limitFrom) || !isset($limitTo)) { $limitFrom = $limitTo = 0; } for ($i = 0; $i < $numTables; $i++) { $table = $single ? $_POST['table_select'][$i] : $auxConn->tableName($i);