die(); } } } elseif($Step == 3) { $d_pos = (double) $_REQUEST["d_pos"]; if ($d_pos < 0) $d_pos = 0; $oDB = new CDBRestore($_REQUEST["DBHost"], $_REQUEST["DBName"], $_REQUEST["DBLogin"], $_REQUEST["DBPassword"], $_REQUEST["dump_name"], $d_pos); $oDB->LocalCloud = $_REQUEST['LocalCloud']; if(!$oDB->Connect()) { $strErrMsg = $oDB->getError(); $Step = 2; $bSelectDumpStep = true; } } ##################################### GUI ################################# if(!$Step) { $ar = array( 'TITLE' => getMsg("TITLE0", LANG), 'TEXT' => ($strErrMsg ? '<div style="color:red;padding:10px;border:1px solid red">'.$strErrMsg.'</div>' : '').
$Step = IntVal(@$_REQUEST["Step"]); if ($Step <= 0) $Step = 1; if($Step == 3) { $max_exec_time = @$_REQUEST["time"]; $d_pos = intVal(@$_REQUEST["d_pos"]); if ($d_pos < 0) $d_pos = 0; $oDB = new CDBRestore(@$_REQUEST["db_host"], @$_REQUEST["db_name"], @$_REQUEST["db_user"], @$_REQUEST["db_pass"], @$_REQUEST["dump_name"], START_EXEC_TIME, $max_exec_time, $d_pos); if(!$oDB->Connect()) { echo showMsg(getMsg("ERR_DB_CONNECT", $lang), $oDB->getError()); $Step = 2; } } if($Step == 1) { ?> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr><td colspan="6" class="tabletitle1" align="Left" nowrap="nowrap" valign="center"><?php echo getMsg("TITLE1", $lang); ?> </td></tr> <tr> <td colspan="6" class="tableborder2" height="1"></td> </tr>