cleanup
[freeside.git] / fs_selfservice / php / main.php
1 <?php
2
3 require('freeside.class.php');
4 $freeside = new FreesideSelfService();
5
6 $session_id = $_GET['session_id'];
7
8 $response = $freeside->customer_info( array(
9   'session_id' => $session_id,
10 ) );
11
12 $error = $response['error'];
13
14 if ( $error ) {
15   header('Location:login.php?error='. urlencode($error));
16   die();
17 }
18
19 extract($response);
20
21 ?>
22 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
23 <HTML>
24   <HEAD>
25     <TITLE>My Account</TITLE>
26   </HEAD>
27   <BODY>
28     <H1>My Account</H1>
29
30       Hello, <?php echo htmlspecialchars($name); ?><BR><BR>
31
32       <?php echo $small_custview; ?>
33
34       <BR>
35
36       <A HREF="order_renew.php?session_id=<?php echo $session_id; ?>">Renew early</A>
37
38   </BODY>
39 </HTML>