'; $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,$fpath,$lang,$databases,$href,$dbactiv,$action,$expand; $files=Array(); //Backup-Dateien $Theader=$lang['L_FM_FILES1'].' '.$lang['L_OF'].' "'.$dbactiv.'"'; $akind=1; $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.' | ||||||||||||
'.$lang['L_DB'].' | gz | Script | '.$lang['L_COMMENT'].' | '.$lang['L_FM_FILEDATE'].' | Multipart | '.$lang['L_FM_TABLES'].' / '.$lang['L_FM_RECORDS'].' | '.$lang['L_FM_FILESIZE'].' | '.$lang['L_ENCODING'].' | ||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
'; $fl.=''; if ($multi==0) { $fl.=''; } else { $fl.=''; } if ($db_backups[$i]['multipart']==0) { $fl.=' '; $fl.=(($db_backups[$i]['db']=='~unknown') ? $dbn:$db_backups[$i]['db']).' | '; $fl.=''; } else $fl.=' '.$db_backups[$i]['db'].' | '; $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'].' | '; $fl.=''; $fl.=($db_backups[$i]['multipart']==0) ? $lang['L_NO']:''.$db_backups[$i]['multipart'].' Files'; // $fl.=' | '; $fl.=($db_backups[$i]['eintraege']!=-1) ? $db_backups[$i]['tabellen'].' / '.number_format($db_backups[$i]['eintraege'],0,",","."):$lang['L_FM_OLDBACKUP']; $fl.=' | '; $fl.=''.byte_output($db_backups[$i]['size']).' | '; $fl.=''.$db_backups[$i]['charset'].' | '; $fl.='|
All Parts: | '.PartListe($db_backups[$i]['name'],$db_backups[$i]['multipart']).' | '; } $rowclass++; } } } //v($db_backups); $fl.='|||||||||||
'.$lang['L_FM_ALL_BU'].' | ||||||||||||
'.$lang['L_FM_DBNAME'].' | '.$lang['L_FM_ANZ_BU'].' | '.$lang['L_FM_LAST_BU'].' | '.$lang['L_FM_TOTALSIZE'].' | |||||||||
'.$keyaus.' | '; $fl.=''.$val.' | '; $fl.=''.((isset($db_summary_last[$key])) ? $db_summary_last[$key]:'').' | '; $fl.=''.byte_output($db_summary_size[$key]).' | '; $fl.='|||||||||
'.$lang['L_FM_NOFILESFOUND'].' | ||||||||||||
'.$lang['L_FM_TOTALSIZE'].' ('.$Sum_Files.' files): | '; $fl.=''.byte_output($gesamt).' | '; $fl.='|||||||||||
'.$lang['L_FM_FREESPACE'].': | '; $fl.=''.$space.' | '; $fl.='