'; $r.=''; $dh = opendir($fpath); while (false !== ($filename = readdir($dh))) { if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename)) { $r.=''."\n"; } } $r.=''; return $r; } 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=""; while (false !== ($filename = readdir($dh))) { if ($filename != "." && $filename != ".." && !is_dir($fpath.$filename)) { $files[] = $filename; $Sum_Files++; } } $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'].' | '.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]['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'].' | '.br(); //die anderen Backups if(count($db_summary_anzahl)>0) { while(list($key, $val) = each($db_summary_anzahl)) { $keyaus=($key=="") ? "[unknown]" : $key; $fl.='|||||||
'.$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_sizesum'].'('.$Sum_Files.' files): | '.br(); $fl.= ''.byte_output($gesamt).' | '.br(); $fl.= '|||||||||
'.$lang['fm_freespace'].': | '.br(); $fl.= ''.$space.' | '.br(); $fl.= '