aboutsummaryrefslogtreecommitdiffstats
path: root/config/phpservice/phpservice_php_edit.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-02-21 14:22:52 -0700
committermcrane <mctch@yahoo.com>2009-02-21 14:22:52 -0700
commit4c7ffd6778c902a315167b85d1527d88f17004eb (patch)
treef9005b436501f2a192c54fbdabafb5561f9f51c1 /config/phpservice/phpservice_php_edit.tmp
parenta0db8c78c4df74d1b2e0e776eab69e6de3996347 (diff)
downloadpfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.tar.gz
pfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.tar.bz2
pfsense-packages-4c7ffd6778c902a315167b85d1527d88f17004eb.zip
phpservice save output to a log file /var/log/phpservice.log, backround the service, enable delete for php scripts
Diffstat (limited to 'config/phpservice/phpservice_php_edit.tmp')
-rw-r--r--config/phpservice/phpservice_php_edit.tmp13
1 files changed, 13 insertions, 0 deletions
diff --git a/config/phpservice/phpservice_php_edit.tmp b/config/phpservice/phpservice_php_edit.tmp
index 070c87d1..2f0a64af 100644
--- a/config/phpservice/phpservice_php_edit.tmp
+++ b/config/phpservice/phpservice_php_edit.tmp
@@ -48,11 +48,24 @@ if (isset($id) && $a_phpservice[$id]) {
}
+
if ($_POST) {
unset($input_errors);
$pconfig = $_POST;
+ if ($_GET['act'] == "del") {
+ if ($_GET['type'] == 'php') {
+ if ($a_phpservice[$_GET['id']]) {
+ unset($a_phpservice[$_GET['id']]);
+ write_config();
+ php_sync_package();
+ header("Location: phpservice_php.php");
+ exit;
+ }
+ }
+ }
+
if (!$input_errors) {
$ent = array();