} else rename($config, $_SERVER['DOCUMENT_ROOT']."/freetrix/.settings.restore.php"); // workaround for bug #47641 } SetCurrentProgress(0); $r = true; } else $r = $oDB->restore(); $bottom = '<input type="button" value="'.getMsg('BUT_TEXT_BACK').'" onClick="document.location=\'/restore.php?Step=2&source=dump&lang='.LANG.'\'"> '; if($r && !$oDB->is_end()) { $d_pos = $oDB->getPos(); $oDB->close(); $arc_name = $_REQUEST["arc_name"]; SetCurrentProgress($d_pos,filesize($_SERVER['DOCUMENT_ROOT'].'/freetrix/backup/'.$_REQUEST['dump_name'])); $text = $status . ' <input type="hidden" name="arc_name" value="'.htmlspecialcharsbx($arc_name).'"> <input type="hidden" name="dump_name" value="'. htmlspecialcharsbx($_REQUEST["dump_name"]).'"> <input type="hidden" name="check_site_path" value="Y"> <input type="hidden" name="d_pos" value="'.$d_pos.'"> <input type="hidden" name="DBLogin" value="'.htmlspecialcharsbx($_REQUEST["DBLogin"]).'"> <input type="hidden" name="DBPassword" value="'. (strlen($_REQUEST["DBPassword"]) > 0 ? htmlspecialcharsbx($_REQUEST["DBPassword"]) : "").'"> <input type="hidden" name="DBName" value="'. htmlspecialcharsbx($_REQUEST["DBName"]).'"> <input type="hidden" name="DBHost" value="'. htmlspecialcharsbx($_REQUEST["DBHost"]).'"> <input type="hidden" name="LocalCloud" value="'. ($_REQUEST["LocalCloud"] ? 'Y' : '').'"> '; showMsg(getMsg('TITLE_PROCESS2'),$text,$bottom);