summaryrefslogtreecommitdiffstats
path: root/usr/local/www/pkg_mgr_install.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-23 05:03:39 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-23 05:03:39 +0000
commitaf6f0a3aa9baa78b89c2f78a48a8138ebc08d6a2 (patch)
tree93a75635cb7f1b56c60e2021a2831d0ecb7944b3 /usr/local/www/pkg_mgr_install.php
parent708e63459a480a5ca7bf92331ebae1d09f47ea23 (diff)
downloadpfsense-af6f0a3aa9baa78b89c2f78a48a8138ebc08d6a2.zip
pfsense-af6f0a3aa9baa78b89c2f78a48a8138ebc08d6a2.tar.gz
Allow outputting of package log with mode=showlog&pkg=ntop for example.
Diffstat (limited to 'usr/local/www/pkg_mgr_install.php')
-rwxr-xr-xusr/local/www/pkg_mgr_install.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/pkg_mgr_install.php b/usr/local/www/pkg_mgr_install.php
index 121995f..ec5e8bc 100755
--- a/usr/local/www/pkg_mgr_install.php
+++ b/usr/local/www/pkg_mgr_install.php
@@ -124,6 +124,12 @@ switch($_GET['mode']) {
$static_output .= "\nPackage deleted.";
update_output_window($static_output);
break;
+ case "showlog":
+ $id = htmlspecialchars($_GET['pkg']);
+ if(strpos($id, "."))
+ exit;
+ update_output_window(file_get_contents("/tmp/pkg_mgr_{$id}.log"));
+ break;
case "reinstallpkg":
$id = get_pkg_id(htmlspecialchars($_GET['pkg']));
$todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1);
OpenPOWER on IntegriCloud