summaryrefslogtreecommitdiff
path: root/fs_selfservice/php/main.php
blob: b34a4773016b8c5ae3d7e1c22c7fb23404c313b0 (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
32
33
34
35
36
37
38
39
<?php

require('freeside.class.php');
$freeside = new FreesideSelfService();

$session_id = $_GET['session_id'];

$response = $freeside->customer_info( array(
  'session_id' => $session_id,
) );

$error = $response['error'];

if ( $error ) {
  header('Location:login.php?error='. urlencode($error));
  die();
}

extract($response);

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD>
    <TITLE>My Account</TITLE>
  </HEAD>
  <BODY>
    <H1>My Account</H1>

      Hello, <?php echo htmlspecialchars($name); ?><BR><BR>

      <?php echo $small_custview; ?>

      <BR>

      <A HREF="order_renew.php?session_id=<?php echo $session_id; ?>">Renew early</A>

  </BODY>
</HTML>