3 require('freeside.class.php');
4 $freeside = new FreesideSelfService();
6 $response = $freeside->switch_cust( array(
7 'session_id' => $_COOKIE['session_id'],
8 'custnum' => $_POST['custnum'],
11 #error_log("[switch_cust] received response from freeside: $response");
13 $error = $response['error'];
17 //this isn't well handled... but the only possible error is a session timeout?
19 header('Location:index.php?username='. urlencode($username).
20 '&domain='. urlencode($domain).
21 '&email='. urlencode($email).
22 '&error='. urlencode($error)
28 // sucessful customer selection
30 header("Location:main.php");