Quick Search:

View

Revision:

Diff

Diff from 1165 to:

Annotations

Annotate by Age | Author | Mixed | None
/fisheye/browse/osCommerce/branches/frank/osc-tickets/account.php

Annotated File View

hpdl
1
1 <?php
2 /*
hpdl
6
3   $Id: account.php 824 2006-08-29 11:09:15Z 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
hpdl
824
13   $_SERVER['SCRIPT_FILENAME'] = __FILE__;
14
hpdl
1
15   require('includes/application_top.php');
16
hpdl
370
17   if ($osC_Customer->isLoggedOn() === false) {
hpdl
644
18     if (!empty($_GET)) {
19       $first_array = array_slice($_GET, 0, 1);
20     }
21
hpdl
757
22     if (empty($_GET) || (!empty($_GET) && !in_array(osc_sanitize_string(basename(key($first_array))), array('login', 'create', 'password_forgotten')))) {
hpdl
370
23       $osC_NavigationHistory->setSnapshot();
hpdl
1
24
hpdl
757
25       osc_redirect(osc_href_link(FILENAME_ACCOUNT, 'login', 'SSL'));
hpdl
146
26     }
hpdl
1
27   }
28
hpdl
410
29   $osC_Language->load('account');
hpdl
1
30
hpdl
108
31   if ($osC_Services->isStarted('breadcrumb')) {
hpdl
754
32     $breadcrumb->add($osC_Language->get('breadcrumb_my_account'), osc_href_link(FILENAME_ACCOUNT, null, 'SSL'));
hpdl
108
33   }
hpdl
1
34
hpdl
370
35   $osC_Template = osC_Template::setup('account');
hpdl
1
36
hpdl
370
37   require('templates/' . $osC_Template->getCode() . '.php');
hpdl
6
38
hpdl
108
39   require('includes/application_bottom.php');
40 ?>