#!/usr/local/bin/php

/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."; update_output_window($static_output); break; default: install_package($_GET['id']); update_status("Installation of {$_GET['id']} completed."); $static_output .= "\n\nInstallation completed."; 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); ?>