diff options
Diffstat (limited to 'ng_selfservice/quotation_add_pkg.php')
-rw-r--r-- | ng_selfservice/quotation_add_pkg.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ng_selfservice/quotation_add_pkg.php b/ng_selfservice/quotation_add_pkg.php new file mode 100644 index 000000000..1e7e71fa9 --- /dev/null +++ b/ng_selfservice/quotation_add_pkg.php @@ -0,0 +1,31 @@ +<? require('elements/session.php'); + +$dest = 'quotation.php'; + +if ( isset($_REQUEST['pkgpart']) ) { + + $results = array(); + + $params = array( 'custnum', 'pkgpart' ); + + $matches = array(); + if ( preg_match( '/^(\d+)$/', $_REQUEST['pkgpart'] ) ) { + + $args = array( + 'session_id' => $_COOKIE['session_id'], + 'pkgpart' => $_REQUEST['pkgpart'], + ); + + $results = $freeside->quotation_add_pkg($args); + + } + + if ( isset($results['error']) && $results['error'] ) { + $dest .= '?error=' . $results['error'] . ';pkgpart=' . $_REQUEST['pkgpart']; + } +} + +header("Location:$dest"); + +?> + |