diff options
| author | Mark Wells <mark@freeside.biz> | 2015-04-26 13:52:36 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2015-04-26 13:52:36 -0700 |
| commit | 89b934cfce5226556eb5f2ebb8377fb87d278a63 (patch) | |
| tree | f3ceda097080a33d8c0881fafb87579701dc199d /ng_selfservice/quotation_remove_pkg.php | |
| parent | 23d1a5787502e9e76338f6a7878b131f04741575 (diff) | |
selfservice quotations, #33852
Diffstat (limited to 'ng_selfservice/quotation_remove_pkg.php')
| -rw-r--r-- | ng_selfservice/quotation_remove_pkg.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ng_selfservice/quotation_remove_pkg.php b/ng_selfservice/quotation_remove_pkg.php new file mode 100644 index 000000000..07548c7f9 --- /dev/null +++ b/ng_selfservice/quotation_remove_pkg.php @@ -0,0 +1,31 @@ +<? require('elements/session.php'); + +$dest = 'quotation.php'; + +if ( isset($_REQUEST['pkgnum']) ) { + + $results = array(); + + $params = array( 'custnum', 'pkgnum' ); + + $matches = array(); + if ( preg_match( '/^(\d+)$/', $_REQUEST['pkgnum'] ) ) { + + $args = array( + 'session_id' => $_COOKIE['session_id'], + 'pkgnum' => $_REQUEST['pkgnum'], + ); + + $results = $freeside->quotation_remove_pkg($args); + + } + + if ( isset($results['error']) && $results['error'] ) { + $dest .= '?error=' . $results['error']; + } + +} + +header("Location:$dest"); + +?> |
