  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: application_top.php 1845 2009-02-27 00:19:37Z hpdl $ |
| |
| 3 | + | $Id: application_top.php 1848 2009-02-28 02:21:10Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2007 osCommerce |
| |
| 8 | + | Copyright (c) 2009 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | This program is free software; you can redistribute it and/or modify |
| |
11 | 11 | | it under the terms of the GNU General Public License v2 (1991) |
| |
|
|
 |
… |
|
90 | 90 | | $osC_Session = osC_Session::load('osCAdminID'); |
| |
91 | 91 | | $osC_Session->start(); |
| |
92 | 92 | | |
  |
93 | | - | if ( !isset($_SESSION['admin']) ) { |
| |
| 93 | + | if ( !isset($_SESSION['admin']) && (basename($_SERVER['PHP_SELF']) != FILENAME_RPC) ) { |
  |
94 | 94 | | $redirect = false; |
| |
95 | 95 | | |
| |
96 | 96 | | if ( empty($_GET) ) { |