hpdl
|
1
|
1
|
<?php
|
|
2
|
/*
|
hpdl
|
6
|
3
|
$Id: account.php 108 2005-03-29 17:53:36Z 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
|
|
|
15
|
if ($osC_Customer->isLoggedOn() == false) {
|
|
16
|
$navigation->set_snapshot();
|
|
17
|
|
|
18
|
tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
|
|
19
|
}
|
|
20
|
|
|
21
|
require(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/' . FILENAME_ACCOUNT);
|
|
22
|
|
hpdl
|
108
|
23
|
if ($osC_Services->isStarted('breadcrumb')) {
|
|
24
|
$breadcrumb->add(NAVBAR_TITLE_MY_ACCOUNT, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
|
|
25
|
}
|
hpdl
|
1
|
26
|
|
hpdl
|
108
|
27
|
$page_contents = 'account.php';
|
hpdl
|
1
|
28
|
|
hpdl
|
108
|
29
|
if (empty($_GET) === false) {
|
|
30
|
$_account_module = tep_sanitize_string(basename(key(array_slice($_GET, 0, 1))));
|
hpdl
|
1
|
31
|
|
hpdl
|
108
|
32
|
if (file_exists('includes/modules/account/' . $_account_module . '.php')) {
|
|
33
|
include('includes/modules/account/' . $_account_module . '.php');
|
hpdl
|
6
|
34
|
|
hpdl
|
108
|
35
|
$_account_module_name = 'osC_Account_' . ucfirst($_account_module);
|
|
36
|
$osC_Account_Module = new $_account_module_name();
|
|
37
|
|
|
38
|
$page_contents = $osC_Account_Module->getPageContentsFile();
|
hpdl
|
1
|
39
|
}
|
|
40
|
}
|
|
41
|
|
hpdl
|
108
|
42
|
require('templates/default.php');
|
|
43
|
|
|
44
|
require('includes/application_bottom.php');
|
|
45
|
?>
|