-
Notifications
You must be signed in to change notification settings - Fork 2
/
logoff.php
68 lines (51 loc) · 1.49 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
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2010 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGOFF);
$breadcrumb->add(NAVBAR_TITLE);
unset($_SESSION['customer_id']);
unset($_SESSION['customer_default_address_id']);
unset($_SESSION['customer_first_name']);
unset($_SESSION['customer_country_id']);
unset($_SESSION['customer_zone_id']);
if ( isset($_SESSION['sendto']) ) {
unset($_SESSION['sendto']);
}
if ( isset($_SESSION['billto']) ) {
unset($_SESSION['billto']);
}
if ( isset($_SESSION['shipping']) ) {
unset($_SESSION['shipping']);
}
if ( isset($_SESSION['payment']) ) {
unset($_SESSION['payment']);
}
if ( isset($_SESSION['comments']) ) {
unset($_SESSION['comments']);
}
$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, 'glyphicon glyphicon-chevron-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');
?>