0) { $pct=round(($myprogress/ $totalnum)*100); } else $pct = 100; $o .='  '.$caption.'

'.section_header('Step 2 - '.$caption.' - '.$pct.'%', true).'
Next Category  
"; //$o .= ""; //$o .= "
'; echo "\n"; $o .= "

"; $comp_pct = 100-$pct; $o .= " "; $o .= "
 


"; //$o .= " "; //$o .=" "; //$comp_pct = 100-$pct; //$o .= " "; //$o .= "
 
"; //$o .= "
"; echo $o."\n"; //echo "
"; } function reload($url) { print ""; //echo "Next "; } $TotalSize = filesize($backupfile); $MaxLines = 200; $PageTitle = "Restore In Progress"; $CancelURL = $rootURL ."admin/install.php"; stats($PageTitle,$FileOffset,$TotalSize); if($FileOffset < $TotalSize) { $FileOffset = RunRestoreFile($ado,$backupfile,$FileOffset,$MaxLines); if($FileOffset>-1) { if ($_POST['next_step']) { $next_step = $_POST['next_step']; } else if ($_GET['next_step']) { $next_step = $_GET['next_step']; } //$next_step--; if($FileOffset ==0) $FileOffset = $TotalSize; $backupfile = SuperStrip($backupfile); $url = $_SERVER['PHP_SELF']."?Offset=$FileOffset&File=$backupfile&state=restore_run&next_step=$next_step&install_type=$install_type&show_prev=1"; } else { switch($FileOffset) { case -1: $error = prompt_language("la_restore_file_error"); break; case -2: $error = prompt_language("la_restore_read_error"); break; default: $error = "(".$FileOffset.") ".prompt_language("la_restore_unknown_error"); break; } echo $error; die(); } } else { if ($_POST['next_step']) { $next_step = $_POST['next_step']; } else if ($_GET['next_step']) { $next_step = $_GET['next_step']; } $url = $_SERVER['PHP_SELF']."?state=finish&next_step=$next_step&install_type=$install_type"; } reload($url); ?>