  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: navigation_history.php 725 2006-08-18 12:51:04Z hpdl $ |
| |
| 3 | + | $Id: navigation_history.php 783 2006-08-23 22:06:44Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
41 | 41 | | $set = 'true'; |
| |
42 | 42 | | |
| |
43 | 43 | | for ($i=0, $n=sizeof($this->_data); $i<$n; $i++) { |
  |
44 | | - | if ($this->_data[$i]['page'] == basename($_SERVER['PHP_SELF'])) { |
| |
| 44 | + | if ($this->_data[$i]['page'] == basename($_SERVER['SCRIPT_FILENAME'])) { |
|
45 | 45 | | if (isset($cPath)) { |
| |
46 | 46 | | if (!isset($this->_data[$i]['get']['cPath'])) { |
| |
47 | 47 | | continue; |
| |
|
|
 |
… |
|
72 | 72 | | } |
| |
73 | 73 | | |
| |
74 | 74 | | if ($set == 'true') { |
  |
75 | | - | $this->_data[] = array('page' => basename($_SERVER['PHP_SELF']), |
| |
| 75 | + | $this->_data[] = array('page' => basename($_SERVER['SCRIPT_FILENAME']), |
|
76 | 76 | | 'mode' => $request_type, |
| |
77 | 77 | | 'get' => $_GET, |
| |
78 | 78 | | 'post' => $_POST); |
| |
|
|
 |
… |
|
86 | 86 | | function removeCurrentPage() { |
| |
87 | 87 | | $last_entry_position = sizeof($this->_data) - 1; |
| |
88 | 88 | | |
  |
89 | | - | if ($this->_data[$last_entry_position]['page'] == basename($_SERVER['PHP_SELF'])) { |
| |
| 89 | + | if ($this->_data[$last_entry_position]['page'] == basename($_SERVER['SCRIPT_FILENAME'])) { |
|
90 | 90 | | unset($this->_data[$last_entry_position]); |
| |
91 | 91 | | |
| |
92 | 92 | | if (sizeof($this->_data) > 0) { |
| |
|
|
 |
… |
|
126 | 126 | | 'get' => $page['get'], |
| |
127 | 127 | | 'post' => $page['post']); |
| |
128 | 128 | | } else { |
  |
129 | | - | $this->_snapshot = array('page' => basename($_SERVER['PHP_SELF']), |
| |
| 129 | + | $this->_snapshot = array('page' => basename($_SERVER['SCRIPT_FILENAME']), |
  |
130 | 130 | | 'mode' => $request_type, |
| |
131 | 131 | | 'get' => $_GET, |
| |
132 | 132 | | 'post' => $_POST); |