'; return $t; } // wenn neue Sprache angewählt wurde schon vor dem includen übernehmen if (isset($_POST['save']) && $_POST['language'] != $_POST['lang_old']) { $config['language']=$_POST['language']; $temp_lang=$config['language']; include_once ( './inc/header.php' ); // Normal prodecure (resets config[language]) $config['language']=$temp_lang; // re-set language include ( './language/lang_list.php' ); // This re-initializes $lang[] and loads appropiate language files } else include_once ( './inc/header.php' ); // language not changed, go on as usual include_once ( './inc/runtime.php' ); include_once ( './inc/functions_sql.php' ); include_once ( './language/' . $config['language'] . '/lang_help.php' ); include_once ( './language/' . $config['language'] . '/lang_config_overview.php' ); include_once ( './language/' . $config['language'] . '/lang_sql.php' ); $msg=''; $sel=( isset($_POST['sel']) ) ? $_POST['sel'] : 'db'; if (isset($_GET['sel'])) $sel=$_GET['sel']; $old_config_file=$config['config_file']; if (isset($_GET['config'])) { unset($databases); $databases=array(); if (isset($_POST['save'])) unset($_POST['save']); if (read_config($_GET['config'])) { $config['config_file']=$_GET['config']; $_SESSION['config_file']=$config['config_file']; $msg="" . sprintf($lang['L_CONFIG_LOADED'],$config['config_file']) . ""; $msg.=''; } else { read_config($old_config_file); $msg='

' . sprintf($lang['L_ERROR_LOADING_CONFIGFILE'],$config['config_file']) . '

'; } } if (isset($_GET['config_delete'])) { $del_config=urldecode($_GET['config_delete']); if ($del_config == $config['config_file']) { //aktuell gewaehlte Konfiguration wurde geloescht $config['config_file']='mysqldumper'; $_SESSION['config_file']=$config['config_file']; read_config($config['config_file']); // Standard laden } $del=@unlink($config['paths']['config'] . $del_config . '.php'); if ($del) $del=@unlink($config['paths']['config'] . $del_config . '.conf.php'); if ($del === false) $msg='

' . sprintf($lang['L_ERROR_DELETING_CONFIGFILE'],$del_config) . '

'; else $msg='

' . sprintf($lang['L_SUCCESS_DELETING_CONFIGFILE'],$del_config) . '

' . ''; //refresh menu-frame $sel='configs'; } include_once ( './inc/define_icons.php' ); $config['files']['parameter']=$config['paths']['config'] . $config['config_file'] . '.php'; $config['theme']=( !isset($config['theme']) ) ? 'msd' : $config['theme']; $config['cron_smtp_port']=( !isset($config['cron_smtp_port']) ) ? 25 : $config['cron_smtp_port']; if (!isset($command)) $command=0; $checkFTP=Array( " 

 
 ", " 

 
 ", " 

 
 " ); $checkFTP[$i]=""; $ftptested=-1; if (( isset($_POST['testFTP0']) ) || ( isset($_POST['testFTP1']) ) || ( isset($_POST['testFTP2']) )) { $config['ftp_transfer']=array(); $config['ftp_timeout']=array(); $config['ftp_mode']=array(); $config['ftp_useSSL']=array(); for ($i=0; $i < 3; $i++) { $config['ftp_transfer'][$i]=( isset($_POST['ftp_transfer'][$i]) ) ? $_POST['ftp_transfer'][$i] : 0; $config['ftp_timeout'][$i]=( isset($_POST['ftp_timeout'][$i]) ) ? $_POST['ftp_timeout'][$i] : 30; $config['ftp_useSSL'][$i]=( isset($_POST['ftp_useSSL'][$i]) ) ? $_POST['ftp_useSSL'][$i] : 0; $config['ftp_mode'][$i]=( isset($_POST['ftp_mode'][$i]) ) ? 1 : 0; $config['ftp_server'][$i]=( isset($_POST['ftp_server'][$i]) ) ? $_POST['ftp_server'][$i] : ''; $config['ftp_port'][$i]=( isset($_POST['ftp_port'][$i]) ) ? $_POST['ftp_port'][$i] : 21; $config['ftp_user'][$i]=( isset($_POST['ftp_user'][$i]) ) ? $_POST['ftp_user'][$i] : ''; $config['ftp_pass'][$i]=( isset($_POST['ftp_pass'][$i]) ) ? $_POST['ftp_pass'][$i] : ''; $config['ftp_dir'][$i]=( isset($_POST['ftp_dir'][$i]) ) ? stripslashes($_POST['ftp_dir'][$i]) : '/'; if ($config['ftp_dir'][$i] == "" || ( strlen($config['ftp_dir'][$i]) > 1 && substr($config['ftp_dir'][$i],-1) != "/" )) $config['ftp_dir'][$i].="/"; if (isset($_POST['testFTP' . $i])) { $checkFTP[$i]='
' . $lang['L_TESTCONNECTION'] . ' FTP-Connection ' . ( $i + 1 ) . '

' . TesteFTP($i) . '
'; $ftptested=$i; } } } $showVP=false; $oldtheme=$config['theme']; $oldscposition=$config['interface_server_caption_position']; if ($ftptested > -1) { $ftp_server[$ftptested]=$_POST['ftp_server'][$ftptested]; $ftp_port[$ftptested]=$_POST['ftp_port'][$ftptested]; $ftp_user[$ftptested]=$_POST['ftp_user'][$ftptested]; $ftp_pass[$ftptested]=$_POST['ftp_pass'][$ftptested]; $ftp_dir_s='ftp_dir[' . $ftptested . ']'; $f=$_POST['ftp_dir']; $ftp_dir[$ftptested]=stripslashes($f[$ftptested]); // Eingaben merken $config['ftp_transfer'][$ftptested]=( isset($_POST['ftp_transfer'][$ftptested]) ) ? $_POST['ftp_transfer'][$ftptested] : 0; $config['ftp_timeout'][$ftptested]=( isset($_POST['ftp_timeout'][$ftptested]) ) ? $_POST['ftp_timeout'][$ftptested] : 30; $config['ftp_useSSL'][$ftptested]=( isset($_POST['ftp_useSSL'][$ftptested]) ) ? $_POST['ftp_useSSL'][$ftptested] : 0; $config['ftp_mode'][$ftptested]=( isset($_POST['ftp_mode'][$ftptested]) ) ? 1 : 0; $config['ftp_server'][$ftptested]=$ftp_server[$ftptested]; $config['ftp_port'][$ftptested]=$ftp_port[$ftptested]; $config['ftp_user'][$ftptested]=$ftp_user[$ftptested]; $config['ftp_pass'][$ftptested]=$ftp_pass[$ftptested]; $config['ftp_dir'][$ftptested]=$ftp_dir[$ftptested]; if ($ftp_dir[$ftptested] == "" || ( strlen($ftp_dir[$ftptested]) > 1 && substr($ftp_dir[$ftptested],-1) != "/" )) $ftp_dir[$ftptested].="/"; WriteParams(); } echo MSDHeader(); if (isset($_POST['load'])) { $msg=SetDefault(true); $msg=nl2br($msg) . "
" . $lang['L_LOAD_SUCCESS'] . "
"; echo ''; } if (isset($_POST['save'])) { $save_config=true; //Parameter auslesen $config['multi_dump']=( isset($_POST['MultiDBDump']) ) ? $_POST['MultiDBDump'] : 0; $config['compression']=$_POST['compression']; $config['language']=$_POST['language']; if (!isset($_POST['server_caption'])) $config['interface_server_caption']=0; else $config['interface_server_caption']=$_POST['server_caption']; $config['interface_server_caption_position']=isset($_POST['server_caption_position']) ? $_POST['server_caption_position'] : 0; $config['interface_sqlboxsize']=$_POST['sqlboxsize']; $config['theme']=$_POST['theme']; $config['interface_table_compact']=( isset($_POST['interface_table_compact']) ) ? $_POST['interface_table_compact'] : 1; $config['email_recipient']=$_POST['email0']; $config['email_recipient_cc']=$_POST['email_recipient_cc']; $config['email_sender']=$_POST['email1']; $config['send_mail']=$_POST['send_mail']; $config['send_mail_dump']=$_POST['send_mail_dump']; $config['email_maxsize1']=$_POST['email_maxsize1']; if ($config['email_maxsize1'] == "") $config['email_maxsize1']=0; $config['email_maxsize2']=$_POST['email_maxsize2']; $config['email_maxsize']=$config['email_maxsize1'] * ( ( $config['email_maxsize2'] == 1 ) ? 1024 : 1024 * 1024 ); $config['memory_limit']=$_POST['memory_limit']; if ($config['memory_limit'] == "") $config['memory_limit']=0; $config['minspeed']=$_POST['minspeed']; if ($config['minspeed'] < 50) $config['minspeed']=50; $config['maxspeed']=$_POST['maxspeed']; if ($config['maxspeed'] < $config['minspeed']) $config['maxspeed']=$config['minspeed'] * 2; $config['stop_with_error']=$_POST['stop_with_error']; $config['multi_part']=$_POST['multi_part']; $config['multipartgroesse1']=isset($_POST['multipartgroesse1']) ? floatval(str_replace(',','.',$_POST['multipartgroesse1'])) : 0; $config['multipartgroesse2']=isset($_POST['multipartgroesse2']) ? intval($_POST['multipartgroesse2']) : 0; if ($config['multipartgroesse1'] < 100 && $config['multipartgroesse2'] == 1) $config['multipartgroesse1']=100; if ($config['multipartgroesse1'] < 1 && $config['multipartgroesse2'] == 2) $config['multipartgroesse1']=1; $oldlogcompression=$config['logcompression']; $config['logcompression']=( isset($_POST['logcompression']) && $_POST['logcompression'] == 1 ) ? 1 : 0; $config['log_maxsize1']=$_POST['log_maxsize1']; if ($config['log_maxsize1'] == "") $config['log_maxsize1']=0; $config['log_maxsize2']=$_POST['log_maxsize2']; $config['log_maxsize']=$config['log_maxsize1'] * ( ( $config['log_maxsize2'] == 1 ) ? 1024 : 1024 * 1024 ); $config['auto_delete']=$_POST['auto_delete']; $config['max_backup_files']=$_POST['max_backup_files']; $config['empty_db_before_restore']=$_POST['empty_db_before_restore']; $config['optimize_tables_beforedump']=$_POST['optimize_tables']; $config['cron_dbindex']=$_POST['cron_dbindex']; $config['cron_comment']=$_POST['cron_comment']; $config['cron_extender']=$_POST['cron_extender']; // cron_select_savepath/ if (!isset($_POST['cron_select_savepath'])) $_POST['cron_select_savepath']=$config['config_file']; if (isset($_POST['cron_savepath_new']) && !empty($_POST['cron_savepath_new'])) { $tmp_configfilename=utf8_decode(trim($_POST['cron_savepath_new'])); if (!preg_match("/^[a-z.-_]+$/i",$tmp_configfilename,$matches)) { $save_config=false; $msg.='

' . sprintf($lang['L_ERROR_CONFIGFILE_NAME'],$_POST['cron_savepath_new']) . '

'; } else { $config['config_file']=$_POST['cron_savepath_new']; $config['cron_configurationfile']=$_POST['cron_savepath_new'] . ".conf.php"; } } $config['cron_execution_path']=$_POST['cron_execution_path']; if ($config['cron_execution_path'] == "") $config['cron_execution_path']="msd_cron/"; if (strlen($config['cron_execution_path']) > 1 && substr($config['cron_execution_path'],-1) != "/") $config['cron_execution_path'].="/"; $config['cron_use_sendmail']=$_POST['cron_use_sendmail']; $config['cron_sendmail']=$_POST['cron_sendmail']; $config['cron_smtp']=isset($_POST['cron_smtp']) ? $_POST['cron_smtp'] : 'localhost'; $config['cron_printout']=$_POST['cron_printout']; $config['cron_completelog']=$_POST['cron_completelog']; $config['cron_compression']=$_POST['compression']; $config['cron_completelog']=$_POST['cron_completelog']; $databases['multi']=Array(); $databases['multi_praefix']=Array(); $databases['multi_commandbeforedump']=Array(); $databases['multi_commandafterdump']=Array(); if (isset($databases['Name'][0]) && $databases['Name'][0] > '') { for ($i=0; $i < count($databases['Name']); $i++) { $databases['praefix'][$i]=isset($_POST['dbpraefix_' . $i]) ? $_POST['dbpraefix_' . $i] : ''; $databases['command_before_dump'][$i]=( !isset($_POST['command_before_' . $i]) ) ? "" : $_POST['command_before_' . $i]; $databases['command_after_dump'][$i]=( !isset($_POST['command_after_' . $i]) ) ? "" : $_POST['command_after_' . $i]; if (isset($_POST['db_multidump_' . $i]) && $_POST['db_multidump_' . $i] == "db_multidump_$i") { $databases['multi'][]=$databases['Name'][$i]; $databases['multi_praefix'][]=$databases['praefix'][$i]; $databases['multi_commandbeforedump'][]=$databases['command_before_dump'][$i]; $databases['multi_commandafterdump'][]=$databases['command_after_dump'][$i]; } } } $databases['multisetting']=( count($databases['multi']) > 0 ) ? implode(";",$databases['multi']) : ""; $databases['multisetting_praefix']=( count($databases['multi']) > 0 ) ? implode(";",$databases['multi_praefix']) : ""; $databases['multisetting_commandbeforedump']=( count($databases['multi']) > 0 ) ? implode(";",$databases['multi_commandbeforedump']) : ""; $databases['multisetting_commandafterdump']=( count($databases['multi']) > 0 ) ? implode(";",$databases['multi_commandafterdump']) : ""; if ($config['cron_dbindex'] == -2) { $datenbanken=count($databases['Name']); $cron_db_array=str_replace(";","|",$databases['multisetting']); $cron_dbpraefix_array=str_replace(";","|",$databases['multisetting_praefix']); $cron_db_cbd_array=str_replace(";","|",$databases['multisetting_commandbeforedump']); $cron_db_cad_array=str_replace(";","|",$databases['multisetting_commandafterdump']); } elseif ($config['cron_dbindex'] == -3) { $cron_db_array=implode("|",$databases['Name']); $cron_dbpraefix_array=implode("|",$databases['praefix']); $cron_db_cbd_array=implode("|",$databases['command_before_dump']); $cron_db_cad_array=implode("|",$databases['command_after_dump']); } $config['ftp_transfer']=array(); $config['ftp_timeout']=array(); $config['ftp_mode']=array(); $config['ftp_useSSL']=array(); for ($i=0; $i < 3; $i++) { $checkFTP[$i]=""; $config['ftp_transfer'][$i]=isset($_POST['ftp_transfer'][$i]) ? $_POST['ftp_transfer'][$i] : $config['ftp_transfer'][$i]; $config['ftp_timeout'][$i]=isset($_POST['ftp_timeout'][$i]) ? $_POST['ftp_timeout'][$i] : 30; $config['ftp_useSSL'][$i]=isset($_POST['ftp_useSSL'][$i]) ? 1 : 0; $config['ftp_mode'][$i]=isset($_POST['ftp_mode'][$i]) ? 1 : 0; $config['ftp_server'][$i]=$_POST['ftp_server'][$i]; $config['ftp_port'][$i]=$_POST['ftp_port'][$i]; $config['ftp_user'][$i]=$_POST['ftp_user'][$i]; $config['ftp_pass'][$i]=$_POST['ftp_pass'][$i]; $config['ftp_dir'][$i]=stripslashes($_POST['ftp_dir'][$i]); if ($config['ftp_port'][$i] == 0) $config['ftp_port'][$i]=21; if ($config['ftp_dir'][$i] == "" || ( strlen($config['ftp_dir'][$i]) > 1 && substr($config['ftp_dir'][$i],-1) != "/" )) $config['ftp_dir'][$i].="/"; } $config['bb_width']=$_POST['bb_width']; $config['bb_textcolor']=$_POST['bb_textcolor']; $config['sql_limit']=$_POST['sql_limit']; if ($config['dbhost'] != $_POST['dbhost'] || $config['dbuser'] != $_POST['dbuser'] || $config['dbpass'] != $_POST['dbpass'] || $config['dbport'] != $_POST['dbport'] || $config['dbsocket'] != $_POST['dbsocket']) { //neue Verbindungsparameter $show_VP=true; //alte Parameter sichern $old['dbhost']=$config['dbhost']; $old['dbuser']=$config['dbuser']; $old['dbpass']=$config['dbpass']; $old['dbport']=$config['dbport']; $old['dbsocket']=$config['dbsocket']; //neu setzen $config['dbhost']=$_POST['dbhost']; $config['dbuser']=$_POST['dbuser']; $config['dbpass']=$_POST['dbpass']; $config['dbport']=$_POST['dbport']; $config['dbsocket']=$_POST['dbsocket']; if (MSD_mysql_connect()) { // neue Verbindungsdaten wurden akzeptiert -> manuelle DB-Liste von anderem User löschen if (file_exists('./' . $config['files']['dbs_manual'])) @unlink('./' . $config['files']['dbs_manual']); SetDefault(); $msg.=''; } else { //alte Werte holen $config['dbhost']=$old['dbhost']; $config['dbuser']=$old['dbuser']; $config['dbpass']=$old['dbpass']; $config['dbport']=$old['dbport']; $config['dbsocket']=$old['dbsocket']; $msg.='

' . $lang['L_WRONG_CONNECTIONPARS'] . '

'; } } // Manuelles hinzufügen einer Datenbank if ($_POST['add_db_manual'] > '') { $to_add=trim($_POST['add_db_manual']); $found=false; // Prüfen, ob die DB bereits in der Liste vorhanden ist if (isset($databases['Name'][0])) { foreach ($databases['Name'] as $existing_db) { if ($existing_db == $to_add) $found=true; } } if ($found) $add_db_message=sprintf($lang['L_DB_IN_LIST'],$to_add); else { if (MSD_mysql_connect()) { $res=mysql_selectdb($to_add,$config['dbconnection']); if (!$res === false) { $dbs_manual=array(); if (file_exists('./' . $config['files']['dbs_manual'])) $dbs_manual=file('./' . $config['files']['dbs_manual']); if (!in_array($to_add,$dbs_manual)) $dbs_manual[]=$to_add; $file_handle=fopen('./' . $config['files']['dbs_manual'],'a'); if ($file_handle) { foreach ($dbs_manual as $f) { fwrite($file_handle,$f); } fclose($file_handle); @chmod('./' . $config['files']['dbs_manual'],0777); //Menü aktualisieren, damit die DB in der Selectliste erscheint echo ''; } else $add_db_message=sprintf($lang['L_DB_MANUAL_FILE_ERROR'],$to_add); } else $add_db_message=sprintf($lang['L_DB_MANUAL_ERROR'],$to_add); $showVP=true; } } } //Nach einer Uebernahme einer neuen Configuration vor dem Schreiben ueberfluessige Indexe entfernen $anzahl_datenbanken=sizeof($databases['Name']); if (sizeof($databases['praefix']) > $anzahl_datenbanken) { for ($i=sizeof($databases['praefix']); $i >= $anzahl_datenbanken; $i--) { unset($databases['praefix'][$i]); unset($databases['command_before_dump'][$i]); unset($databases['command_after_dump'][$i]); } if ($databases['db_selected_index'] >= $anzahl_datenbanken) $databases['db_selected_index']=0; } // und wegschreiben if ($save_config) { if (WriteParams(false) == true) { //neue Sprache? Dann Menue links auch aktualisieren if ($_SESSION['config']['language'] != $config['language'] || $_POST['scaption_old'] != $config['interface_server_caption'] || $oldtheme != $config['theme'] || $oldscposition != $config['interface_server_caption_position']) { $msg.=''; if (isset($_POST['cron_savepath_new']) && $_POST['cron_savepath_new'] > '') $msg.='

' . $lang['L_SUCCESS_CONFIGFILE_CREATED'] . '

'; } //Parameter laden read_config($config['config_file']); if ($config['logcompression'] != $oldlogcompression) DeleteLog(); $msg.='

' . sprintf($lang['L_SAVE_SUCCESS'],$config['config_file']) . '

'; $msg.=''; } else $msg.='

' . $lang['L_SAVE_ERROR'] . '

'; } } ReadSQL(); ?> ' . $nl; $aus['formstart'].='
'; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; $aus['formstart'].='
' . $nl; //$aus['formstart'].='
' . $nl; //$aus['formstart'].=''; $aus['formstart'].='


' . $nl; $aus['formstart'].='' . $nl; //$aus['formstart'].='' . $nl; $aus['formstart'].='
' . $msg . $nl; // Konfigurationsdateien $aus['conf']='
' . $lang['L_CONFIGFILES'] . '' . $nl . $nl; $aus['conf'].=''; $aus['conf'].=''; $aus['conf'].=''; $aus['conf'].=''; $aus['conf'].='
' . $lang['L_CREATE_CONFIGFILE'] . ':' . print_save_button() . '
'; $aus['conf'].='
'; $aus['conf'].=''; $i=0; $old_config=$config; $configs=get_config_filenames(); if (sizeof($configs) > 0) { foreach ($configs as $c) { $i++; unset($databases); read_config($c); $aus['conf'].=''; $aus['conf'].=''; // Einstellungen $aus['conf'].=''; $aus['conf'].=''; } } $configfile=$old_config['config_file']; $config=$old_config; unset($databases); $databases=array(); read_config($configfile); $aus['conf'].='
#' . $lang['L_CONFIGFILE'] . ' / ' . $lang['L_MYSQL_DATA'] . '' . $lang['L_CONFIGURATIONS'] . '' . $lang['L_ACTION'] . '
' . $i . '.'; $aus['conf'].=''; $aus['conf'].=''; // filename $aus['conf'].=''; $aus['conf'].=''; $aus['conf'].=''; // Datenbankliste anzeigen $aus['conf'].=''; $aus['conf'].='
' . $lang['L_NAME'] . ':' . $c . '
' . $lang['L_DB_HOST'] . ':' . $config['dbhost'] . '
' . $lang['L_DB_USER'] . ':' . $config['dbuser'] . '
'; $aus['conf'].=$lang['L_DBS'] . ':'; $aus['conf'].=''; $aus['conf'].=$icon['search'] . '' . sizeof($databases['Name']) . ''; $aus['conf'].='
'; $aus['conf'].='
'; // String aus Multidump-DBs aufbauen $toolboxstring=''; $databases['multi']=array(); if (isset($databases['multisetting'])) $databases['multi']=explode(";",$databases['multisetting']); $multi_praefixe=array(); if (isset($databases['multisetting_praefix'])) $multi_praefixe=explode(";",$databases['multisetting_praefix']); if (is_array($databases['multi'])) { for ($x=0; $x < sizeof($databases['multi']); $x++) { if ($x > 0) $toolboxstring.=', '; $toolboxstring.=$databases['multi'][$x]; if (isset($multi_praefixe[$x]) && $multi_praefixe[$x] > '') $toolboxstring.=' (\'' . $multi_praefixe[$x] . '\')'; } } // DB-Liste fuer PHP if ($config['multi_dump'] == 1) // Multidump { $aus['conf'].=table_output($lang['L_BACKUP_DBS_PHP'],$toolboxstring); } else { // aktuelle DB $text=isset($databases['db_actual']) ? $databases['db_actual'] : ''; if (isset($databases['db_selected_index']) && isset($databases['praefix'][$databases['db_selected_index']]) && $databases['praefix'][$databases['db_selected_index']] > '') $text.=" ('" . $databases['praefix'][$databases['db_selected_index']] . "')"; $aus['conf'].=table_output($lang['L_BACKUP_DBS_PHP'],$text); } // DB-Liste fuer Perl // Fallback falls aus alten Konfigurationsdateien der Index noch nicht gesetzt ist -> alle DBs sichern if (!isset($config['cron_dbindex'])) $config['cron_dbindex']=-3; if ($config['cron_dbindex'] == -2) { $aus['conf'].=table_output($lang['L_BACKUP_DBS_PERL'],$toolboxstring); } elseif ($config['cron_dbindex'] == -3) { $text=$lang['L_ALL']; $aus['conf'].=table_output($lang['L_BACKUP_DBS_PERL'],$text); } else { $text=isset($databases['Name'][$config['cron_dbindex']]) ? $databases['Name'][$config['cron_dbindex']] : ''; if (isset($databases['praefix'][$config['cron_dbindex']]) && $databases['praefix'][$config['cron_dbindex']] > '') $text.=" ('" . $databases['praefix'][$config['cron_dbindex']] . "')"; $aus['conf'].=table_output($lang['L_BACKUP_DBS_PERL'],$text); } if ($config['multi_part'] == 1) // Multipart { $aus['conf'].=table_output($lang['L_MULTI_PART'],$lang['L_YES'] . ", " . $lang['L_FILESIZE'] . " " . byte_output($config['multipart_groesse'])); } if ($config['send_mail'] == 1) //Email { $aus['conf'].=table_output($lang['L_SEND_MAIL_FORM'],$lang['L_YES'] . ", " . $lang['L_EMAIL_ADRESS'] . ": " . $config['email_recipient']); if ($config['email_recipient_cc'] > '') $aus['conf'].=table_output($lang['L_EMAIL_CC'],$config['email_recipient_cc']); $text=$lang['L_YES'] . ", " . $lang['L_MAX_UPLOAD_SIZE'] . ": "; $bytes=$config['email_maxsize1'] * 1024; if ($config['email_maxsize2'] == 2) $bytes=$bytes * 1024; $text.=byte_output($bytes); if ($config['send_mail_dump'] == 1) $aus['conf'].=table_output($lang['L_SEND_MAIL_DUMP'],$text); } for ($x=0; $x < 3; $x++) { if (isset($config['ftp_transfer'][$x]) && $config['ftp_transfer'][$x] > 0) { //$aus['conf'].=table_output($lang['L_FTP'],sprintf($lang['L_FTP_SEND_TO'],$config['ftp_server'][$x],$config['ftp_dir'][$x]),1,2); $aus['conf'].=table_output($lang['L_FTP'],sprintf($lang['L_FTP_SEND_TO'],$config['ftp_server'][$x],$config['ftp_dir'][$x])); } } $aus['conf'].='
'; $aus['conf'].='' . $icon['edit'] . ''; if ($c != 'mysqldumper') // && $old_config['config_file']!=$c) $aus['conf'].='' . $icon['delete'] . ''; else $aus['conf'].=' '; $aus['conf'].='
'; $aus['conf'].='
' . $nl . $nl; // Zugangsdaten $aus['db']='
' . $lang['L_CONNECTIONPARS'] . '' . $nl . $nl; $aus['db'].='
' . $lang['L_FADE_IN_OUT'] . '
' . $lang['L_DB_BACKUPPARS'] . ''; $aus['db'].=''; //Wenn Datenbanken vorhanden sind if (isset($databases['Name'][0]) && $databases['Name'][0] > '') { if (!isset($databases['multi']) || ( !is_array($databases['multi']) )) $databases['multi']=array(); if (count($databases['Name']) == 1) { $databases['db_actual']=$databases['Name'][0]; $databases['db_selected_index']=0; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; } else { $aus['db'].=''; $aus['db'].=''; $aus['db'].='
' . Help($lang['L_HELP_DB'],"conf1") . $lang['L_LIST_DB'] . '' . $databases['db_actual'] . '
' . Help($lang['L_HELP_PRAEFIX'],"conf2") . $lang['L_PRAEFIX'] . '
' . Help($lang['L_HELP_COMMANDS'],"") . 'Command before Dump' . ComboCommandDump(0,$databases['db_selected_index']) . '
' . Help($lang['L_HELP_COMMANDS'],"") . 'Command after Dump' . ComboCommandDump(1,$databases['db_selected_index']) . '' . $lang['L_SQL_BEFEHLE'] . '
' . Help($lang['L_HELP_DB'],"conf1") . $lang['L_LIST_DB'] . ' ' . $lang['L_ACTIVATE_MULTIDUMP'] . '
'; $aus['db'].=''; $aus['db'].=''; //erst die aktuelle DB $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $dbacombo=$dbbcombo=""; $j=0; for ($i=0; $i < count($databases['Name']); $i++) { if ($i != $databases['db_selected_index']) { $j++; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; $aus['db'].=''; } } } } else $aus['db'].=''; $aus['db'].='
' . $lang['L_DB'] . 'Multidump
(' . $lang['L_ALL'] . ' ' . $lang['L_NONE'] . ')
' . Help($lang['L_HELP_PRAEFIX'],"conf2") . $lang['L_PRAEFIX'] . '' . Help($lang['L_HELP_COMMANDS'],"",11) . 'Command before Dump' . Help($lang['L_HELP_COMMANDS'],"",11) . 'Command after Dump' . $lang['L_SQL_BEFEHLE'] . '
' . $databases['db_actual'] . '' . ComboCommandDump(0,$databases['db_selected_index']) . '' . ComboCommandDump(1,$databases['db_selected_index']) . '' . $lang['L_SQL_BEFEHLE'] . '
' . $databases['Name'][$i] . '' . ComboCommandDump(0,$i) . '' . ComboCommandDump(1,$i) . '' . $lang['L_SQL_BEFEHLE'] . '
' . $lang['L_NO_DB_FOUND'] . '
'; // sonstige Einstellungen $aus['global1']='
' . $lang['L_GENERAL'] . ''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].='
' . Help("","") . 'Logfiles:  ' . $lang['L_COMPRESSED'] . '
'; $aus['global1'].='' . $lang['L_MAXSIZE'] . ':    '; $aus['global1'].='
' . Help($lang['L_HELP_MEMORYLIMIT'],"") . $lang['L_MEMORY_LIMIT'] . ':  '; $aus['global1'].=' Bytes   ' . $lang['L_AUTODETECT'] . ''; $aus['global1'].='
' . Help($lang['L_HELP_SPEED'],"") . $lang['L_SPEED'] . ':  ' . $lang['L_TO'] . ' 
' . $lang['L_DUMP'] . ''; $aus['global1'].=''; $aus['global1'].=''; //Multipart-Backup --> $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].=''; $aus['global1'].='
' . Help($lang['L_HELP_ZIP'],"conf3") . $lang['L_GZIP'] . ':  ' . $lang['L_ACTIVATED']; $aus['global1'].='    ' . $lang['L_NOT_ACTIVATED'] . '
' . Help($lang['L_HELP_MULTIPART'],"") . $lang['L_MULTI_PART'] . ': '; $aus['global1'].=' ' . $lang['L_YES']; $aus['global1'].='   ' . $lang['L_NO']; $aus['global1'].='
' . Help($lang['L_HELP_MULTIPARTGROESSE'],"") . $lang['L_MULTI_PART_GROESSE'] . ':  '; $aus['global1'].='Kilobytes
' . Help($lang['L_HELP_OPTIMIZE'],"") . $lang['L_OPTIMIZE'] . ' ' . $lang['L_ACTIVATED']; $aus['global1'].='    ' . $lang['L_NOT_ACTIVATED'] . '
' . $lang['L_RESTORE'] . ''; $aus['global1'].=''; $aus['global1'].='
' . Help($lang['L_HELP_EMPTY_DB_BEFORE_RESTORE'],"conf4") . $lang['L_EMPTY_DB_BEFORE_RESTORE'] . ': '; $aus['global1'].=' ' . $lang['L_YES']; $aus['global1'].='    ' . $lang['L_NO']; $aus['global1'].='
' . Help("","") . $lang['L_ERRORHANDLING_RESTORE'] . ''; $aus['global1'].=' ' . $lang['L_EHRESTORE_CONTINUE'] . '
'; $aus['global1'].=' ' . $lang['L_EHRESTORE_STOP']; $aus['global1'].='
'; $aus['global1'].=print_save_button(); $aus['global1'].='
'; //Interface --> $aus['global3']='
' . $lang['L_CONFIG_INTERFACE'] . ''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].='
' . Help($lang['L_HELP_LANG'],"conf11") . $lang['L_LANGUAGE'] . ':   ' . $lang['L_DOWNLOAD_LANGUAGES'] . '
' . Help($lang['L_HELP_SERVERCAPTION'],"") . $lang['L_SERVERCAPTION'] . ': ' . $lang['L_ACTIVATED'] . '   '; $aus['global3'].=' ' . $lang['L_IN_MAINFRAME'] . '   ' . $lang['L_IN_LEFTFRAME'] . ''; $aus['global3'].='
' . Help("","") . 'Theme  ' . $lang['L_DOWNLOAD_STYLES'] . '
' . $lang['L_SQL_BROWSER'] . ''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].='
' . Help("","") . $lang['L_SQLBOXHEIGHT'] . ':  Pixel
' . Help("","") . $lang['L_SQLLIMIT'] . ':  
' . Help("","") . $lang['L_BBPARAMS'] . ': '; $aus['global3'].=''; $aus['global3'].=''; $aus['global3'].='
' . $lang['L_WIDTH'] . ': pixel
' . $lang['L_BBTEXTCOLOR'] . ': 
'; $aus['global3'].='
' . Help("","") . 'SQL-Grid:  normal   '; $aus['global3'].=' compact
' . print_save_button() . '
'; //automatisches Löschen--> $aus['global2']='
' . $lang['L_CONFIG_AUTODELETE'] . ''; $aus['global2'].=''; $aus['global2'].=''; $aus['global2'].=''; $aus['global2'].='
' . Help($lang['L_HELP_AD1'],"conf8") . $lang['L_AUTODELETE'] . ':  ' . $lang['L_ACTIVATED']; $aus['global2'].='    ' . $lang['L_NOT_ACTIVATED']; $aus['global2'].='
' . Help($lang['L_HELP_AD3'],"conf10") . $lang['L_NUMBER_OF_FILES_FORM'] . ':  '; $aus['global2'].='
' . print_save_button() . '
'; //Email--> if (!isset($config['email_recipient_cc'])) $config['email_recipient_cc']=''; // backwards compatibility if field is undefined $aus['transfer1']='
' . $lang['L_CONFIG_EMAIL'] . ''; $aus['transfer1'].=''; $aus['transfer1'].=''; $aus['transfer1'].=''; $aus['transfer1'].=''; $aus['transfer1'].=''; $aus['transfer1'].=''; $aus['transfer1'].='
' . $lang['L_SEND_MAIL_FORM'] . ':  ' . $lang['L_YES']; $aus['transfer1'].='    ' . $lang['L_NO']; $aus['transfer1'].='
' . $lang['L_EMAIL_ADRESS'] . ': 
' . $lang['L_EMAIL_CC'] . ': 
' . $lang['L_EMAIL_SENDER'] . ': 
' . $lang['L_SEND_MAIL_DUMP'] . ': '; $aus['transfer1'].=' ' . $lang['L_YES']; $aus['transfer1'].='    ' . $lang['L_NO']; $aus['transfer1'].='
' . $lang['L_EMAIL_MAXSIZE'] . ': '; $aus['transfer1'].='  '; $aus['transfer1'].='
' . $lang['L_CRON_MAILPRG'] . ': '; $aus['transfer1'].=''; $aus['transfer1'].='
 sendmail
 SMTP
 SMTP-Port: ' . $config['cron_smtp_port'] . '
' . print_save_button() . '
'; //FTP--> $aus['transfer2']='
' . $lang['L_CONFIG_FTP'] . ''; for ($i=0; $i < 3; $i++) { $aus['transfer2'].='
FTP-Connection ' . ( $i + 1 ) . ''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].='
' . Help($lang['L_HELP_FTPTRANSFER'],"") . $lang['L_FTP_TRANSFER'] . ':  ' . $lang['L_ACTIVATED']; $aus['transfer2'].='    ' . $lang['L_NOT_ACTIVATED'] . '
' . Help($lang['L_HELP_FTPTIMEOUT'],"") . $lang['L_FTP_TIMEOUT'] . ':  sec
' . Help($lang['L_HELP_FTP_MODE'],"") . $lang['L_FTP_CHOOSE_MODE'] . ':  '; $aus['transfer2'].=$lang['L_FTP_PASSIVE'] . '
'; $aus['transfer2'].='
' . Help($lang['L_HELP_FTPSSL'],"") . $lang['L_FTP_SSL'] . ': '; $aus['transfer2'].=' ' . $lang['L_FTP_USESSL'] . '
'; $aus['transfer2'].='

' . $checkFTP[$i] . '
'; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].=''; $aus['transfer2'].='
' . Help($lang['L_HELP_FTPSERVER'],"conf14",12) . $lang['L_FTP_SERVER'] . ': 
' . Help($lang['L_HELP_FTPPORT'],"conf15",12) . $lang['L_FTP_PORT'] . ': 
' . Help($lang['L_HELP_FTPUSER'],"conf16",12) . $lang['L_FTP_USER'] . ': 
' . Help($lang['L_HELP_FTPPASS'],"conf17",12) . $lang['L_FTP_PASS'] . ': 
' . Help($lang['L_HELP_FTPDIR'],"conf18",12) . $lang['L_FTP_DIR'] . ': 
' . print_save_button() . '
'; } $aus['transfer2'].='
'; //Crondump $aus['cron']='
' . $lang['L_CONFIG_CRONPERL'] . ''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].=''; // comment $aus['cron'].=''; $aus['cron'].=''; $aus['cron'].='
' . Help($lang['L_HELP_CRONEXTENDER'],"") . $lang['L_CRON_EXTENDER'] . ':  .pl'; $aus['cron'].='    .cgi'; $aus['cron'].='
' . Help($lang['L_HELP_CRONEXECPATH'],"") . $lang['L_CRON_EXECPATH'] . ': 
' . Help($lang['L_HELP_CRONPRINTOUT'],"") . $lang['L_CRON_PRINTOUT'] . ':  ' . $lang['L_YES']; $aus['cron'].='    ' . $lang['L_NO'] . '
' . Help($lang['L_HELP_CRONCOMPLETELOG'],"") . $lang['L_CRON_COMPLETELOG'] . ':  ' . $lang['L_YES']; $aus['cron'].='    ' . $lang['L_NO'] . '
' . Help($lang['L_HELP_CRONDBINDEX'],"conf14") . $lang['L_CRON_CRONDBINDEX'] . ': ' . "\n"; $aus['cron'].='
' . $lang['L_CRON_COMMENT'] . ': 
' . print_save_button() . '
'; //Formular-Buttons --> $aus['formende']='

'; // AUSGABE echo $aus['formstart']; echo $aus['db']; echo $aus['global1']; echo $aus['global2']; echo $aus['global3']; echo $aus['transfer1']; echo $aus['transfer2']; echo $aus['cron']; echo $aus['conf']; echo $aus['formende']; echo ''; echo MSDFooter(); $_SESSION['config']=$config; ob_end_flush();