} </style> <? } elseif($Step == 2) { if(!$bSelectDumpStep) { $tar = new CTarRestore; $tar->path = $_SERVER['DOCUMENT_ROOT']; $tar->ReadBlockCurrent = intval($_REQUEST['ReadBlockCurrent']); $tar->EncryptKey = $_REQUEST['EncryptKey']; $bottom = '<input type="button" value="'.getMsg('BUT_TEXT_BACK').'" onClick="document.location=\'/restore.php?Step=1&lang='.LANG.'\'"> '; if ($rs = $tar->openRead($file1 = $file = $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name)) { $DataSize = intval($_REQUEST['DataSize']); $skip = ''; if(!$DataSize) // first step { $Block = $tar->Block; if (!$ArchiveSize = $tar->getDataSize($file)) $ArchiveSize = filesize($file) * 2; // for standard gzip files $DataSize = $ArchiveSize; while(file_exists($file1 = CTar::getNextName($file1))) $DataSize += $ArchiveSize; $r = true;
{ padding:5px; } </style> <? } elseif($Step == 2) { if(!$bSelectDumpStep) { $tar = new CTarRestore; $tar->path = $_SERVER['DOCUMENT_ROOT']; $tar->ReadBlockCurrent = intval($_REQUEST['ReadBlockCurrent']); $bottom = '<input type="button" value="'.getMsg('BUT_TEXT_BACK').'" onClick="document.location=\'/restore.php?Step=1&lang='.LANG.'\'"> '; if ((file_exists($f = $_SERVER['DOCUMENT_ROOT'].'/'.$arc_name)) && $tar->openRead($f)) { $DataSize = intval($_REQUEST['DataSize']); if(!isset($_REQUEST['Block'])) // first step { $DataSize = $tar->getArchiveSize(); while(file_exists($file = $tar->getNextName($file))) $DataSize += $tar->getArchiveSize($file); SetCurrentProgress(0); $r = true; } else { $Block = intval($_REQUEST['Block']); $tar->Skip($Block); while(($r = $tar->extractFile()) && haveTime());