Quick Search:

View

Revision:

Diff

Diff from 754 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 754 2006-08-23 11:56:56Z hpdl $
hpdl
1
4
5   osCommerce, Open Source E-Commerce Solutions
6   http://www.oscommerce.com
7
hpdl
644
8   Copyright (c) 2006 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) {
hpdl
644
16     if (!empty($_GET)) {
17       $first_array = array_slice($_GET, 0, 1);
18     }
19
20     if (empty($_GET) || (!empty($_GET) && !in_array(tep_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten')))) {
hpdl
370
21       $osC_NavigationHistory->setSnapshot();
hpdl
1
22
hpdl
754
23       tep_redirect(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
hpdl
146
24     }
hpdl
1
25   }
26
hpdl
410
27   $osC_Language->load('account');
hpdl
1
28
hpdl
108
29   if ($osC_Services->isStarted('breadcrumb')) {
hpdl
754
30     $breadcrumb->add($osC_Language->get('breadcrumb_my_account'), osc_href_link(FILENAME_ACCOUNT, null, 'SSL'));
hpdl
108
31   }
hpdl
1
32
hpdl
370
33   $osC_Template = osC_Template::setup('account');
hpdl
1
34
hpdl
370
35   require('templates/' . $osC_Template->getCode() . '.php');
hpdl
6
36
hpdl
108
37   require('includes/application_bottom.php');
38 ?>