forked from gburton/CE-Phoenix
-
Notifications
You must be signed in to change notification settings - Fork 3
/
logoff.php
84 lines (65 loc) · 2.17 KB
/
logoff.php
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Edited by 2014 Newburns Design and Technology
*************************************************
************ New addon definitions **************
************ Below **************
*************************************************
Credit Class, Gift Vouchers & Discount Coupons osC2.3.3.4 (CCGV) added -- http://addons.oscommerce.com/info/9020
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGOFF);
$breadcrumb->add(NAVBAR_TITLE);
tep_session_unregister('customer_id');
tep_session_unregister('customer_default_address_id');
tep_session_unregister('customer_first_name');
tep_session_unregister('customer_country_id');
tep_session_unregister('customer_zone_id');
if ( tep_session_is_registered('sendto') ) {
tep_session_unregister('sendto');
}
if ( tep_session_is_registered('billto') ) {
tep_session_unregister('billto');
}
if ( tep_session_is_registered('shipping') ) {
tep_session_unregister('shipping');
}
if ( tep_session_is_registered('payment') ) {
tep_session_unregister('payment');
}
if ( tep_session_is_registered('comments') ) {
tep_session_unregister('comments');
}
/* ** Altered for CCGV ** */
if ( tep_session_is_registered('gv_id') ) {
tep_session_unregister('gv_id');
}
if ( tep_session_is_registered('cc_id') ) {
tep_session_unregister('cc_id');
}
/* ** EOF alteration for CCGV ** */
$cart->reset();
require(DIR_WS_INCLUDES . 'template_top.php');
?>
<div class="page-header">
<h1><?php echo HEADING_TITLE; ?></h1>
</div>
<div class="contentContainer">
<div class="contentText">
<div class="alert alert-danger">
<?php echo TEXT_MAIN; ?>
</div>
</div>
<div class="buttonSet">
<div class="text-right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', tep_href_link(FILENAME_DEFAULT), null, null, 'btn-danger'); ?></div>
</div>
</div>
<?php
require(DIR_WS_INCLUDES . 'template_bottom.php');
require(DIR_WS_INCLUDES . 'application_bottom.php');
?>