pparse('tplGlobalHeader'); $tplMenu->pparse('tplMenu'); // Konverter $selectfile = (isset($_POST['selectfile'])) ? $_POST['selectfile'] : ''; $destfile = (isset($_POST['destfile'])) ? $_POST['destfile'] : ''; $compressed = (isset($_POST['compressed'])) ? $_POST['compressed'] : ''; include ('./inc/define_icons.php'); $doConversion = false; if ($selectfile != '' & file_exists($config['paths']['backup'] . $selectfile) && strlen($destfile) > 2) { $doConversion = true; } $tpl = new MSDTemplate(); $tpl->set_filenames(array('show' => 'tpl/filemanagement/converter.tpl')); $tpl->assign_vars( array( 'SELECTBOX_FILE_LIST' => getFilelisteCombo($selectfile), 'NEW_FILE' => Html::replaceQuotes($destfile), 'NEW_FILE_COMPRESED' => $compressed == 1 ? ' checked="checked"' : '', 'ICON_GZ' => $icon['gz'] ) ); if ($doConversion) { $tpl->assign_block_vars('AUTOSCROLL', array()); } $tpl->pparse('show'); flush(); if (isset($_POST['startconvert'])) { echo $lang['L_CONVERTING'] . ' ' . $selectfile . ' ==> ' . $destfile . '.sql'; if ($compressed == 1) { echo '.gz'; } if ($doConversion) { convert($selectfile, $destfile, $compressed); } else { echo '

' . $lang['L_CONVERT_WRONG_PARAMETERS'] . '

'; } } if ($doConversion) { ?>