blob: 07548c7f9664df76a6b718b6cecafea58d19c88a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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");
?>
|