Revision af6f0a3a
Added by Scott Ullrich almost 17 years ago
usr/local/www/pkg_mgr_install.php | ||
---|---|---|
124 | 124 |
$static_output .= "\nPackage deleted."; |
125 | 125 |
update_output_window($static_output); |
126 | 126 |
break; |
127 |
case "showlog": |
|
128 |
$id = htmlspecialchars($_GET['pkg']); |
|
129 |
if(strpos($id, ".")) |
|
130 |
exit; |
|
131 |
update_output_window(file_get_contents("/tmp/pkg_mgr_{$id}.log")); |
|
132 |
break; |
|
127 | 133 |
case "reinstallpkg": |
128 | 134 |
$id = get_pkg_id(htmlspecialchars($_GET['pkg'])); |
129 | 135 |
$todel = substr(reverse_strrchr($config['installedpackages']['package'][$id]['depends_on_package'], "."), 0, -1); |
Also available in: Unified diff
Allow outputting of package log with mode=showlog&pkg=ntop for example.