Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

5
 
15
 
15
 
database.php
_> 11 <?php
  22 /*
<> 3 -  $Id: database.php 5 2005-01-31 01:40:15Z hpdl $
   3+  $Id: database.php 15 2005-02-24 01:44:20Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
547547 
  548548     function displayBatchLinksPullDown($batch_keyword = 'page', $parameters = '') {
  549549       if (PHP_VERSION < 4.1) {
<> 550 -        global $_GET;
   550+        global $_GET, $_SERVER;
551551       }
  552552 
<> 553 -      global $PHP_SELF;
  554 -
555553       $number_of_pages = ceil($this->batch_size / $this->batch_rows);
  556554 
  557555       if ($number_of_pages > 1) {
     
 !
574572           }
  575573         }
  576574 
<> 577 -        $display_links = tep_draw_form($batch_keyword, basename($PHP_SELF), '', 'get');
   575+        $display_links = tep_draw_form($batch_keyword, basename($_SERVER['PHP_SELF']), '', 'get');
578576 
  579577         if ($this->batch_number > 1) {
<> 580 -          $display_links .= '<a href="' . tep_href_link(basename($PHP_SELF), $get_parameter . $batch_keyword . '=' . ($this->batch_number - 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>';
   578+          $display_links .= '<a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), $get_parameter . $batch_keyword . '=' . ($this->batch_number - 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>';
581579         } else {
  582580           $display_links .= PREVNEXT_BUTTON_PREV;
  583581         }
  584582 
  585583         $display_links .= '&nbsp;&nbsp;' . sprintf(TEXT_RESULT_PAGE, osc_draw_pull_down_menu($batch_keyword, $pages_array, $this->batch_number, 'onChange="this.form.submit();"'), $number_of_pages) . '&nbsp;&nbsp;';
  586584 
  587585         if (($this->batch_number < $number_of_pages) && ($number_of_pages != 1)) {
<> 588 -          $display_links .= '<a href="' . tep_href_link(basename($PHP_SELF), $get_parameter . $batch_keyword . '=' . ($this->batch_number + 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
   586+          $display_links .= '<a href="' . tep_href_link(basename($_SERVER['PHP_SELF']), $get_parameter . $batch_keyword . '=' . ($this->batch_number + 1)) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
<_ 589587         } else {
  590588           $display_links .= PREVNEXT_BUTTON_NEXT;
  591589         }