0) ? $config['minspeed']:50);
$dump['dump_encoding']=(isset($_POST['dump_encoding'])) ? urldecode($_POST['dump_encoding']):'';
if (isset($_GET['sel_dump_encoding']))
{
// Erstaufruf -> encoding auswerten
include_once ('./inc/functions_sql.php');
get_sql_encodings();
$encodingline=$config['mysql_possible_character_sets'][$_GET['sel_dump_encoding']];
$encoding=explode(' ',$encodingline);
$dump['dump_encoding']=isset($encoding[0]) ? $encoding[0]:$encodingline;
}
include ('./inc/define_icons.php');
$dump['tabellen_gesamt']=0;
}
$mp2=array(
'Bytes','Kilobytes','Megabytes','Gigabytes');
FillMultiDBArrays();
if ($databases['db_actual_tableselected']!=''&&$config['multi_dump']==0)
{
$dump['tblArray']=explode('|',$databases['db_actual_tableselected']);
$tbl_sel=true;
$msgTbl=sprintf($lang['L_NR_TABLES_SELECTED'],count($dump['tblArray']));
}
// Korrektur -> Multi-DB-Array ist gefuellt (damit die Infos in der Konfig nicht verloren gehen), aber Multidump ist nicht aktiviert)
if ($config['multi_dump']==0)
{
unset($databases['multi']);
$databases['multi']=array();
$databases['multi'][0]=$databases['db_actual'];
}
else
{
// wenn Multidump aktiviert ist, aber keine DB gewaehlt wurde -> aktuelle DB uebernehmen
if (!isset($databases['multi'][0])) $databases['multi'][0]=$databases['db_actual'];
// find correct dbindex -> take dbname from $databases['multi'] and get the correct index
// from $databases['Name'] -> needed to set $dump['dbindex'] for first run of command_before_dump
$dump['dbindex']=$flipped[$databases['multi'][0]];
}
//Zeitzähler aktivieren
$dump['max_zeit']=intval($config['max_execution_time']*$config['time_buffer']);
$dump['startzeit']=time();
$xtime=(isset($_POST['xtime'])) ? $_POST['xtime']:time();
$dump['countdata']=(!empty($_POST['countdata'])) ? $_POST['countdata']:0;
$dump['aufruf']=(!empty($_POST['aufruf'])) ? $_POST['aufruf']:0;
MSD_mysql_connect($dump['dump_encoding']);
if ($dump['table_offset']==-1) ExecuteCommand('b');
// only read tableinfos the first time and save it to session to speed up backing up process
if (!isset($_SESSION['dump'])) getDBInfos();
$num_tables=count($dump['tables']);
if ($config['optimize_tables_beforedump']==1&&$dump['table_offset']==-1) $out.=sprintf($lang['L_NR_TABLES_OPTIMIZED'],$num_tables).'
';
$dump['data']='';
$dump['dbindex']=(isset($_POST['dbindex'])) ? $_POST['dbindex']:$flipped[$databases['multi'][0]];
//Ausgaben-Header bauen
$aus_header[]=headline('Backup: '.(($config['multi_dump']==1) ? 'Multidump ('.count($databases['multi']).' '.$lang['L_DBS'].')':$lang['L_DB'].': '.$databases['Name'][$dump['dbindex']].(($databases['praefix'][$dump['dbindex']]!='') ? ' ('.$lang['L_WITHPRAEFIX'].' '.$databases['praefix'][$dump['dbindex']].')':'')));
if (isset($aus_error)&&count($aus_error)>0) $aus_header=array_merge($aus_header,$aus_error);
if ($num_tables==0)
{
//keine Tabellen gefunden
$aus[]='
'.$lang['L_ERROR'].': '.sprintf($lang['L_DUMP_NOTABLES'],$databases['Name'][$dump['dbindex']]).'
'; if (!$config['multi_dump']==1) { echo $pageheader; echo get_page_parameter($dump); echo implode("\n",$aus); echo '