hpdl
|
1
|
1
|
<?php
|
|
2
|
/*
|
hpdl
|
6
|
3
|
$Id: account.php 370 2005-12-22 18:07:46Z hpdl $
|
hpdl
|
1
|
4
|
|
|
5
|
osCommerce, Open Source E-Commerce Solutions
|
|
6
|
http://www.oscommerce.com
|
|
7
|
|
hpdl
|
6
|
8
|
Copyright (c) 2005 osCommerce
|
hpdl
|
1
|
9
|
|
|
10
|
Released under the GNU General Public License
|
|
11
|
*/
|
|
12
|
|
|
13
|
require('includes/application_top.php');
|
|
14
|
|
hpdl
|
370
|
15
|
if ($osC_Customer->isLoggedOn() === false) {
|
|
16
|
if (empty($_GET) || (!empty($_GET) && !in_array(tep_sanitize_string(basename(key(array_slice($_GET, 0, 1)))), array('login', 'create', 'password_forgotten')))) {
|
|
17
|
$osC_NavigationHistory->setSnapshot();
|
hpdl
|
1
|
18
|
|
hpdl
|
146
|
19
|
tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
|
|
20
|
}
|
hpdl
|
1
|
21
|
}
|
|
22
|
|
hpdl
|
370
|
23
|
require('includes/languages/' . $_SESSION['language'] . '/' . FILENAME_ACCOUNT);
|
hpdl
|
1
|
24
|
|
hpdl
|
108
|
25
|
if ($osC_Services->isStarted('breadcrumb')) {
|
|
26
|
$breadcrumb->add(NAVBAR_TITLE_MY_ACCOUNT, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
|
|
27
|
}
|
hpdl
|
1
|
28
|
|
hpdl
|
370
|
29
|
$osC_Template = osC_Template::setup('account');
|
hpdl
|
1
|
30
|
|
hpdl
|
370
|
31
|
require('templates/' . $osC_Template->getCode() . '.php');
|
hpdl
|
6
|
32
|
|
hpdl
|
108
|
33
|
require('includes/application_bottom.php');
|
|
34
|
?>
|