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

"") foreach($config['installedpackages']['package'] as $package) $todo[] = array('name' => $package['name'], 'version' => $package['version']); foreach($todo as $pkgtodo) { $static_output = ""; update_output_window($static_output); delete_package($pkgtodo['name'] . '-' . $pkgtodo['version']); delete_package_xml($pkgtodo['name']); install_package($pkgtodo['name']); } update_status("All packages reinstalled."); $static_output .= "\n\nAll packages reinstalled."; start_service($_GET['pkg']); update_output_window($static_output); break; default: $status = install_package($_GET['id']); if($status == -1) { update_status("Installation of {$_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); ?>