/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."; } else { update_status("Installation of " . $_GET['id'] ." completed."); $static_output .= "\n\nInstallation completed. Please check to make sure that the package is configured from the respective menu then start the package."; } update_output_window($static_output); } // 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); ?>