  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: account.php 410 2006-01-26 09:17:09Z hpdl $ |
| |
| 3 | + | $Id: account.php 644 2006-07-18 17:12:57Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2005 osCommerce |
| |
| 8 | + | Copyright (c) 2006 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
12 | 12 | | |
| |
13 | 13 | | require('includes/application_top.php'); |
| |
14 | 14 | | |
| |
15 | 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')))) { |
| |
| 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')))) { |
  |
17 | 21 | | $osC_NavigationHistory->setSnapshot(); |
| |
18 | 22 | | |
| |
19 | 23 | | tep_redirect(tep_href_link(FILENAME_ACCOUNT, 'login', 'SSL')); |