projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add logout to example wordpress self-service, RT#75279
[freeside.git]
/
fs_selfservice
/
wordpress
/
example_selfservice.php
diff --git
a/fs_selfservice/wordpress/example_selfservice.php
b/fs_selfservice/wordpress/example_selfservice.php
index
ae588bf
..
6e5049c
100644
(file)
--- a/
fs_selfservice/wordpress/example_selfservice.php
+++ b/
fs_selfservice/wordpress/example_selfservice.php
@@
-4,9
+4,6
@@
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
$freeside = new FreesideSelfService();
$freeside = new FreesideSelfService();
-error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
-error_log( "COOKIE: ". $GLOBALS['FREESIDE_SESSION_ID'] );
-
$customer_info = $freeside->customer_info_short( array(
'session_id' => $_COOKIE['freeside_session_id'],
) );
$customer_info = $freeside->customer_info_short( array(
'session_id' => $_COOKIE['freeside_session_id'],
) );
@@
-22,8
+19,6
@@
extract($customer_info);
get_header();
get_header();
-error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
-
?>
<h3>Billing</h3>
?>
<h3>Billing</h3>
@@
-37,19
+32,21
@@
error_log( "COOKIE: ". $_COOKIE['freeside_session_id'] );
<?php } ?>
<p><big><strong>Username</strong></big></p>
<?php } ?>
<p><big><strong>Username</strong></big></p>
-<p>
me@gmail.com
</p>
+<p>
<?php echo htmlspecialchars($svc_label) ?>
</p>
<p><big><strong>Account Number</strong></big></p>
<p><?php echo $display_custnum ?></p>
<p><big><strong>Address</strong></big></p>
<address>
<p><big><strong>Account Number</strong></big></p>
<p><?php echo $display_custnum ?></p>
<p><big><strong>Address</strong></big></p>
<address>
-Box 564, Disneyland<br>
-USA
+<?php echo htmlspecialchars($address1); ?><br>
+<?php echo strlen($address2) ? htmlspecialchars($address2).'<br>' : '' ?>
+<?php echo $city ?>, <?php echo $state ?> <?php echo $zip ?><br>
+<?php echo $country ?>
</address>
<p><big><strong>Email Address</strong></big></p>
</address>
<p><big><strong>Email Address</strong></big></p>
-<p>
me@gmail.com
</p>
+<p>
<?php echo htmlspecialchars($invoicing_list) ?>
</p>
<br>
<br>
<br>
<br>
@@
-60,9
+57,10
@@
USA
<br>
<br>
<br>
<br>
<br>
<br>
-<p><
big><strong> <font color=" #4682B4">View my Bill</strong></big></font
></p>
-<p><
big><strong> <font color="#4682B4">Change Bill Deliver Options</strong></big></font
></p>
+<p><
a href="view_invoice.php?invnum=<?php echo $max_invnum ?>">View my Bill</a
></p>
+<p><
a href="change_bill.php">Change Bill Deliver Options</a
></p>
+<p><a href="process_logout.php">Logout</a></p>
<h3>Services</h3>
<h3>Services</h3>
@@
-70,7
+68,6
@@
USA
<h4><font color="#4682B4"> <i class="fa fa-laptop"> </i> </font> Internet </h4>
<h4><font color="#4682B4"> <i class="fa fa-volume-control-phone"> </i> </font> Voice </h4>
<h4><font color="#4682B4"> <i class="fa fa-laptop"> </i> </font> Internet </h4>
<h4><font color="#4682B4"> <i class="fa fa-volume-control-phone"> </i> </font> Voice </h4>
-
<?php echo $announcement ?>
<!--
<?php echo $announcement ?>
<!--