'; $r.=''; $dh = opendir($fpath); while (false !== ($filename = readdir($dh))) { if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename)) { $r.=''."\n"; } } $r.=''; return $r; } function sortierdatum($datum) { $p=explode(' ',$datum); $uhrzeit=$p[1]; $p2=explode('.',$p[0]); $day=$p2[0]; $month=$p2[1]; $year=$p2[2]; return $year.'.'.$month.'.'.$day.' '.$uhrzeit; } function FileList($multi=0) { global $config,$kind,$fpath,$lang,$databases,$href,$dbactiv,$action,$expand; $files=Array(); if($kind==0){ //Backup-Dateien $Theader=$lang['fm_files1'].' '.$lang['of'].' "'.$dbactiv.'"'; $Wheader=$lang['fm_files2']; $akind=1; } else { //Struktur-Dateien $Theader=$lang['fm_files2']; $Wheader=$lang['fm_files1']; $akind=0; } $Sum_Files=0; $dh = opendir($fpath); $fl=""; $i=0; while (false !== ($filename = readdir($dh))) { if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename)) { $files[$i]['name'] = $filename; $Sum_Files++; $i++; } } $fl.='
'.$Theader.' | '.br().''.$Wheader.' | '.br().'||||||||||
'.$lang['db'].' | '.br().'gz | '.br().'Script | '.br().''.$lang['comment'].' | '.br().''.$lang['fm_filedate'].' | '.br().'Multipart | '.br().''.$lang['fm_tables'].' / '.$lang['fm_records'].' | '.br().''.$lang['fm_filesize'].' | '.br().'||||
---|---|---|---|---|---|---|---|---|---|---|---|
'.br(); if($multi==0) { $fl.=''; } else { $fl.=''; } $fl.=($db_backups[$i]['multipart']==0) ? ' '.(($db_backups[$i]['db']=='unknown') ? $dbn : $db_backups[$i]['db']).' | '.br() : ' '.$db_backups[$i]['db'].''.br(); $fl.=''.((substr($dbn,-3)==".gz") ? '' : " ").' | '; $fl.=''.$db_backups[$i]['script'].' | '; $fl.=''.(($db_backups[$i]['kommentar']!="") ? '' : " ").' | '; $fl.=''.(($db_backups[$i]['kommentar']!="") ? nl2br(wordwrap($db_backups[$i]['kommentar'],50)) : " ").' | '; $fl.=''.$db_backups[$i]['date'].' | '.br(); $fl.=''; $fl.=($db_backups[$i]['multipart']==0) ? $lang['no'] : ''.$db_backups[$i]['multipart'].' Files'; // $fl.=' | '.br().''; $fl.=($db_backups[$i]['eintraege']!=-1) ? $db_backups[$i]['tabellen'].' / '.number_format($db_backups[$i]['eintraege'],0,",",".") :$lang['fm_oldbackup']; $fl.=' | '.br(); $fl.=''.byte_output($db_backups[$i]['size']).' | '.br(); $fl.='|||
All Parts: | '.PartListe($db_backups[$i]['name'],$db_backups[$i]['multipart']).' | '; } } } } $fl.='||||||||||
'.$lang['fm_all_bu'].' | '.br().'|||||||||||
'.$lang['fm_dbname'].' | '.br().''.$lang['fm_anz_bu'].' | '.br().''.$lang['fm_last_bu'].' | '.br().''.$lang['fm_totalsize'].' | ||||||||
'.$keyaus.' | '.br(); $fl.=''.$val.' | '.br(); $fl.=''.((isset($db_summary_last[$key])) ? $db_summary_last[$key] : "").' | '.br(); $fl.=''.byte_output($db_summary_size[$key]).' | '.br(); $fl.='||||||||
'.$lang['fm_nofilesfound'].' | |||||||||||
'.$lang['fm_totalsize'].' ('.$Sum_Files.' files): | '.br(); $fl.= ''.byte_output($gesamt).' | '.br(); $fl.= '||||||||||
'.$lang['fm_freespace'].': | '.br(); $fl.= ''.$space.' | '.br(); $fl.= '