RT#28842: NG portal - Changes for prepaid needs
[freeside.git] / ng_selfservice / quotation_remove_pkg.php
1 <? require('elements/session.php');
2
3 $dest = 'quotation.php';
4
5 if ( isset($_REQUEST['pkgnum']) ) {
6
7   $results = array();
8
9   $params = array( 'custnum', 'pkgnum' );
10
11   $matches = array();
12   if ( preg_match( '/^(\d+)$/', $_REQUEST['pkgnum'] ) ) {
13
14     $args = array(
15         'session_id' => $_COOKIE['session_id'],
16         'pkgnum'     => $_REQUEST['pkgnum'],
17     );
18
19     $results = $freeside->quotation_remove_pkg($args);
20
21   }
22
23   if ( isset($results['error']) && $results['error'] ) {
24     $dest .= '?error=' . $results['error'];
25   }
26
27 }
28
29 header("Location:$dest");
30
31 ?>