diff options
author | Colin Smith <colin@pfsense.org> | 2005-06-05 22:15:30 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-06-05 22:15:30 +0000 |
commit | 78dde2d738ac7b6eeffd79195269d431869178d9 (patch) | |
tree | 45e2ea3c17560ab52d244ac5c2680d27d8a398dc /usr/local/www/pkg_mgr_installed.php | |
parent | 378bccb71002f95d3aae8c8a758cc6b68354e8cc (diff) | |
download | pfsense-78dde2d738ac7b6eeffd79195269d431869178d9.zip pfsense-78dde2d738ac7b6eeffd79195269d431869178d9.tar.gz |
Move installed packages over to get_pkg_info.
Diffstat (limited to 'usr/local/www/pkg_mgr_installed.php')
-rwxr-xr-x | usr/local/www/pkg_mgr_installed.php | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 2de0ee5..fbf74fc 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -29,9 +29,12 @@ */ require("guiconfig.inc"); -require("xmlparse_pkg.inc"); +require("pkg-utils.inc"); -conf_mount_rw(); +foreach($config['installedpackages']['package'] as $instpkg) { + $tocheck[] = $instpkg['name']; +} +$currentvers = get_pkg_info($tocheck, array('version')); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> @@ -86,7 +89,7 @@ include("fbegin.inc"); </td> <td class="listlr"> <?php - $latest_version = get_latest_package_version($pkg['name']); + $latest_version = $currentvers[$pkg['name']]['version']; if($latest_version == false) { // We can't determine this package's version status. echo "Upgrade: Unknown.<br>Installed: " . $pkg['version']; @@ -126,12 +129,3 @@ include("fbegin.inc"); <?php conf_mount_ro(); ?> - - - - - - - - - |