$ar['connections']['value']['default']['database'] = str_replace('$','\$',addslashes($_REQUEST['DBName'])); $ar['connections']['value']['default']['login'] = str_replace('$','\$',addslashes($_REQUEST['DBLogin'])); $ar['connections']['value']['default']['password'] = str_replace('$','\$',addslashes($_REQUEST['DBPassword'])); $data = var_export($ar, true); file_put_contents($config, "<"."?php\nreturn ".$data.";\n"); } } 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"]).'">
{ $strFile.='#'.$line. '$'.$key.' = "'.addslashes($new_val).'";'."\n\n"; } else $strFile.=$line; } else $strFile.=$line; } $f = fopen($dbconn,"wb"); fputs($f,$strFile); fclose($f); } if($oDB->restore() && !$oDB->is_end()) { $d_pos = $oDB->getPos(); $oDB->close(); $arc_name = @$_REQUEST["arc_name"]; ?> <input type="hidden" name="time" id="time_id" value="<?php echo $max_exec_time; ?> "> <input type="hidden" name="arc_name" id="arc_name_id" value="<?php echo $arc_name; ?> "> <input type="hidden" name="d_pos" id="d_pos_id" value="<?php echo $d_pos;