diff options
author | Mark Wells <mark@freeside.biz> | 2015-04-25 15:02:15 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-04-25 15:02:23 -0700 |
commit | c110da0da864245e47cae019b8a347367cc6430c (patch) | |
tree | e406be890446095b8cd59a5b5c827c62dd063fff /ng_selfservice/quotation_remove_pkg.php | |
parent | 4fda726fa9f8e709c68ec823edc5ae702723281c (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"); + +?> |