3 require( dirname( __FILE__ ) . '/wp-blog-header.php' );
5 $freeside = new FreesideSelfService();
7 error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
8 error_log( "COOKIE: ". $GLOBALS['FREESIDE_SESSION_ID'] );
10 $customer_info = $freeside->customer_info_short( array(
11 'session_id' => $_COOKIE['freeside_session_id'],
15 if ( isset($customer_info['error']) && $customer_info['error'] ) {
16 $error = $customer_info['error'];
17 wp_redirect('example_login.php?freeside_error='. urlencode($error));
21 extract($customer_info);
25 error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
31 <p><big><strong>Name</strong></big></p>
32 <p><?php echo htmlspecialchars($name); ?></p>
34 <?php if ( $signupdate_pretty ) { ?>
35 <p><big><strong>Signup Date</strong></big></p>
36 <p><?php echo htmlspecialchars($signupdate_pretty); ?></p>
39 <p><big><strong>Username</strong></big></p>
42 <p><big><strong>Account Number</strong></big></p>
43 <p><?php echo $display_custnum ?></p>
45 <p><big><strong>Address</strong></big></p>
47 Box 564, Disneyland<br>
51 <p><big><strong>Email Address</strong></big></p>
57 <p><big><strong>Total Balance</strong></big></p>
58 <h4><?php echo $balance_pretty ?></h4>
63 <p><big><strong> <font color=" #4682B4">View my Bill</strong></big></font></p>
64 <p><big><strong> <font color="#4682B4">Change Bill Deliver Options</strong></big></font></p>
70 <h4><font color="#4682B4"> <i class="fa fa-laptop"> </i> </font> Internet </h4>
71 <h4><font color="#4682B4"> <i class="fa fa-volume-control-phone"> </i> </font> Voice </h4>
74 <?php echo $announcement ?>
77 your open invoices if you have any & payment link if you have one. more insistant if you're late?
80 your tickets. some notification if there's new responses since your last login
87 <?php get_footer(); ?>