{ border:1px solid #CCCCCC; padding:10px; } .t_div { padding:5px; } </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))
{ border:1px solid #CCCCCC; padding:10px; } .t_div { 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; }