Quick Search:

View

Revision:

Diff

Diff from 151 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/tags/oscommerce-3.0a3/account.php

Annotated File View

hpdl
1
1 <?php
2 /*
hpdl
6
3   $Id: account.php 151 2005-08-02 14:33:25Z mattice $
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) {
hpdl
146
16     if (empty($_GET) || (!empty($_GET) && !in_array(tep_sanitize_string(basename(key(array_slice($_GET, 0, 1)))), array('login', 'create')))) {
17       $navigation->set_snapshot();
hpdl
1
18
hpdl
146
19       tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
20     }
hpdl
1
21   }
22
23   require(DIR_WS_LANGUAGES . $osC_Session->value('language') . '/' . FILENAME_ACCOUNT);
24
hpdl
146
25   $osC_Template->setPageTitle(HEADING_TITLE_ACCOUNT);
26   $osC_Template->setPageContentsFilename('account.php');
27
hpdl
108
28   if ($osC_Services->isStarted('breadcrumb')) {
29     $breadcrumb->add(NAVBAR_TITLE_MY_ACCOUNT, tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
30   }
hpdl
1
31
hpdl
108
32   if (empty($_GET) === false) {
33     $_account_module = tep_sanitize_string(basename(key(array_slice($_GET, 0, 1))));
hpdl
1
34
hpdl
108
35     if (file_exists('includes/modules/account/' . $_account_module . '.php')) {
36       include('includes/modules/account/' . $_account_module . '.php');
hpdl
6
37
hpdl
108
38       $_account_module_name = 'osC_Account_' . ucfirst($_account_module);
39       $osC_Account_Module = new $_account_module_name();
40
hpdl
146
41       $osC_Template->setPageTitle($osC_Account_Module->getPageTitle());
42       $osC_Template->setPageContentsFilename($osC_Account_Module->getPageContentsFilename());
43
44       unset($osC_Account_Module);
hpdl
1
45     }
46   }
47
hpdl
146
48   require('templates/' . $osC_Template->getTemplate() . '.php');
hpdl
108
49
50   require('includes/application_bottom.php');
51 ?>