Quick Search:

View

Revision:

Diff

Diff from 410 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 410 2006-01-26 09:17:09Z 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
410
23   $osC_Language->load('account');
hpdl
1
24
hpdl
108
25   if ($osC_Services->isStarted('breadcrumb')) {
hpdl
410
26     $breadcrumb->add($osC_Language->get('breadcrumb_my_account'), tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
hpdl
108
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 ?>