Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

523
 
533
 
533
 
payment.php
_> 11 <?php
  22 /*
<> 3 -  $Id: payment.php 523 2006-04-25 14:36:09Z hpdl $
   3+  $Id: payment.php 533 2006-04-26 07:32:54Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
101101       $result = curl_exec($curl);
  102102       curl_close($curl);
  103103 
<>  104+
104105 /*
<> 105 -      exec('/usr/bin/curl -d ' . escapeshellarg($parameters) . ' "' . $server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : '') . '" -P ' . $server['port'] . ' -k ' . (empty($header) === false ? '-H ' . escapeshellarg(implode("\r\n", $header)) : ''), $result);
   106+      exec('/usr/bin/curl -d ' . escapeshellarg($parameters) . ' "' . $server['scheme'] . '://' . $server['host'] . $server['path'] . (isset($server['query']) ? '?' . $server['query'] : '') . '" -P ' . $server['port'] . ' -k' . (empty($header) === false ? ' -H ' . escapeshellarg(implode("\r\n", $header)) : '') . (empty($certificate) === false ? ' -E ' . escapeshellarg($certificate) : ''), $result);
106107       $result = implode("\n", $result);
  107108 */
  108109 /*
     
 !
122123         $result = trim(substr($result, strpos($result, "\r\n\r\n", strpos(strtolower($result), 'content-length:'))));
  123124       }
  124125 */
<>  126+/*
   127+      $options = array('http' => array('method' => 'POST',
   128+                                       'header' => 'Host: ' . $server['host'] . "\r\n" .
   129+                                                   'Content-type: application/x-www-form-urlencoded' . "\r\n" .
   130+                                                   'Content-length: ' . strlen($parameters) . "\r\n" .
   131+                                                   (empty($header) === false ? implode("\r\n", $header) . "\r\n" : '') .
   132+                                                   'Connection: close',
   133+                                       'content' => $parameters));
125134 
<>  135+      if (empty($certificate) === false) {
   136+        $options['ssl'] = array('local_cert' => $certificate);
   137+      }
   138+
   139+      $context = stream_context_create($options);
   140+
   141+      if ($fp = fopen($url, 'r', false, $context)) {
   142+        $result = '';
   143+
   144+        while (!feof($fp)) {
   145+          $result .= fgets($fp, 4096);
   146+        }
   147+
   148+        fclose($fp);
   149+      }
   150+*/
   151+
<_ 126152       return $result;
  127153     }
  128154