Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

153
 
196
 
196
 
navigation_history.php
_> 11 <?php
  22 /*
<> 3 -  $Id: navigation_history.php 153 2005-08-04 12:57:59Z hpdl $
   3+  $Id: navigation_history.php 196 2005-09-16 12:59:17Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
  77 
<> 8 -  Copyright (c) 2003 osCommerce
   8+  Copyright (c) 2005 osCommerce
99 
  1010   Released under the GNU General Public License
  1111 */
  1212 
  1313   class navigationHistory {
<> 14 -    var $path, $snapshot, $set_global;
   14+    var $path, $snapshot;
1515 
  1616     function navigationHistory() {
  1717       $this->reset();
<> 18 -
  19 -      $this->setGlobal();
2018     }
  2119 
  2220     function reset() {
     
 !
2523     }
  2624 
  2725     function add_current_page() {
<> 28 -      if (PHP_VERSION < 4.1) {
  29 -        global $_SERVER;
  30 -      }
  31 -
3226       global $request_type, $cPath;
  3327 
<> 34 -      if ($this->set_global) {
  35 -        global $_GET, $_POST;
  36 -      }
  37 -
3828       $set = 'true';
  3929       for ($i=0, $n=sizeof($this->path); $i<$n; $i++) {
  4030         if ($this->path[$i]['page'] == basename($_SERVER['PHP_SELF'])) {
     
 !
7666     }
  7767 
  7868     function remove_current_page() {
<> 79 -      if (PHP_VERSION < 4.1) {
  80 -        global $_SERVER;
  81 -      }
  82 -
8369       $last_entry_position = sizeof($this->path) - 1;
  8470       if ($this->path[$last_entry_position]['page'] == basename($_SERVER['PHP_SELF'])) {
  8571         unset($this->path[$last_entry_position]);
  8672       }
  8773     }
  8874 
  8975     function set_snapshot($page = '') {
<> 90 -      if (PHP_VERSION < 4.1) {
  91 -        global $_SERVER;
  92 -      }
  93 -
9476       global $request_type;
  9577 
<> 96 -      if ($this->set_global) {
  97 -        global $_GET, $_POST;
  98 -      }
  99 -
10078       if (is_array($page)) {
  10179         $this->snapshot = array('page' => $page['page'],
  10280                                 'mode' => $page['mode'],
     
 !
122100                               'post' => $this->path[$pos]['post']);
  123101     }
  124102 
<> 125 -    function setGlobal() {
  126 -      $this->set_global = (PHP_VERSION < 4.1) ? true : false;
  127 -    }
  128 -
<_ 129103     function debug() {
  130104       global $osC_Session;
  131105