aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-02-21 14:33:38 -0700
committermcrane <mctch@yahoo.com>2009-02-21 14:33:38 -0700
commit481c4f37cce393399e6508af4f4eb078915c781c (patch)
tree9cf7ceaf94dce601c7c277a7c166f1b624019d2a
parent4c7ffd6778c902a315167b85d1527d88f17004eb (diff)
downloadpfsense-packages-481c4f37cce393399e6508af4f4eb078915c781c.tar.gz
pfsense-packages-481c4f37cce393399e6508af4f4eb078915c781c.tar.bz2
pfsense-packages-481c4f37cce393399e6508af4f4eb078915c781c.zip
phpservice additional work on php script delete
-rw-r--r--config/phpservice/phpservice.xml2
-rw-r--r--config/phpservice/phpservice_php_edit.tmp25
-rw-r--r--pkg_config.7.xml2
3 files changed, 14 insertions, 15 deletions
diff --git a/config/phpservice/phpservice.xml b/config/phpservice/phpservice.xml
index e4cff8bc..225590b8 100644
--- a/config/phpservice/phpservice.xml
+++ b/config/phpservice/phpservice.xml
@@ -41,7 +41,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>PHP Service Settings</name>
- <version>0.3</version>
+ <version>0.4.1</version>
<title>Settings</title>
<include_file>/usr/local/pkg/phpservice.inc</include_file>
<menu>
diff --git a/config/phpservice/phpservice_php_edit.tmp b/config/phpservice/phpservice_php_edit.tmp
index 2f0a64af..411cc5f4 100644
--- a/config/phpservice/phpservice_php_edit.tmp
+++ b/config/phpservice/phpservice_php_edit.tmp
@@ -39,6 +39,18 @@ if (isset($_POST['id'])) {
$id = $_POST['id'];
}
+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 (isset($id) && $a_phpservice[$id]) {
$pconfig['name'] = $a_phpservice[$id]['name'];
@@ -48,23 +60,10 @@ 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) {
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 3c470d8f..988d8051 100644
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -134,7 +134,7 @@
<pkginfolink>http://doc.pfsense.org/index.php/PHPService</pkginfolink>
<config_file>http://www.pfsense.com/packages/config/phpservice/phpservice.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
- <version>0.4</version>
+ <version>0.4.1</version>
<status>Beta</status>
<required_version>1.2.1</required_version>
<maintainer>markjcrane@gmail.com</maintainer>