/images/misc/bar_blue.gif' width='0' height='15' name='progressbar' id='progressbar'>

$package['name'], 'version' => $package['version']); $pkg_id = 0; foreach($todo as $pkgtodo) { $static_output = ""; if($pkgtodo['name']) { update_output_window($static_output); delete_package($pkgtodo['name'] . '-' . $pkgtodo['version'], $pkg_id); delete_package_xml($pkgtodo['name']); install_package($pkgtodo['name']); $pkg_id++; } } update_status("All packages reinstalled."); $static_output .= "\n\nAll packages reinstalled."; start_service(htmlspecialchars($_GET['pkg'])); update_output_window($static_output); break; default: $status = install_package(htmlspecialchars($_GET['id'])); if($status == -1) { update_status("Installation of " . htmlspecialchars($_GET['id']) . " FAILED!"); $static_output .= "\n\nInstallation halted."; update_output_window($static_output); } else { $filename = escapeshellcmd("/tmp/" . $_GET['pkg'] . ".info"); $fd = fopen($filename, "w"); $status_a = "Installation of " . htmlspecialchars($_GET['id']) . " completed."; update_status($status_a); $status = get_after_install_info($_GET['id']); if($status) $static_output .= "\nInstallation completed.\n\n{$_GET['id']} setup instructions:\n\n{$status}"; else $static_output .= "\nInstallation completed. Please check to make sure that the package is configured from the respective menu then start the package."; fwrite($fd, $status_a . "\n\n". $static_output); fclose($fd); echo ""; } } // Delete all temporary package tarballs and staging areas. unlink_if_exists("/tmp/apkg_*"); rmdir_recursive("/var/tmp/instmp*"); /* read only fs */ conf_mount_ro(); // close log if($fd_log) fclose($fd_log); ?>