parent.MySQL_Dumper_content.location.href="dump.php?comment='.urlencode($dk).'";'; 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 { @TestWorkDir(); $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(file_exists($config['paths']['log']."restore.tmp")) @unlink($config['paths']['log']."restore.tmp"); if(isset($_POST['tblfrage']) && $_POST['tblfrage']==1) { //Tabellenabfrage $tblfrage_refer="restore"; $filename=urldecode($_POST['file'][0]); include ("inc/tabellenabfrage.php"); exit; } else { $databases['db_actual_tableselected']=""; WriteParams(1,$config,$databases); echo ''; } } else $msg.= '
'.$lang['fm_nofile'].'
'.br(); } //-------------------------------------------------------- //*** Abfrage ob Delete *** //-------------------------------------------------------- if (isset($_POST['delete']) ) { $msg=""; if (isset($_POST['file'])) { $file=$_POST['file']; //hier muss die Abfrage checkbox/radiobox rein if($_POST['multi']==1) { $delfiles=Array(); $msg.= '';
for($i=0;$i
'.$lang['fm_delete1'].$fpath.$_POST['file'][0].$lang['fm_delete3'].'
'; } else { for ($j=0; $j'.$lang['fm_nofile'].'
'.br(); } if (isset($_POST['deleteauto']) ) $msg.=''.AutoDelete().'
'; if (isset($_POST['deleteall']) ) { //hier kommt alldelete rein $del=DeleteFilesM($fpath,"*.sql"); if($del==0){ //$msg.="Fehler beim löschen!"; }else{ for ($i=0; $i'.$lang['autodelete'].": "; $abue=($config['max_backup_files_each']==1)? $lang['max_backup_files_each2'] :$lang['max_backup_files_each1']; $abue2=($config['del_files_after_days']>0) ? $lang['age_of_files']."=".$config['del_files_after_days'].", " : ""; $autodel.=($config['auto_delete']==0) ? $lang['not_activated'] : $lang['activated']." (".$abue2.$lang['number_of_files_form']."=".$config['max_backup_files']." -> ".$abue.")"; $autodel.='
'.br().br(); //Fallunterscheidung switch ($action) { case "dump": //Variablen if($config['multi_dump']==0) DBDetailInfo($databases['db_selected_index']); $cext=($config['cron_extender']==0) ? "pl" : "cgi"; $actualUrl=substr($_SERVER['SCRIPT_NAME'],0,strrpos($_SERVER['SCRIPT_NAME'],"/")+1); if(substr($actualUrl,-1)!="/") $actualUrl.="/"; if(substr($actualUrl,0,1)!="/") $actualUrl="/$actualUrl"; $refdir=(substr($config['cron_execution_path'],0,1)=="/") ? "" : $actualUrl; $scriptdir=$config['cron_execution_path'].'crondump.'.$cext; $sfile=$config['cron_execution_path']."perltest.$cext"; $simplefile=$config['cron_execution_path']."simpletest.$cext"; $scriptentry=Realpfad("./").$config['paths']['config']; $cronabsolute=(substr($config['cron_execution_path'],0,1)=="/") ? $_SERVER['DOCUMENT_ROOT'].$scriptdir : Realpfad("./").$scriptdir; $confabsolute=$config['cron_configurationfile']; $scriptref="http://".$_SERVER['SERVER_NAME'].$refdir.$config['cron_execution_path'].'crondump.'.$cext."?config=".$confabsolute; $cronref="perl ".$cronabsolute." config=".$confabsolute; //Ausgabe echo headline($lang['fm_dump_header']); if(!is_writable($config['paths']['backup'])) die('ERROR !