From a7f908dbec43e9764b084ddd8c066f0de8ecc28a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 12 Dec 2004 20:05:38 +0000 Subject: * Add pkg.php which will parse the package xml file and present an interface (see http://www.pfsense.com/screens/pkg.JPG ) * Correct behavior of pkg_mgr.php when multiple packages are included * Other minor cleanups --- usr/local/www/edit.php | 27 +++++++++ usr/local/www/pkg.php | 106 ++++++++++++++++++++++++++++++++++++ usr/local/www/pkg_mgr.php | 8 +-- usr/local/www/pkg_mgr_install.php | 2 +- usr/local/www/pkg_mgr_installed.php | 4 -- 5 files changed, 135 insertions(+), 12 deletions(-) create mode 100755 usr/local/www/pkg.php (limited to 'usr') diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index e57edbf..5ff055d 100755 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -1,5 +1,32 @@ #!/usr/local/bin/php + + + +<?=gentitle_pkg($title);?> + + + + + + +

+
+ + + + + +
+ + + " . $column['fielddescr'] . ""; + $cols++; + } + echo ""; + if($pfSense_config[$config_path]['item']) { + foreach ($pkg['adddeleteeditpagefields']['columnitem'] as $column) { ?> + + + + + + +
+ XXX: TODO + +   +
+
+
+ + + + diff --git a/usr/local/www/pkg_mgr.php b/usr/local/www/pkg_mgr.php index d496450..2610346 100755 --- a/usr/local/www/pkg_mgr.php +++ b/usr/local/www/pkg_mgr.php @@ -5,10 +5,6 @@ Copyright (C) 2004 Scott Ullrich All rights reserved. - originally part of m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2004 Manuel Kasper . - All rights reserved. - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -130,10 +126,8 @@ if(!$pkg_config['packages']) { - - - + diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php index 9b6bf9a..af46a39 100755 --- a/usr/local/www/pkg_mgr_install.php +++ b/usr/local/www/pkg_mgr_install.php @@ -277,7 +277,7 @@ fwrite($fd_log, "End of Package Manager installation session.\n"); // return dependency list to output later. $command = "TODELETE=`ls /var/db/pkg | grep " . $name . "` && /usr/sbin/pkg_info -r \$TODELETE | grep Dependency: | cut -d\" \" -f2"; $dependencies = exec_command_and_return_text($command); -fwrite($fd_log, "Installed " . $name . " and the following depdencies:\n" . $dependencies); +fwrite($fd_log, "Installed " . $name . " and the following dependencies:\n" . $dependencies); $status = exec_command_and_return_text("ls /var/db/pkg | grep " . $pkgent['name']); fwrite($fd_log, "ls /var/db/pkg | grep " . $pkgent['name'] . "\n" . $status); diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php index 9eb7152..a2fc43a 100755 --- a/usr/local/www/pkg_mgr_installed.php +++ b/usr/local/www/pkg_mgr_installed.php @@ -5,10 +5,6 @@ Copyright (C) 2004 Scott Ullrich All rights reserved. - originally part of m0n0wall (http://m0n0.ch/wall) - Copyright (C) 2003-2004 Manuel Kasper . - All rights reserved. - Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: -- cgit v1.1