parent.MySQL_Dumper_content.location.href="dump.php?comment='.urlencode($dk)
.'&select_dump_encoding='.$dump['select_dump_encoding']
.'";';
exit;
}
//--------------------------------------------------------
//*** Abfrage ob Dump ***
//--------------------------------------------------------
if (isset($_POST['dump']))
{
$dk=(isset($_POST['dumpKommentar'])) ? ((get_magic_quotes_gpc()) ? stripslashes($_POST['dumpKommentar']) : $_POST['dumpKommentar']) : "";
if(isset($_POST['tblfrage']) && $_POST['tblfrage']==1) {
//Tabellenabfrage
$tblfrage_refer="dump";
include ("inc/tabellenabfrage.php");
exit;
} else {
@$check_dir=TestWorkDir();
if (!$check_dir===true) die($check_dir);
$databases['db_actual_tableselected']="";
WriteParams(1,$config,$databases);
$dump['fileoperations']=0;
echo '';
}
}
//--------------------------------------------------------
//*** Abfrage ob Restore nach Tabellenaufruf ***
//--------------------------------------------------------
if (isset($_POST['restore_tbl']))
{
$databases['db_actual_tableselected']=substr($_POST['tbl_array'],0,strlen($_POST['tbl_array'])-1);
WriteParams(1,$config,$databases);
echo '';
exit;
}
//--------------------------------------------------------
//*** Abfrage ob Restore ***
//--------------------------------------------------------
if (isset($_POST['restore']))
{
if (isset($_POST['file']))
{
if(isset($_POST['tblfrage']) && $_POST['tblfrage']==1)
{
//Tabellenabfrage
$tblfrage_refer="restore";
$filename=urldecode($_POST['file'][0]);
include ("inc/tabellenabfrage.php");
exit;
}
else
{
$file=$_POST['file'][0];
$statusline=read_statusline_from_file($file);
if (isset($_POST['select_dump_encoding_restore']))
{
$encodingstring=$config['mysql_possible_character_sets'][$_POST['select_dump_encoding_restore']];
$encoding=explode(' ',$encodingstring);
$dump_encoding=$encoding[0];
}
else
{
if (!isset($statusline['charset']) || trim($statusline['charset'])=='?')
{
echo headline($lang['fm_restore'].': '.$file);
// if we can't detect encoding ask user
echo '
'.$lang['choose_charset'].'
';
echo '