#!/usr/local/bin/php

System: Package Manager: Install Package


$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 fclose($fd_log); ?>