[TEP-COMMIT] [CVS catalog] remove redundant files

hpdl-OfajU3CKLf1/[email protected] 30 Mar 2005 00:13:18 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>catalog/catalog</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><span id="removed">checkout_confirmation.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_confirmation.php?rev=1.146&amp;content-type=text/vnd.viewcvs-markup">1.146</a> removed</td></tr>
<tr class="alt"><td><tt><span id="removed">checkout_payment.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_payment.php?rev=1.120&amp;content-type=text/vnd.viewcvs-markup">1.120</a> removed</td></tr>
<tr><td><tt><span id="removed">checkout_payment_address.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_payment_address.php?rev=1.18&amp;content-type=text/vnd.viewcvs-markup">1.18</a> removed</td></tr>
<tr class="alt"><td><tt><span id="removed">checkout_process.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_process.php?rev=1.132&amp;content-type=text/vnd.viewcvs-markup">1.132</a> removed</td></tr>
<tr><td><tt><span id="removed">checkout_shipping.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_shipping.php?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a> removed</td></tr>
<tr class="alt"><td><tt><span id="removed">checkout_shipping_address.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_shipping_address.php?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a> removed</td></tr>
<tr><td><tt><span id="removed">checkout_success.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_success.php?rev=1.52&amp;content-type=text/vnd.viewcvs-markup">1.52</a> removed</td></tr>
</table>
<small id="info">7 removed files</small><br />
<pre class="comment">
remove redundant files
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_confirmation.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_confirmation.php?rev=1.146&amp;content-type=text/vnd.viewcvs-markup">1.146</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_confirmation.php
--- /tmp/cvsAAAx_aqMb	Wed Mar 30 02:13:06 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,396 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot(array('mode' =&gt; 'SSL', 'page' =&gt; FILENAME_CHECKOUT_PAYMENT));
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-// if there is nothing in the customers cart, redirect them to the shopping cart page
-  if ($cart-&gt;count_contents() &lt; 1) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-// avoid hack attempts during the checkout procedure by checking the internal cartID
-  if (isset($cart-&gt;cartID) &amp;&amp; $osC_Session-&gt;exists('cartID')) {
-    if ($cart-&gt;cartID != $osC_Session-&gt;value('cartID')) {
-      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-    }
-  }
-
-// if no shipping method has been selected, redirect the customer to the shipping method selection page
-  if ($osC_Session-&gt;exists('shipping') == false) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  }
-
-  if (isset($_POST['payment'])) {
-    $osC_Session-&gt;set('payment', $_POST['payment']);
-  }
-  $payment =&amp; $osC_Session-&gt;value('payment');
-
-  if ( (isset($_POST['comments'])) &amp;&amp; ($osC_Session-&gt;exists('comments')) &amp;&amp; (empty($_POST['comments'])) ) {
-    $osC_Session-&gt;remove('comments');
-  } else if (tep_not_null($_POST['comments'])) {
-    $osC_Session-&gt;set('comments', tep_sanitize_string($_POST['comments']));
-  }
-
-  if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
-    if (!isset($_POST['conditions']) || ($_POST['conditions'] != '1')) {
-      $messageStack-&gt;add_session('checkout_payment', ERROR_CONDITIONS_NOT_ACCEPTED, 'error');
-    }
-  }
-
-// load the selected payment module
-  require(DIR_WS_CLASSES . 'payment.php');
-  $payment_modules = new payment($osC_Session-&gt;value('payment'));
-
-  require(DIR_WS_CLASSES . 'order.php');
-  $order = new order;
-
-  $payment_modules-&gt;update_status();
-
-  if ( (is_array($payment_modules-&gt;modules) &amp;&amp; (sizeof($payment_modules-&gt;modules) &gt; 1) &amp;&amp; !isset($$payment)) || (isset($$payment) &amp;&amp; is_object($$payment) &amp;&amp; ($$payment-&gt;enabled == false)) ) {
-    $messageStack-&gt;add_session('checkout_payment', ERROR_NO_PAYMENT_MODULE_SELECTED, 'error');
-  }
-
-  if ($messageStack-&gt;size('checkout_payment') &gt; 0) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-  }
-
-  if (is_array($payment_modules-&gt;modules)) {
-    $payment_modules-&gt;pre_confirmation_check();
-  }
-
-// load the selected shipping module
-  require(DIR_WS_CLASSES . 'shipping.php');
-  $shipping_modules = new shipping($osC_Session-&gt;value('shipping'));
-
-  require(DIR_WS_CLASSES . 'order_total.php');
-  $order_total_modules = new order_total;
-
-// Stock Check
-  $any_out_of_stock = false;
-  if (STOCK_CHECK == 'true') {
-    for ($i=0, $n=sizeof($order-&gt;products); $i&lt;$n; $i++) {
-      if (tep_check_stock($order-&gt;products[$i]['id'], $order-&gt;products[$i]['qty'])) {
-        $any_out_of_stock = true;
-      }
-    }
-    // Out of Stock
-    if ( (STOCK_ALLOW_CHECKOUT != 'true') &amp;&amp; ($any_out_of_stock == true) ) {
-      tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-    }
-  }
-
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_CONFIRMATION);
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2);
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/td&gt;
-            &lt;td class="pageHeading" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_confirmation.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-&lt;?php
-  if ($osC_Session-&gt;value('sendto') != false) {
-?&gt;
-            &lt;td width="30%" valign="top"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_DELIVERY_ADDRESS . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo tep_address_format($order-&gt;delivery['format_id'], $order-&gt;delivery, 1, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    if ($order-&gt;info['shipping_method']) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_SHIPPING_METHOD . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo $order-&gt;info['shipping_method']; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-&lt;?php
-  }
-?&gt;
-            &lt;td width="&lt;?php echo (($osC_Session-&gt;value('sendto') != false) ? '70%' : '100%'); ?&gt;" valign="top"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-  if (sizeof($order-&gt;info['tax_groups']) &gt; 1) {
-?&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" colspan="2"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_PRODUCTS . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-                    &lt;td class="smallText" align="right"&gt;&lt;b&gt;&lt;?php echo HEADING_TAX; ?&gt;&lt;/b&gt;&lt;/td&gt;
-                    &lt;td class="smallText" align="right"&gt;&lt;b&gt;&lt;?php echo HEADING_TOTAL; ?&gt;&lt;/b&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-  } else {
-?&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" colspan="3"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_PRODUCTS . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-  }
-
-  for ($i=0, $n=sizeof($order-&gt;products); $i&lt;$n; $i++) {
-    echo '          &lt;tr&gt;' . "\n" .
-         '            &lt;td class="main" align="right" valign="top" width="30"&gt;' . $order-&gt;products[$i]['qty'] . '&amp;nbsp;x&lt;/td&gt;' . "\n" .
-         '            &lt;td class="main" valign="top"&gt;' . $order-&gt;products[$i]['name'];
-
-    if (STOCK_CHECK == 'true') {
-      echo tep_check_stock($order-&gt;products[$i]['id'], $order-&gt;products[$i]['qty']);
-    }
-
-    if ( (isset($order-&gt;products[$i]['attributes'])) &amp;&amp; (sizeof($order-&gt;products[$i]['attributes']) &gt; 0) ) {
-      for ($j=0, $n2=sizeof($order-&gt;products[$i]['attributes']); $j&lt;$n2; $j++) {
-        echo '&lt;br&gt;&lt;nobr&gt;&lt;small&gt;&amp;nbsp;&lt;i&gt; - ' . $order-&gt;products[$i]['attributes'][$j]['option'] . ': ' . $order-&gt;products[$i]['attributes'][$j]['value'] . '&lt;/i&gt;&lt;/small&gt;&lt;/nobr&gt;';
-      }
-    }
-
-    echo '&lt;/td&gt;' . "\n";
-
-    if (sizeof($order-&gt;info['tax_groups']) &gt; 1) echo '            &lt;td class="main" valign="top" align="right"&gt;' . tep_display_tax_value($order-&gt;products[$i]['tax']) . '%&lt;/td&gt;' . "\n";
-
-    echo '            &lt;td class="main" align="right" valign="top"&gt;' . $osC_Currencies-&gt;displayPrice($order-&gt;products[$i]['final_price'], $order-&gt;products[$i]['tax_class_id'], $order-&gt;products[$i]['qty']) . '&lt;/td&gt;' . "\n" .
-         '          &lt;/tr&gt;' . "\n";
-  }
-?&gt;
-                &lt;/table&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo HEADING_BILLING_INFORMATION; ?&gt;&lt;/b&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td width="30%" valign="top"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_BILLING_ADDRESS . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo tep_address_format($order-&gt;billing['format_id'], $order-&gt;billing, 1, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_PAYMENT_METHOD . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo $order-&gt;info['payment_method']; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="70%" valign="top" align="right"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-  if (MODULE_ORDER_TOTAL_INSTALLED) {
-    $order_total_modules-&gt;process();
-    echo $order_total_modules-&gt;output();
-  }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if (is_array($payment_modules-&gt;modules)) {
-    if ($confirmation = $payment_modules-&gt;confirmation()) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo HEADING_PAYMENT_INFORMATION; ?&gt;&lt;/b&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td class="main" colspan="4"&gt;&lt;?php echo $confirmation['title']; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-      for ($i=0, $n=sizeof($confirmation['fields']); $i&lt;$n; $i++) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo $confirmation['fields'][$i]['title']; ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo $confirmation['fields'][$i]['field']; ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-      }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-    }
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if (tep_not_null($order-&gt;info['comments'])) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . HEADING_ORDER_COMMENTS . '&lt;/b&gt; &lt;a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"&gt;&lt;span class="orderEdit"&gt;(' . TEXT_EDIT . ')&lt;/span&gt;&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td class="main"&gt;&lt;?php echo nl2br(tep_output_string_protected($order-&gt;info['comments'])) . osc_draw_hidden_field('comments', $order-&gt;info['comments']); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td align="right" class="main"&gt;
-&lt;?php
-  if (isset($$payment-&gt;form_action_url)) {
-    $form_action_url = $$payment-&gt;form_action_url;
-  } else {
-    $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL');
-  }
-
-  echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');
-
-  if (is_array($payment_modules-&gt;modules)) {
-    echo $payment_modules-&gt;process_button();
-  }
-
-  echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '&lt;/form&gt;' . "\n";
-?&gt;
-            &lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom"&gt;' . CHECKOUT_BAR_DELIVERY . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '" class="checkoutBarFrom"&gt;' . CHECKOUT_BAR_PAYMENT . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<hr /><a name="file2" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_payment.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_payment.php?rev=1.120&amp;content-type=text/vnd.viewcvs-markup">1.120</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_payment.php
--- /tmp/cvsAAAJbayMb	Wed Mar 30 02:13:06 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,414 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot();
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-// if there is nothing in the customers cart, redirect them to the shopping cart page
-  if ($cart-&gt;count_contents() &lt; 1) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-// if no shipping method has been selected, redirect the customer to the shipping method selection page
-  if ($osC_Session-&gt;exists('shipping') == false) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  }
-
-// avoid hack attempts during the checkout procedure by checking the internal cartID
-  if (isset($cart-&gt;cartID) &amp;&amp; $osC_Session-&gt;exists('cartID')) {
-    if ($cart-&gt;cartID != $osC_Session-&gt;value('cartID')) {
-      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-    }
-  }
-
-// Stock Check
-  if ( (STOCK_CHECK == 'true') &amp;&amp; (STOCK_ALLOW_CHECKOUT != 'true') ) {
-    $products = $cart-&gt;get_products();
-    for ($i=0, $n=sizeof($products); $i&lt;$n; $i++) {
-      if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) {
-        tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-        break;
-      }
-    }
-  }
-
-// redirect to the billing address page when no default address exists
-  if ($osC_Customer-&gt;hasDefaultAddress() === false) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
-  }
-
-// if no billing destination address was selected, use the customers own address as default
-  if ($osC_Session-&gt;exists('billto') == false) {
-    $osC_Session-&gt;set('billto', $osC_Customer-&gt;default_address_id);
-  } else {
-// verify the selected billing address
-    $Qcheck = $osC_Database-&gt;query('select count(*) as total from :table_address_book where customers_id = :customers_id and address_book_id = :address_book_id');
-    $Qcheck-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-    $Qcheck-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-    $Qcheck-&gt;bindInt(':address_book_id', $osC_Session-&gt;value('billto'));
-    $Qcheck-&gt;execute();
-
-    if ($Qcheck-&gt;valueInt('total') != 1) {
-      $osC_Session-&gt;set('billto', $osC_Customer-&gt;default_address_id);
-
-      $osC_Session-&gt;remove('payment');
-    }
-  }
-
-  require(DIR_WS_CLASSES . 'order.php');
-  $order = new order;
-
-  $total_weight = $cart-&gt;show_weight();
-  $total_count = $cart-&gt;count_contents();
-
-// load all enabled payment modules
-  require(DIR_WS_CLASSES . 'payment.php');
-  $payment_modules = new payment;
-
-  if (isset($_GET['payment_error']) &amp;&amp; is_object(${$_GET['payment_error']}) &amp;&amp; ($error = ${$_GET['payment_error']}-&gt;get_error())) {
-    $messageStack-&gt;add('checkout_payment', $error['error'], 'error');
-  }
-
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_PAYMENT);
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;script language="javascript"&gt;&lt;!--
-var selected;
-
-function selectRowEffect(object, buttonSelect) {
-  if (!selected) {
-    if (document.getElementById) {
-      selected = document.getElementById('defaultSelected');
-    } else {
-      selected = document.all['defaultSelected'];
-    }
-  }
-
-  if (selected) selected.className = 'moduleRow';
-  object.className = 'moduleRowSelected';
-  selected = object;
-
-// one button is not an array
-  if (document.checkout_payment.payment[0]) {
-    document.checkout_payment.payment[buttonSelect].checked=true;
-  } else {
-    document.checkout_payment.payment.checked=true;
-  }
-}
-
-function rowOverEffect(object) {
-  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
-}
-
-function rowOutEffect(object) {
-  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
-}
-//--&gt;&lt;/script&gt;
-&lt;?php echo $payment_modules-&gt;javascript_validation(); ?&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;?php echo tep_draw_form('checkout_payment', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post', 'onsubmit="return check_form();"'); ?&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/td&gt;
-            &lt;td class="pageHeading" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if ($messageStack-&gt;size('checkout_payment') &gt; 0) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo $messageStack-&gt;output('checkout_payment'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-
-  if (DISPLAY_CONDITIONS_ON_CHECKOUT == 'true') {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_CONDITIONS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo TEXT_CONDITIONS_DESCRIPTION . '&lt;br&gt;&lt;br&gt;' . osc_draw_checkbox_field('conditions', '1', false, 'id="conditions"') . '&lt;label for="conditions"&gt;&amp;nbsp;' . TEXT_CONDITIONS_CONFIRM . '&lt;/label&gt;'; ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_BILLING_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECTED_BILLING_DESTINATION; ?&gt;&lt;br&gt;&lt;br&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"&gt;' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-                &lt;td align="right" width="50%" valign="top"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" align="center" valign="top"&gt;&lt;b&gt;&lt;?php echo TITLE_BILLING_ADDRESS; ?&gt;&lt;/b&gt;&lt;br&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" valign="top"&gt;&lt;?php echo tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('billto'), true, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_PAYMENT_METHOD; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-  $selection = $payment_modules-&gt;selection();
-
-  if (sizeof($selection) &gt; 1) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECT_PAYMENT_METHOD; ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top" align="right"&gt;&lt;b&gt;&lt;?php echo TITLE_PLEASE_SELECT; ?&gt;&lt;/b&gt;&lt;br&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-  } else {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="100%" colspan="2"&gt;&lt;?php echo TEXT_ENTER_PAYMENT_INFORMATION; ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-  }
-
-  $radio_buttons = 0;
-  for ($i=0, $n=sizeof($selection); $i&lt;$n; $i++) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td colspan="2"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-    if ( ($n == 1) || ($selection[$i]['id'] == $osC_Session-&gt;value('payment')) ) {
-      echo '                  &lt;tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-    } else {
-      echo '                  &lt;tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-    }
-?&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="3"&gt;&lt;b&gt;&lt;?php echo $selection[$i]['module']; ?&gt;&lt;/b&gt;&lt;/td&gt;
-                    &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_radio_field('payment', $selection[$i]['id'], $osC_Session-&gt;value('payment')); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-    if (isset($selection[$i]['error'])) {
-?&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="4"&gt;&lt;?php echo $selection[$i]['error']; ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-    } elseif (isset($selection[$i]['fields']) &amp;&amp; is_array($selection[$i]['fields'])) {
-?&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td colspan="4"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-      for ($j=0, $n2=sizeof($selection[$i]['fields']); $j&lt;$n2; $j++) {
-?&gt;
-                      &lt;tr&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                        &lt;td class="main"&gt;&lt;?php echo $selection[$i]['fields'][$j]['title']; ?&gt;&lt;/td&gt;
-                        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                        &lt;td class="main"&gt;&lt;?php echo $selection[$i]['fields'][$j]['field']; ?&gt;&lt;/td&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                      &lt;/tr&gt;
-&lt;?php
-      }
-?&gt;
-                    &lt;/table&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-    }
-?&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    $radio_buttons++;
-  }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_COMMENTS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo osc_draw_textarea_field('comments', ($osC_Session-&gt;exists('comments') ? $osC_Session-&gt;value('comments') : '')); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '&lt;/b&gt;&lt;br&gt;' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?&gt;&lt;/td&gt;
-                &lt;td class="main" align="right"&gt;&lt;?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom"&gt;' . CHECKOUT_BAR_DELIVERY . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_PAYMENT; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;&lt;/form&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<hr /><a name="file3" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_payment_address.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_payment_address.php?rev=1.18&amp;content-type=text/vnd.viewcvs-markup">1.18</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_payment_address.php
--- /tmp/cvsAAAbgaOMb	Wed Mar 30 02:13:06 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,526 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot();
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-// if there is nothing in the customers cart, redirect them to the shopping cart page
-  if ($cart-&gt;count_contents() &lt; 1) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-// needs to be included earlier to set the success message in the messageStack
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_PAYMENT_ADDRESS);
-
-  if (isset($_POST['action']) &amp;&amp; ($_POST['action'] == 'submit')) {
-// process a new billing address
-    if (($osC_Customer-&gt;hasDefaultAddress() === false) || (tep_not_null($_POST['firstname']) &amp;&amp; tep_not_null($_POST['lastname']) &amp;&amp; tep_not_null($_POST['street_address'])) ) {
-      if (ACCOUNT_GENDER &gt; 0) {
-        if (!isset($_POST['gender']) || (($_POST['gender'] != 'm') &amp;&amp; ($_POST['gender'] != 'f'))) {
-          $messageStack-&gt;add('checkout_address', ENTRY_GENDER_ERROR);
-        }
-      }
-
-      if (!isset($_POST['firstname']) || (strlen(trim($_POST['firstname'])) &lt; ACCOUNT_FIRST_NAME)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_FIRST_NAME_ERROR);
-      }
-
-      if (!isset($_POST['lastname']) || (strlen(trim($_POST['lastname'])) &lt; ACCOUNT_LAST_NAME)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_LAST_NAME_ERROR);
-      }
-
-      if (ACCOUNT_COMPANY &gt; 0) {
-        if (!isset($_POST['company']) || (strlen(trim($_POST['company'])) &lt; ACCOUNT_COMPANY)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_COMPANY_ERROR);
-        }
-      }
-
-      if (!isset($_POST['street_address']) || (strlen(trim($_POST['street_address'])) &lt; ACCOUNT_STREET_ADDRESS)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_STREET_ADDRESS_ERROR);
-      }
-
-      if (ACCOUNT_SUBURB &gt; 0) {
-        if (!isset($_POST['suburb']) || (strlen(trim($_POST['suburb'])) &lt; ACCOUNT_SUBURB)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_SUBURB_ERROR);
-        }
-      }
-
-      if (!isset($_POST['postcode']) || (strlen(trim($_POST['postcode'])) &lt; ACCOUNT_POST_CODE)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_POST_CODE_ERROR);
-      }
-
-      if (!isset($_POST['city']) || (strlen(trim($_POST['city'])) &lt; ACCOUNT_CITY)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_CITY_ERROR);
-      }
-
-      if (ACCOUNT_STATE &gt; 0) {
-        $zone_id = 0;
-
-        $Qcheck = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id limit 1');
-        $Qcheck-&gt;bindRaw(':table_zones', TABLE_ZONES);
-        $Qcheck-&gt;bindValue(':zone_country_id', $_POST['country']);
-        $Qcheck-&gt;execute();
-
-        $entry_state_has_zones = ($Qcheck-&gt;numberOfRows() &gt; 0);
-
-        $Qcheck-&gt;freeResult();
-
-        if ($entry_state_has_zones === true) {
-          $Qzone = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id and zone_code like :zone_code');
-          $Qzone-&gt;bindRaw(':table_zones', TABLE_ZONES);
-          $Qzone-&gt;bindValue(':zone_country_id', $_POST['country']);
-          $Qzone-&gt;bindValue(':zone_code', trim($_POST['state']));
-          $Qzone-&gt;execute();
-
-          if ($Qzone-&gt;numberOfRows() === 1) {
-            $zone_id = $Qzone-&gt;valueInt('zone_id');
-          } else {
-            $Qzone = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id and zone_name like :zone_name');
-            $Qzone-&gt;bindRaw(':table_zones', TABLE_ZONES);
-            $Qzone-&gt;bindValue(':zone_country_id', $_POST['country']);
-            $Qzone-&gt;bindValue(':zone_name', trim($_POST['state']) . '%');
-            $Qzone-&gt;execute();
-
-            if ($Qzone-&gt;numberOfRows() === 1) {
-              $zone_id = $Qzone-&gt;valueInt('zone_id');
-            } else {
-              $messageStack-&gt;add('checkout_address', ENTRY_STATE_ERROR_SELECT);
-            }
-          }
-
-          $Qzone-&gt;freeResult();
-        } else {
-          if (strlen(trim($_POST['state'])) &lt; ACCOUNT_STATE) {
-            $messageStack-&gt;add('checkout_address', ENTRY_STATE_ERROR);
-          }
-        }
-      }
-
-      if ( (is_numeric($_POST['country']) === false) || ($_POST['country'] &lt; 1) ) {
-        $messageStack-&gt;add('checkout_address', ENTRY_COUNTRY_ERROR);
-      }
-
-      if (ACCOUNT_TELEPHONE &gt; 0) {
-        if (!isset($_POST['telephone']) || (strlen(trim($_POST['telephone'])) &lt; ACCOUNT_TELEPHONE)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_TELEPHONE_NUMBER_ERROR);
-        }
-      }
-
-      if (ACCOUNT_FAX &gt; 0) {
-        if (!isset($_POST['fax']) || (strlen(trim($_POST['fax'])) &lt; ACCOUNT_FAX)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_FAX_NUMBER_ERROR);
-        }
-      }
-
-      if ($messageStack-&gt;size('checkout_address') === 0) {
-        $Qab = $osC_Database-&gt;query('insert into :table_address_book (customers_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id, entry_telephone, entry_fax) values (:customers_id, :entry_gender, :entry_company, :entry_firstname, :entry_lastname, :entry_street_address, :entry_suburb, :entry_postcode, :entry_city, :entry_state, :entry_country_id, :entry_zone_id, :entry_telephone, :entry_fax)');
-        $Qab-&gt;bindRaw(':table_address_book', TABLE_ADDRESS_BOOK);
-        $Qab-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-        $Qab-&gt;bindValue(':entry_gender', (((ACCOUNT_GENDER &gt; -1) &amp;&amp; isset($_POST['gender']) &amp;&amp; (($_POST['gender'] == 'm') || ($_POST['gender'] == 'f'))) ? $_POST['gender'] : ''));
-        $Qab-&gt;bindValue(':entry_company', ((ACCOUNT_COMPANY &gt; -1) ? trim($_POST['company']) : ''));
-        $Qab-&gt;bindValue(':entry_firstname', trim($_POST['firstname']));
-        $Qab-&gt;bindValue(':entry_lastname', trim($_POST['lastname']));
-        $Qab-&gt;bindValue(':entry_street_address', trim($_POST['street_address']));
-        $Qab-&gt;bindValue(':entry_suburb', ((ACCOUNT_SUBURB &gt; -1) ? trim($_POST['suburb']) : ''));
-        $Qab-&gt;bindValue(':entry_postcode', trim($_POST['postcode']));
-        $Qab-&gt;bindValue(':entry_city', trim($_POST['city']));
-        $Qab-&gt;bindValue(':entry_state', ((ACCOUNT_STATE &gt; -1) ? (($zone_id &gt; 0) ? '' : trim($_POST['state'])) : ''));
-        $Qab-&gt;bindInt(':entry_country_id', $_POST['country']);
-        $Qab-&gt;bindInt(':entry_zone_id', ((ACCOUNT_STATE &gt; -1) ? (($zone_id &gt; 0) ? $zone_id : 0) : ''));
-        $Qab-&gt;bindValue(':entry_telephone', ((ACCOUNT_TELEPHONE &gt; -1) ? trim($_POST['telephone']) : ''));
-        $Qab-&gt;bindValue(':entry_fax', ((ACCOUNT_FAX &gt; -1) ? trim($_POST['fax']) : ''));
-        $Qab-&gt;execute();
-
-        if ($Qab-&gt;affectedRows() === 1) {
-          $address_book_id = $osC_Database-&gt;nextID();
-
-          if ($osC_Customer-&gt;hasDefaultAddress() === false) {
-            $Qcustomer = $osC_Database-&gt;query('update :table_customers set customers_default_address_id = :customers_default_address_id where customers_id = :customers_id');
-            $Qcustomer-&gt;bindRaw(':table_customers', TABLE_CUSTOMERS);
-            $Qcustomer-&gt;bindInt(':customers_default_address_id', $address_book_id);
-            $Qcustomer-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-            $Qcustomer-&gt;execute();
-
-            $osC_Customer-&gt;setCountryID($_POST['country']);
-            $osC_Customer-&gt;setZoneID($zone_id);
-            $osC_Customer-&gt;setDefaultAddressID($address_book_id);
-          }
-
-          $osC_Session-&gt;set('billto', $address_book_id);
-          $osC_Session-&gt;remove('payment');
-
-          tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-        } else {
-          $messageStack-&gt;add('checkout_address', 'Error inserting into address book table.');
-        }
-      }
-// process the selected billing destination
-    } elseif (isset($_POST['address'])) {
-      $reset_payment = false;
-      if ($osC_Session-&gt;exists('billto')) {
-        if ($osC_Session-&gt;value('billto') != $_POST['address']) {
-          if ($osC_Session-&gt;exists('payment')) {
-            $reset_payment = true;
-          }
-        }
-      }
-
-      $osC_Session-&gt;set('billto', $_POST['address']);
-
-      $Qcheck = $osC_Database-&gt;query('select count(*) as total from :table_address_book where customers_id = :customers_id and address_book_id = :address_book_id');
-      $Qcheck-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-      $Qcheck-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-      $Qcheck-&gt;bindInt(':address_book_id', $osC_Session-&gt;value('billto'));
-      $Qcheck-&gt;execute();
-
-      if ($Qcheck-&gt;valueInt('total') == 1) {
-        if ($reset_payment == true) {
-          $osC_Session-&gt;remove('payment');
-        }
-
-        tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-      } else {
-        $osC_Session-&gt;remove('billto');
-      }
-// no addresses to select from - customer decided to keep the current assigned address
-    } else {
-      $osC_Session-&gt;set('billto', $osC_Customer-&gt;default_address_id);
-
-      tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-    }
-  }
-
-// if no billing destination address was selected, use their own address as default
-  if ($osC_Session-&gt;exists('billto') == false) {
-    $osC_Session-&gt;set('billto', $osC_Customer-&gt;default_address_id);
-  }
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
-
-  $addresses_count = tep_count_customer_address_book_entries();
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;script language="javascript"&gt;&lt;!--
-var selected;
-
-function selectRowEffect(object, buttonSelect) {
-  if (!selected) {
-    if (document.getElementById) {
-      selected = document.getElementById('defaultSelected');
-    } else {
-      selected = document.all['defaultSelected'];
-    }
-  }
-
-  if (selected) selected.className = 'moduleRow';
-  object.className = 'moduleRowSelected';
-  selected = object;
-
-// one button is not an array
-  if (document.checkout_address.address[0]) {
-    document.checkout_address.address[buttonSelect].checked=true;
-  } else {
-    document.checkout_address.address.checked=true;
-  }
-}
-
-function rowOverEffect(object) {
-  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
-}
-
-function rowOutEffect(object) {
-  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
-}
-
-function check_form_optional(form_name) {
-  var form = form_name;
-
-  var firstname = form.elements['firstname'].value;
-  var lastname = form.elements['lastname'].value;
-  var street_address = form.elements['street_address'].value;
-
-  if (firstname == '' &amp;&amp; lastname == '' &amp;&amp; street_address == '') {
-    return true;
-  } else {
-    return check_form(form_name);
-  }
-}
-//--&gt;&lt;/script&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'form_check.js.php'); ?&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'), 'post', 'onSubmit="return check_form_optional(checkout_address);"'); ?&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/td&gt;
-            &lt;td class="pageHeading" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_payment.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if ($messageStack-&gt;size('checkout_address') &gt; 0) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo $messageStack-&gt;output('checkout_address'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-
-  if (!isset($_POST['action'])) {
-    if ($osC_Customer-&gt;hasDefaultAddress() === true) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_PAYMENT_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECTED_PAYMENT_DESTINATION; ?&gt;&lt;/td&gt;
-                &lt;td align="right" width="50%" valign="top"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" align="center" valign="top"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_PAYMENT_ADDRESS . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" valign="top"&gt;&lt;?php echo tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('billto'), true, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-    }
-
-    if ($addresses_count &gt; 1) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECT_OTHER_PAYMENT_DESTINATION; ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top" align="right"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_PLEASE_SELECT . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-      $radio_buttons = 0;
-
-      $Qaddresses = $osC_Database-&gt;query('select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from :table_address_book where customers_id = :customers_id');
-      $Qaddresses-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-      $Qaddresses-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-      $Qaddresses-&gt;execute();
-
-      while ($Qaddresses-&gt;next()) {
-        $format_id = tep_get_address_format_id($Qaddresses-&gt;valueInt('country_id'));
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td colspan="2"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-       if ($Qaddresses-&gt;valueInt('address_book_id') == $osC_Session-&gt;value('billto')) {
-          echo '                  &lt;tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-        } else {
-          echo '                  &lt;tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-        }
-?&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="2"&gt;&lt;b&gt;&lt;?php echo $Qaddresses-&gt;valueProtected('firstname') . ' ' . $Qaddresses-&gt;valueProtected('lastname'); ?&gt;&lt;/b&gt;&lt;/td&gt;
-                    &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_radio_field('address', $Qaddresses-&gt;valueInt('address_book_id'), $osC_Session-&gt;value('billto')); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td colspan="3"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                      &lt;tr&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                        &lt;td class="main"&gt;&lt;?php echo tep_address_format($format_id, $Qaddresses-&gt;toArray(), true, ' ', ', '); ?&gt;&lt;/td&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                      &lt;/tr&gt;
-                    &lt;/table&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-        $radio_buttons++;
-      }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-    }
-  }
-
-  if ($addresses_count &lt; MAX_ADDRESS_BOOK_ENTRIES) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_NEW_PAYMENT_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="100%" valign="top"&gt;&lt;?php echo TEXT_CREATE_NEW_PAYMENT_ADDRESS; ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php require(DIR_WS_MODULES . 'checkout_new_address.php'); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '&lt;/b&gt;&lt;br&gt;' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?&gt;&lt;/td&gt;
-                &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo '&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" class="checkoutBarFrom"&gt;' . CHECKOUT_BAR_DELIVERY . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_PAYMENT; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;&lt;/form&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<hr /><a name="file4" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_process.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_process.php?rev=1.132&amp;content-type=text/vnd.viewcvs-markup">1.132</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_process.php
--- /tmp/cvsAAAvkaWMb	Wed Mar 30 02:13:07 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,326 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  include('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot(array('mode' =&gt; 'SSL', 'page' =&gt; FILENAME_CHECKOUT_PAYMENT));
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-  if ($osC_Session-&gt;exists('sendto') == false) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-  }
-
-  if (tep_not_null(MODULE_PAYMENT_INSTALLED) &amp;&amp; ($osC_Session-&gt;exists('payment') == false)) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
- }
-
-// avoid hack attempts during the checkout procedure by checking the internal cartID
-  if (isset($cart-&gt;cartID) &amp;&amp; $osC_Session-&gt;exists('cartID') &amp;&amp; ($cart-&gt;cartID != $osC_Session-&gt;value('cartID'))) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  }
-
-  include(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_PROCESS);
-
-// load selected payment module
-  require(DIR_WS_CLASSES . 'payment.php');
-  $payment_modules = new payment($osC_Session-&gt;value('payment'));
-
-// load the selected shipping module
-  require(DIR_WS_CLASSES . 'shipping.php');
-  $shipping_modules = new shipping($osC_Session-&gt;value('shipping'));
-
-  require(DIR_WS_CLASSES . 'order.php');
-  $order = new order;
-
-// load the before_process function from the payment modules
-  $payment_modules-&gt;before_process();
-
-  require(DIR_WS_CLASSES . 'order_total.php');
-  $order_total_modules = new order_total;
-
-  $order_totals = $order_total_modules-&gt;process();
-
-  $Qorder = $osC_Database-&gt;query('insert into :table_orders (customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, customers_ip_address, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, date_purchased, orders_status, currency, currency_value) values (:customers_id, :customers_name, :customers_company, :customers_street_address, :customers_suburb, :customers_city, :c
 ustomers_postcode, :customers_state, :customers_country, :customers_telephone, :customers_
 email_address,<strong class="error">[...]</strong>
-  $Qorder-&gt;bindTable(':table_orders', TABLE_ORDERS);
-  $Qorder-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-  $Qorder-&gt;bindValue(':customers_name', $order-&gt;customer['firstname'] . ' ' . $order-&gt;customer['lastname']);
-  $Qorder-&gt;bindValue(':customers_company', $order-&gt;customer['company']);
-  $Qorder-&gt;bindValue(':customers_street_address', $order-&gt;customer['street_address']);
-  $Qorder-&gt;bindValue(':customers_suburb', $order-&gt;customer['suburb']);
-  $Qorder-&gt;bindValue(':customers_city', $order-&gt;customer['city']);
-  $Qorder-&gt;bindValue(':customers_postcode', $order-&gt;customer['postcode']);
-  $Qorder-&gt;bindValue(':customers_state', $order-&gt;customer['state']);
-  $Qorder-&gt;bindValue(':customers_country', $order-&gt;customer['country']['title']);
-  $Qorder-&gt;bindValue(':customers_telephone', $order-&gt;customer['telephone']);
-  $Qorder-&gt;bindValue(':customers_email_address', $order-&gt;customer['email_address']);
-  $Qorder-&gt;bindInt(':customers_address_format_id', $order-&gt;customer['format_id']);
-  $Qorder-&gt;bindValue(':customers_ip_address', tep_get_ip_address());
-  $Qorder-&gt;bindValue(':delivery_name', $order-&gt;delivery['firstname'] . ' ' . $order-&gt;delivery['lastname']);
-  $Qorder-&gt;bindValue(':delivery_company', $order-&gt;delivery['company']);
-  $Qorder-&gt;bindValue(':delivery_street_address', $order-&gt;delivery['street_address']);
-  $Qorder-&gt;bindValue(':delivery_suburb', $order-&gt;delivery['suburb']);
-  $Qorder-&gt;bindValue(':delivery_city', $order-&gt;delivery['city']);
-  $Qorder-&gt;bindValue(':delivery_postcode', $order-&gt;delivery['postcode']);
-  $Qorder-&gt;bindValue(':delivery_state', $order-&gt;delivery['state']);
-  $Qorder-&gt;bindValue(':delivery_country', $order-&gt;delivery['country']['title']);
-  $Qorder-&gt;bindInt(':delivery_address_format_id', $order-&gt;delivery['format_id']);
-  $Qorder-&gt;bindValue(':billing_name', $order-&gt;billing['firstname'] . ' ' . $order-&gt;billing['lastname']);
-  $Qorder-&gt;bindValue(':billing_company', $order-&gt;billing['company']);
-  $Qorder-&gt;bindValue(':billing_street_address', $order-&gt;billing['street_address']);
-  $Qorder-&gt;bindValue(':billing_suburb', $order-&gt;billing['suburb']);
-  $Qorder-&gt;bindValue(':billing_city', $order-&gt;billing['city']);
-  $Qorder-&gt;bindValue(':billing_postcode', $order-&gt;billing['postcode']);
-  $Qorder-&gt;bindValue(':billing_state', $order-&gt;billing['state']);
-  $Qorder-&gt;bindValue(':billing_country', $order-&gt;billing['country']['title']);
-  $Qorder-&gt;bindInt(':billing_address_format_id', $order-&gt;billing['format_id']);
-  $Qorder-&gt;bindValue(':payment_method', $order-&gt;info['payment_method']);
-  $Qorder-&gt;bindValue(':cc_type', $order-&gt;info['cc_type']);
-  $Qorder-&gt;bindValue(':cc_owner', $order-&gt;info['cc_owner']);
-  $Qorder-&gt;bindValue(':cc_number', $order-&gt;info['cc_number']);
-  $Qorder-&gt;bindValue(':cc_expires', $order-&gt;info['cc_expires']);
-  $Qorder-&gt;bindRaw(':date_purchased', 'now()');
-  $Qorder-&gt;bindValue(':orders_status', $order-&gt;info['order_status']);
-  $Qorder-&gt;bindValue(':currency', $order-&gt;info['currency']);
-  $Qorder-&gt;bindValue(':currency_value', $order-&gt;info['currency_value']);
-  $Qorder-&gt;execute();
-
-  $insert_id = $osC_Database-&gt;nextID();
-
-  for ($i=0, $n=sizeof($order_totals); $i&lt;$n; $i++) {
-    $Qtotals = $osC_Database-&gt;query('insert into :table_orders_total (orders_id, title, text, value, class, sort_order) values (:orders_id, :title, :text, :value, :class, :sort_order)');
-    $Qtotals-&gt;bindTable(':table_orders_total', TABLE_ORDERS_TOTAL);
-    $Qtotals-&gt;bindInt(':orders_id', $insert_id);
-    $Qtotals-&gt;bindValue(':title', $order_totals[$i]['title']);
-    $Qtotals-&gt;bindValue(':text', $order_totals[$i]['text']);
-    $Qtotals-&gt;bindValue(':value', $order_totals[$i]['value']);
-    $Qtotals-&gt;bindValue(':class', $order_totals[$i]['code']);
-    $Qtotals-&gt;bindInt(':sort_order', $order_totals[$i]['sort_order']);
-    $Qtotals-&gt;execute();
-  }
-
-  $Qstatus = $osC_Database-&gt;query('insert into :table_orders_status_history (orders_id, orders_status_id, date_added, customer_notified, comments) values (:orders_id, :orders_status_id, :date_added, :customer_notified, :comments)');
-  $Qstatus-&gt;bindTable(':table_orders_status_history', TABLE_ORDERS_STATUS_HISTORY);
-  $Qstatus-&gt;bindInt(':orders_id', $insert_id);
-  $Qstatus-&gt;bindInt(':orders_status_id', $order-&gt;info['order_status']);
-  $Qstatus-&gt;bindRaw(':date_added', 'now()');
-  $Qstatus-&gt;bindInt(':customer_notified', (SEND_EMAILS == 'true') ? '1' : '0');
-  $Qstatus-&gt;bindValue(':comments', $order-&gt;info['comments']);
-  $Qstatus-&gt;execute();
-
-// initialized for the email confirmation
-  $products_ordered = '';
-  $subtotal = 0;
-  $total_tax = 0;
-  $total_weight = 0;
-  $total_cost = 0;
-
-  for ($i=0, $n=sizeof($order-&gt;products); $i&lt;$n; $i++) {
-// Stock Update - Joao Correia
-    if (STOCK_LIMITED == 'true') {
-      if (DOWNLOAD_ENABLED == 'true') {
-        $Qstock = $osC_Database-&gt;query('select products_quantity, pad.products_attributes_filename from :table_products p left join :table_products_attributes pa on (p.products_id = pa.products_id) left join :table_products_attributes_download pad on (pa.products_attributes_id = pad.products_attributes_id) where p.products_id = :products_id');
-        $Qstock-&gt;bindTable(':table_products', TABLE_PRODUCTS);
-        $Qstock-&gt;bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
-        $Qstock-&gt;bindTable(':table_products_attributes_download', TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD);
-        $Qstock-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-
-// Will work with only one option for downloadable products otherwise, we have to build the query dynamically with a loop
-        $products_attributes = $order-&gt;products[$i]['attributes'];
-
-        if (is_array($products_attributes)) {
-          $Qstock-&gt;appendQuery('and pa.options_id = :options_id and pa.options_values_id = :options_values_id');
-          $Qstock-&gt;bindInt(':options_id', $products_attributes[0]['option_id']);
-          $Qstock-&gt;bindInt(':options_values_id', $products_attributes[0]['value_id']);
-        }
-      } else {
-        $Qstock = $osC_Database-&gt;query('select products_quantity from :table_products where products_id = :products_id');
-        $Qstock-&gt;bindTable(':table_products', TABLE_PRODUCTS);
-        $Qstock-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-      }
-
-      $Qstock-&gt;execute();
-
-      if ($Qstock-&gt;numberOfRows() &gt; 0) {
-        $stock_left = $Qstock-&gt;valueInt('products_quantity');
-
-// do not decrement quantities if products_attributes_filename exists
-        if ((DOWNLOAD_ENABLED != 'true') || ((DOWNLOAD_ENABLED == 'true') &amp;&amp; (strlen($Qstock-&gt;value('products_attributes_filename')) &lt; 1))) {
-          $stock_left = $stock_left - $order-&gt;products[$i]['qty'];
-
-          $Qupdate = $osC_Database-&gt;query('update :table_products set products_quantity = :products_quantity where products_id = :products_id');
-          $Qupdate-&gt;bindTable(':table_products', TABLE_PRODUCTS);
-          $Qupdate-&gt;bindInt(':products_quantity', $stock_left);
-          $Qupdate-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-          $Qupdate-&gt;execute();
-        }
-
-        if ((STOCK_ALLOW_CHECKOUT == 'false') &amp;&amp; ($stock_left &lt; 1)) {
-          $Qupdate = $osC_Database-&gt;query('update :table_products set products_status = :products_status where products_id = :products_id');
-          $Qupdate-&gt;bindTable(':table_products', TABLE_PRODUCTS);
-          $Qupdate-&gt;bindInt(':products_status', 0);
-          $Qupdate-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-          $Qupdate-&gt;execute();
-        }
-      }
-    }
-
-// Update products_ordered (for bestsellers list)
-    $Qupdate = $osC_Database-&gt;query('update :table_products set products_ordered = products_ordered + :products_ordered where products_id = :products_id');
-    $Qupdate-&gt;bindTable(':table_products', TABLE_PRODUCTS);
-    $Qupdate-&gt;bindInt(':products_ordered', $order-&gt;products[$i]['qty']);
-    $Qupdate-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-    $Qupdate-&gt;execute();
-
-    $Qproducts = $osC_Database-&gt;query('insert into :table_orders_products (orders_id, products_id, products_model, products_name, products_price, final_price, products_tax, products_quantity) values (:orders_id, :products_id, :products_model, :products_name, :products_price, :final_price, :products_tax, :products_quantity)');
-    $Qproducts-&gt;bindTable(':table_orders_products', TABLE_ORDERS_PRODUCTS);
-    $Qproducts-&gt;bindInt(':orders_id', $insert_id);
-    $Qproducts-&gt;bindInt(':products_id', tep_get_prid($order-&gt;products[$i]['id']));
-    $Qproducts-&gt;bindValue(':products_model', $order-&gt;products[$i]['model']);
-    $Qproducts-&gt;bindValue(':products_name', $order-&gt;products[$i]['name']);
-    $Qproducts-&gt;bindValue(':products_price', $order-&gt;products[$i]['price']);
-    $Qproducts-&gt;bindValue(':final_price', $order-&gt;products[$i]['final_price']);
-    $Qproducts-&gt;bindValue(':products_tax', $order-&gt;products[$i]['tax']);
-    $Qproducts-&gt;bindInt(':products_quantity', $order-&gt;products[$i]['qty']);
-    $Qproducts-&gt;execute();
-
-    $order_products_id = $osC_Database-&gt;nextID();
-
-//------insert customer choosen option to order--------
-    $attributes_exist = '0';
-    $products_ordered_attributes = '';
-
-    if (isset($order-&gt;products[$i]['attributes'])) {
-      $attributes_exist = '1';
-
-      for ($j=0, $n2=sizeof($order-&gt;products[$i]['attributes']); $j&lt;$n2; $j++) {
-        if (DOWNLOAD_ENABLED == 'true') {
-          $Qattributes = $osC_Database-&gt;query('select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix, pad.products_attributes_maxdays, pad.products_attributes_maxcount, pad.products_attributes_filename from :table_products_options popt, :table_products_options_values poval, :table_products_attributes pa left join :table_products_attributes_download pad on (pa.products_attributes_id = pad.products_attributes_id) where pa.products_id = :products_id and pa.options_id = :options_id and pa.options_id = popt.products_options_id and pa.options_values_id = :options_values_id and pa.options_values_id = poval.products_options_values_id and popt.language_id = :popt_language_id and poval.language_id = :poval_language_id');
-          $Qattributes-&gt;bindTable(':table_products_options', TABLE_PRODUCTS_OPTIONS);
-          $Qattributes-&gt;bindTable(':table_products_options_values', TABLE_PRODUCTS_OPTIONS_VALUES);
-          $Qattributes-&gt;bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
-          $Qattributes-&gt;bindTable(':table_products_attributes_download', TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD);
-          $Qattributes-&gt;bindInt(':products_id', $order-&gt;products[$i]['id']);
-          $Qattributes-&gt;bindInt(':options_id', $order-&gt;products[$i]['attributes'][$j]['option_id']);
-          $Qattributes-&gt;bindInt(':options_values_id', $order-&gt;products[$i]['attributes'][$j]['value_id']);
-          $Qattributes-&gt;bindInt(':popt_language_id', $osC_Session-&gt;value('languages_id'));
-          $Qattributes-&gt;bindInt(':poval_language_id', $osC_Session-&gt;value('languages_id'));
-        } else {
-          $Qattributes = $osC_Database-&gt;query('select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from :table_products_options popt, :table_products_options_values poval, :table_products_attributes pa where pa.products_id = :products_id and pa.options_id = :options_id and pa.options_id = popt.products_options_id and pa.options_values_id = :options_values_id and pa.options_values_id = poval.products_options_values_id and popt.language_id = :popt_language_id and poval.language_id = :poval_language_id');
-          $Qattributes-&gt;bindTable(':table_products_options', TABLE_PRODUCTS_OPTIONS);
-          $Qattributes-&gt;bindTable(':table_products_options_values', TABLE_PRODUCTS_OPTIONS_VALUES);
-          $Qattributes-&gt;bindTable(':table_products_attributes', TABLE_PRODUCTS_ATTRIBUTES);
-          $Qattributes-&gt;bindInt(':products_id', $order-&gt;products[$i]['id']);
-          $Qattributes-&gt;bindInt(':options_id', $order-&gt;products[$i]['attributes'][$j]['option_id']);
-          $Qattributes-&gt;bindInt(':options_values_id', $order-&gt;products[$i]['attributes'][$j]['value_id']);
-          $Qattributes-&gt;bindInt(':popt_language_id', $osC_Session-&gt;value('languages_id'));
-          $Qattributes-&gt;bindInt(':poval_language_id', $osC_Session-&gt;value('languages_id'));
-        }
-        $Qattributes-&gt;execute();
-
-        $Qopa = $osC_Database-&gt;query('insert into :table_orders_products_attributes (orders_id, orders_products_id, products_options, products_options_values, options_values_price, price_prefix) values (:orders_id, :orders_products_id, :products_options, :products_options_values, :options_values_price, :price_prefix)');
-        $Qopa-&gt;bindTable(':table_orders_products_attributes', TABLE_ORDERS_PRODUCTS_ATTRIBUTES);
-        $Qopa-&gt;bindInt(':orders_id', $insert_id);
-        $Qopa-&gt;bindInt(':orders_products_id', $order_products_id);
-        $Qopa-&gt;bindValue(':products_options', $attributes_values['products_options_name']);
-        $Qopa-&gt;bindValue(':products_options_values', $attributes_values['products_options_values_name']);
-        $Qopa-&gt;bindValue(':options_values_price', $attributes_values['options_values_price']);
-        $Qopa-&gt;bindValue(':price_prefix', $attributes_values['price_prefix']);
-        $Qopa-&gt;execute();
-
-        if ((DOWNLOAD_ENABLED == 'true') &amp;&amp; (strlen($Qattributes-&gt;value('products_attributes_filename')) &gt; 0)) {
-          $Qopd = $osC_Database-&gt;query('insert into :table_orders_products_download (orders_id, orders_products_id, orders_products_filename, download_maxdays, download_count) values (:orders_id, :orders_products_id, :orders_products_filename, :download_maxdays, :download_count)');
-          $Qopd-&gt;bindTable(':table_orders_products_download', TABLE_ORDERS_PRODUCTS_DOWNLOAD);
-          $Qopd-&gt;bindInt(':orders_id', $insert_id);
-          $Qopd-&gt;bindInt(':orders_products_id', $order_products_id);
-          $Qopd-&gt;bindValue(':orders_products_filename', $Qattributes-&gt;value('products_attributes_filename'));
-          $Qopd-&gt;bindValue(':download_maxdays', $Qattributes-&gt;value('products_attributes_maxdays'));
-          $Qopd-&gt;bindValue(':download_count', $Qattributes-&gt;value('products_attributes_maxcount'));
-          $Qopd-&gt;execute();
-        }
-
-        $products_ordered_attributes .= "\n\t" . $Qattributes-&gt;value('products_options_name') . ' ' . $Qattributes-&gt;value('products_options_values_name');
-      }
-    }
-//------insert customer choosen option eof ----
-    $total_weight += ($order-&gt;products[$i]['qty'] * $order-&gt;products[$i]['weight']);
-    $total_tax += tep_calculate_tax($order-&gt;products[$i]['final_price'], $order-&gt;products[$i]['tax']) * $order-&gt;products[$i]['qty'];
-    $total_cost += $order-&gt;products[$i]['final_price'];
-
-    $products_ordered .= $order-&gt;products[$i]['qty'] . ' x ' . $order-&gt;products[$i]['name'] . ' (' . $order-&gt;products[$i]['model'] . ') = ' . $osC_Currencies-&gt;displayPrice($order-&gt;products[$i]['final_price'], $order-&gt;products[$i]['tax_class_id'], $order-&gt;products[$i]['qty']) . $products_ordered_attributes . "\n";
-  }
-
-// lets start with the email confirmation
-  $email_order = STORE_NAME . "\n" .
-                 EMAIL_SEPARATOR . "\n" .
-                 EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
-                 EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
-                 EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
-  if ($order-&gt;info['comments']) {
-    $email_order .= tep_output_string_protected($order-&gt;info['comments']) . "\n\n";
-  }
-  $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
-                  EMAIL_SEPARATOR . "\n" .
-                  $products_ordered .
-                  EMAIL_SEPARATOR . "\n";
-
-  for ($i=0, $n=sizeof($order_totals); $i&lt;$n; $i++) {
-    $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
-  }
-
-  if ($order-&gt;content_type != 'virtual') {
-    $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
-                    EMAIL_SEPARATOR . "\n" .
-                    tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('sendto'), 0, '', "\n") . "\n";
-  }
-
-  $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
-                  EMAIL_SEPARATOR . "\n" .
-                  tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('billto'), 0, '', "\n") . "\n\n";
-
-  $payment =&amp; $osC_Session-&gt;value('payment');
-
-  if (is_object($$payment)) {
-    $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
-                    EMAIL_SEPARATOR . "\n";
-    $payment_class = $$payment;
-    $email_order .= $payment_class-&gt;title . "\n\n";
-    if (isset($payment_class-&gt;email_footer)) {
-      $email_order .= $payment_class-&gt;email_footer . "\n\n";
-    }
-  }
-  tep_mail($order-&gt;customer['firstname'] . ' ' . $order-&gt;customer['lastname'], $order-&gt;customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
-
-// send emails to other people
-  if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
-    tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
-  }
-
-// load the after_process function from the payment modules
-  $payment_modules-&gt;after_process();
-
-  $cart-&gt;reset(true);
-
-// unregister session variables used during checkout
-  $osC_Session-&gt;remove('sendto');
-  $osC_Session-&gt;remove('billto');
-  $osC_Session-&gt;remove('shipping');
-  $osC_Session-&gt;remove('payment');
-  $osC_Session-&gt;remove('comments');
-
-  tep_redirect(tep_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'));
-
-  require(DIR_WS_INCLUDES . 'application_bottom.php');
-?&gt;
<hr /><a name="file5" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_shipping.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_shipping.php?rev=1.25&amp;content-type=text/vnd.viewcvs-markup">1.25</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_shipping.php
--- /tmp/cvsAAAqla4Mb	Wed Mar 30 02:13:07 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,462 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-  require('includes/classes/http_client.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot();
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-// if there is nothing in the customers cart, redirect them to the shopping cart page
-  if ($cart-&gt;count_contents() &lt; 1) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-// redirect to the shipping address page when no default address exists
-  if ($osC_Customer-&gt;hasDefaultAddress() === false) {
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
-  }
-
-// if no shipping destination address was selected, use the customers own address as default
-  if ($osC_Session-&gt;exists('sendto') == false) {
-    $osC_Session-&gt;set('sendto', $osC_Customer-&gt;default_address_id);
-  } else {
-// verify the selected shipping address
-    $Qcheck = $osC_Database-&gt;query('select count(*) as total from :table_address_book where customers_id = :customers_id and address_book_id = :address_book_id');
-    $Qcheck-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-    $Qcheck-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-    $Qcheck-&gt;bindInt(':address_book_id', $osC_Session-&gt;value('sendto'));
-    $Qcheck-&gt;execute();
-
-    if ($Qcheck-&gt;valueInt('total') != 1) {
-      $osC_Session-&gt;set('sendto', $osC_Customer-&gt;default_address_id);
-
-      $osC_Session-&gt;remove('shipping');
-    }
-  }
-
-  require(DIR_WS_CLASSES . 'order.php');
-  $order = new order;
-
-// register a random ID in the session to check throughout the checkout procedure
-// against alterations in the shopping cart contents
-  $osC_Session-&gt;set('cartID', $cart-&gt;cartID);
-
-// if the order contains only virtual products, forward the customer to the billing page as
-// a shipping address is not needed
-  if ($order-&gt;content_type == 'virtual') {
-
-    $false = false;
-
-    $osC_Session-&gt;set('shipping', $false);
-    $osC_Session-&gt;set('sendto', $false);
-
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-  }
-
-  $total_weight = $cart-&gt;show_weight();
-  $total_count = $cart-&gt;count_contents();
-
-// load all enabled shipping modules
-  require(DIR_WS_CLASSES . 'shipping.php');
-  $shipping_modules = new shipping;
-
-  if (defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') &amp;&amp; (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true')) {
-    $pass = false;
-
-    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
-      case 'national':
-        if ($order-&gt;delivery['country_id'] == STORE_COUNTRY) {
-          $pass = true;
-        }
-        break;
-      case 'international':
-        if ($order-&gt;delivery['country_id'] != STORE_COUNTRY) {
-          $pass = true;
-        }
-        break;
-      case 'both':
-        $pass = true;
-        break;
-    }
-
-    $free_shipping = false;
-    if ( ($pass == true) &amp;&amp; ( ($order-&gt;info['total'] - $order-&gt;info['shipping_cost']) &gt;= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
-      $free_shipping = true;
-
-      include(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/modules/order_total/ot_shipping.php');
-    }
-  } else {
-    $free_shipping = false;
-  }
-
-// process the selected shipping method
-  if (isset($_POST['action']) &amp;&amp; ($_POST['action'] == 'process')) {
-    if (tep_not_null($_POST['comments'])) {
-      $osC_Session-&gt;set('comments', tep_sanitize_string($_POST['comments']));
-    }
-
-    if ( (tep_count_shipping_modules() &gt; 0) || ($free_shipping == true) ) {
-      if (isset($_POST['shipping']) &amp;&amp; strpos($_POST['shipping'], '_')) {
-        $osC_Session-&gt;set('shipping', $_POST['shipping']);
-
-        list($module, $method) = explode('_', $osC_Session-&gt;value('shipping'));
-        if (is_object($$module) || ($osC_Session-&gt;value('shipping') == 'free_free')) {
-          if ($osC_Session-&gt;value('shipping') == 'free_free') {
-            $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
-            $quote[0]['methods'][0]['cost'] = '0';
-          } else {
-            $quote = $shipping_modules-&gt;quote($method, $module);
-          }
-
-          if (isset($quote['error'])) {
-            $osC_Session-&gt;remove('shipping');
-          } else {
-            if (isset($quote[0]['methods'][0]['title']) &amp;&amp; isset($quote[0]['methods'][0]['cost'])) {
-              $shipping = array('id' =&gt; $osC_Session-&gt;value('shipping'),
-                                'title' =&gt; (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
-                                'cost' =&gt; $quote[0]['methods'][0]['cost']);
-
-              $osC_Session-&gt;set('shipping', $shipping);
-
-              tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-            }
-          }
-        } else {
-          $osC_Session-&gt;remove('shipping');
-        }
-      }
-    } else {
-      $osC_Session-&gt;set('shipping', false);
-
-      tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-    }
-  }
-
-// get all available shipping quotes
-  $quotes = $shipping_modules-&gt;quote();
-
-// if no shipping method has been selected, automatically select the cheapest method.
-// if the modules status was changed when none were available, to save on implementing
-// a javascript force-selection method, also automatically select the cheapest shipping
-// method if more than one module is now enabled
-  if ( ($osC_Session-&gt;exists('shipping') == false) || ($osC_Session-&gt;exists('shipping') &amp;&amp; ($osC_Session-&gt;value('shipping') == false) &amp;&amp; (tep_count_shipping_modules() &gt; 1)) ) {
-    $osC_Session-&gt;set('shipping', $shipping_modules-&gt;cheapest());
-  }
-
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_SHIPPING);
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;script language="javascript"&gt;&lt;!--
-var selected;
-
-function selectRowEffect(object, buttonSelect) {
-  if (!selected) {
-    if (document.getElementById) {
-      selected = document.getElementById('defaultSelected');
-    } else {
-      selected = document.all['defaultSelected'];
-    }
-  }
-
-  if (selected) selected.className = 'moduleRow';
-  object.className = 'moduleRowSelected';
-  selected = object;
-
-// one button is not an array
-  if (document.checkout_address.shipping[0]) {
-    document.checkout_address.shipping[buttonSelect].checked=true;
-  } else {
-    document.checkout_address.shipping.checked=true;
-  }
-}
-
-function rowOverEffect(object) {
-  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
-}
-
-function rowOutEffect(object) {
-  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
-}
-//--&gt;&lt;/script&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . osc_draw_hidden_field('action', 'process'); ?&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/td&gt;
-            &lt;td class="pageHeading" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_CHOOSE_SHIPPING_DESTINATION . '&lt;br&gt;&lt;br&gt;&lt;a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL') . '"&gt;' . tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . '&lt;/a&gt;'; ?&gt;&lt;/td&gt;
-                &lt;td align="right" width="50%" valign="top"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" align="center" valign="top"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_SHIPPING_ADDRESS . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" valign="top"&gt;&lt;?php echo tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('sendto'), true, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if (tep_count_shipping_modules() &gt; 0) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_SHIPPING_METHOD; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-    if ( (sizeof($quotes) &gt; 1) &amp;&amp; (sizeof($quotes[0]) &gt; 1) ) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_CHOOSE_SHIPPING_METHOD; ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top" align="right"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_PLEASE_SELECT . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    } elseif ($free_shipping == false) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="100%" colspan="2"&gt;&lt;?php echo TEXT_ENTER_SHIPPING_INFORMATION; ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    }
-
-    if ($free_shipping == true) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td colspan="2" width="100%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="3"&gt;&lt;b&gt;&lt;?php echo FREE_SHIPPING_TITLE; ?&gt;&lt;/b&gt;&amp;nbsp;&lt;?php echo $quotes[$i]['icon']; ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                  &lt;tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, 0)"&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" width="100%"&gt;&lt;?php echo sprintf(FREE_SHIPPING_DESCRIPTION, $osC_Currencies-&gt;format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) . osc_draw_hidden_field('shipping', 'free_free'); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-    } else {
-      $radio_buttons = 0;
-      for ($i=0, $n=sizeof($quotes); $i&lt;$n; $i++) {
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td colspan="2"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="3"&gt;&lt;b&gt;&lt;?php echo $quotes[$i]['module']; ?&gt;&lt;/b&gt;&amp;nbsp;&lt;?php if (isset($quotes[$i]['icon']) &amp;&amp; tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-        if (isset($quotes[$i]['error'])) {
-?&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="3"&gt;&lt;?php echo $quotes[$i]['error']; ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-        } else {
-          for ($j=0, $n2=sizeof($quotes[$i]['methods']); $j&lt;$n2; $j++) {
-            if ( (($n == 1) &amp;&amp; ($n2 == 1)) || ($quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'] == $osC_Session-&gt;value('shipping')) ) {
-              echo '                  &lt;tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-            } else {
-              echo '                  &lt;tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-            }
-?&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" width="75%"&gt;&lt;?php echo $quotes[$i]['methods'][$j]['title']; ?&gt;&lt;/td&gt;
-&lt;?php
-            if ( ($n &gt; 1) || ($n2 &gt; 1) ) {
-?&gt;
-                    &lt;td class="main"&gt;&lt;?php echo $osC_Currencies-&gt;format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $osC_Session-&gt;value('shipping')); ?&gt;&lt;/td&gt;
-&lt;?php
-            } else {
-?&gt;
-                    &lt;td class="main" align="right" colspan="2"&gt;&lt;?php echo $osC_Currencies-&gt;format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], $quotes[$i]['tax'])) . osc_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?&gt;&lt;/td&gt;
-&lt;?php
-            }
-?&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-&lt;?php
-            $radio_buttons++;
-          }
-        }
-?&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-      }
-    }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_COMMENTS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo osc_draw_textarea_field('comments', ($osC_Session-&gt;exists('comments') ? $osC_Session-&gt;value('comments') : '')); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '&lt;/b&gt;&lt;br&gt;' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?&gt;&lt;/td&gt;
-                &lt;td class="main" align="right"&gt;&lt;?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_DELIVERY; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_PAYMENT; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;&lt;/form&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<hr /><a name="file6" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_shipping_address.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_shipping_address.php?rev=1.20&amp;content-type=text/vnd.viewcvs-markup">1.20</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_shipping_address.php
--- /tmp/cvsAAARraONb	Wed Mar 30 02:13:07 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,531 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the login page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    $navigation-&gt;set_snapshot();
-
-    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
-  }
-
-// if there is nothing in the customers cart, redirect them to the shopping cart page
-  if ($cart-&gt;count_contents() &lt; 1) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-// needs to be included earlier to set the success message in the messageStack
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_SHIPPING_ADDRESS);
-
-  require(DIR_WS_CLASSES . 'order.php');
-  $order = new order;
-
-// if the order contains only virtual products, forward the customer to the billing page as
-// a shipping address is not needed
-  if ($order-&gt;content_type == 'virtual') {
-    $osC_Session-&gt;set('shipping'. false);
-    $osC_Session-&gt;set('sendto', false);
-
-    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
-  }
-
-  if (isset($_POST['action']) &amp;&amp; ($_POST['action'] == 'submit')) {
-// process a new shipping address
-    if (($osC_Customer-&gt;hasDefaultAddress() === false) || (tep_not_null($_POST['firstname']) &amp;&amp; tep_not_null($_POST['lastname']) &amp;&amp; tep_not_null($_POST['street_address'])) ) {
-      if (ACCOUNT_GENDER &gt; 0) {
-        if (!isset($_POST['gender']) || (($_POST['gender'] != 'm') &amp;&amp; ($_POST['gender'] != 'f'))) {
-          $messageStack-&gt;add('checkout_address', ENTRY_GENDER_ERROR);
-        }
-      }
-
-      if (!isset($_POST['firstname']) || (strlen(trim($_POST['firstname'])) &lt; ACCOUNT_FIRST_NAME)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_FIRST_NAME_ERROR);
-      }
-
-      if (!isset($_POST['lastname']) || (strlen(trim($_POST['lastname'])) &lt; ACCOUNT_LAST_NAME)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_LAST_NAME_ERROR);
-      }
-
-      if (ACCOUNT_COMPANY &gt; 0) {
-        if (!isset($_POST['company']) || (strlen(trim($_POST['company'])) &lt; ACCOUNT_COMPANY)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_COMPANY_ERROR);
-        }
-      }
-
-      if (!isset($_POST['street_address']) || (strlen(trim($_POST['street_address'])) &lt; ACCOUNT_STREET_ADDRESS)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_STREET_ADDRESS_ERROR);
-      }
-
-      if (ACCOUNT_SUBURB &gt; 0) {
-        if (!isset($_POST['suburb']) || (strlen(trim($_POST['suburb'])) &lt; ACCOUNT_SUBURB)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_SUBURB_ERROR);
-        }
-      }
-
-      if (!isset($_POST['postcode']) || (strlen(trim($_POST['postcode'])) &lt; ACCOUNT_POST_CODE)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_POST_CODE_ERROR);
-      }
-
-      if (!isset($_POST['city']) || (strlen(trim($_POST['city'])) &lt; ACCOUNT_CITY)) {
-        $messageStack-&gt;add('checkout_address', ENTRY_CITY_ERROR);
-      }
-
-      if (ACCOUNT_STATE &gt; 0) {
-        $zone_id = 0;
-
-        $Qcheck = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id limit 1');
-        $Qcheck-&gt;bindRaw(':table_zones', TABLE_ZONES);
-        $Qcheck-&gt;bindValue(':zone_country_id', $_POST['country']);
-        $Qcheck-&gt;execute();
-
-        $entry_state_has_zones = ($Qcheck-&gt;numberOfRows() &gt; 0);
-
-        $Qcheck-&gt;freeResult();
-
-        if ($entry_state_has_zones === true) {
-          $Qzone = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id and zone_code like :zone_code');
-          $Qzone-&gt;bindRaw(':table_zones', TABLE_ZONES);
-          $Qzone-&gt;bindValue(':zone_country_id', $_POST['country']);
-          $Qzone-&gt;bindValue(':zone_code', trim($_POST['state']));
-          $Qzone-&gt;execute();
-
-          if ($Qzone-&gt;numberOfRows() === 1) {
-            $zone_id = $Qzone-&gt;valueInt('zone_id');
-          } else {
-            $Qzone = $osC_Database-&gt;query('select zone_id from :table_zones where zone_country_id = :zone_country_id and zone_name like :zone_name');
-            $Qzone-&gt;bindRaw(':table_zones', TABLE_ZONES);
-            $Qzone-&gt;bindValue(':zone_country_id', $_POST['country']);
-            $Qzone-&gt;bindValue(':zone_name', trim($_POST['state']) . '%');
-            $Qzone-&gt;execute();
-
-            if ($Qzone-&gt;numberOfRows() === 1) {
-              $zone_id = $Qzone-&gt;valueInt('zone_id');
-            } else {
-              $messageStack-&gt;add('checkout_address', ENTRY_STATE_ERROR_SELECT);
-            }
-          }
-
-          $Qzone-&gt;freeResult();
-        } else {
-          if (strlen(trim($_POST['state'])) &lt; ACCOUNT_STATE) {
-            $messageStack-&gt;add('checkout_address', ENTRY_STATE_ERROR);
-          }
-        }
-      }
-
-      if ( (is_numeric($_POST['country']) === false) || ($_POST['country'] &lt; 1) ) {
-        $messageStack-&gt;add('checkout_address', ENTRY_COUNTRY_ERROR);
-      }
-
-      if (ACCOUNT_TELEPHONE &gt; 0) {
-        if (!isset($_POST['telephone']) || (strlen(trim($_POST['telephone'])) &lt; ACCOUNT_TELEPHONE)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_TELEPHONE_NUMBER_ERROR);
-        }
-      }
-
-      if (ACCOUNT_FAX &gt; 0) {
-        if (!isset($_POST['fax']) || (strlen(trim($_POST['fax'])) &lt; ACCOUNT_FAX)) {
-          $messageStack-&gt;add('checkout_address', ENTRY_FAX_NUMBER_ERROR);
-        }
-      }
-
-      if ($messageStack-&gt;size('checkout_address') === 0) {
-        $Qab = $osC_Database-&gt;query('insert into :table_address_book (customers_id, entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_country_id, entry_zone_id, entry_telephone, entry_fax) values (:customers_id, :entry_gender, :entry_company, :entry_firstname, :entry_lastname, :entry_street_address, :entry_suburb, :entry_postcode, :entry_city, :entry_state, :entry_country_id, :entry_zone_id, :entry_telephone, :entry_fax)');
-        $Qab-&gt;bindRaw(':table_address_book', TABLE_ADDRESS_BOOK);
-        $Qab-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-        $Qab-&gt;bindValue(':entry_gender', (((ACCOUNT_GENDER &gt; -1) &amp;&amp; isset($_POST['gender']) &amp;&amp; (($_POST['gender'] == 'm') || ($_POST['gender'] == 'f'))) ? $_POST['gender'] : ''));
-        $Qab-&gt;bindValue(':entry_company', ((ACCOUNT_COMPANY &gt; -1) ? trim($_POST['company']) : ''));
-        $Qab-&gt;bindValue(':entry_firstname', trim($_POST['firstname']));
-        $Qab-&gt;bindValue(':entry_lastname', trim($_POST['lastname']));
-        $Qab-&gt;bindValue(':entry_street_address', trim($_POST['street_address']));
-        $Qab-&gt;bindValue(':entry_suburb', ((ACCOUNT_SUBURB &gt; -1) ? trim($_POST['suburb']) : ''));
-        $Qab-&gt;bindValue(':entry_postcode', trim($_POST['postcode']));
-        $Qab-&gt;bindValue(':entry_city', trim($_POST['city']));
-        $Qab-&gt;bindValue(':entry_state', ((ACCOUNT_STATE &gt; -1) ? (($zone_id &gt; 0) ? '' : trim($_POST['state'])) : ''));
-        $Qab-&gt;bindInt(':entry_country_id', $_POST['country']);
-        $Qab-&gt;bindInt(':entry_zone_id', ((ACCOUNT_STATE &gt; -1) ? (($zone_id &gt; 0) ? $zone_id : 0) : ''));
-        $Qab-&gt;bindValue(':entry_telephone', ((ACCOUNT_TELEPHONE &gt; -1) ? trim($_POST['telephone']) : ''));
-        $Qab-&gt;bindValue(':entry_fax', ((ACCOUNT_FAX &gt; -1) ? trim($_POST['fax']) : ''));
-        $Qab-&gt;execute();
-
-        if ($Qab-&gt;affectedRows() === 1) {
-          $address_book_id = $osC_Database-&gt;nextID();
-
-          if ($osC_Customer-&gt;hasDefaultAddress() === false) {
-            $Qcustomer = $osC_Database-&gt;query('update :table_customers set customers_default_address_id = :customers_default_address_id where customers_id = :customers_id');
-            $Qcustomer-&gt;bindRaw(':table_customers', TABLE_CUSTOMERS);
-            $Qcustomer-&gt;bindInt(':customers_default_address_id', $address_book_id);
-            $Qcustomer-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-            $Qcustomer-&gt;execute();
-
-            $osC_Customer-&gt;setCountryID($_POST['country']);
-            $osC_Customer-&gt;setZoneID($zone_id);
-            $osC_Customer-&gt;setDefaultAddressID($address_book_id);
-          }
-
-          $osC_Session-&gt;set('sendto', $address_book_id);
-          $osC_Session-&gt;remove('shipping');
-
-          tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-        } else {
-          $messageStack-&gt;add('checkout_address', 'Error inserting into address book table.');
-        }
-      }
-// process the selected shipping destination
-    } elseif (isset($_POST['address'])) {
-      $reset_shipping = false;
-      if ($osC_Session-&gt;exists('sendto')) {
-        if ($osC_Session-&gt;value('sendto') != $_POST['address']) {
-          if ($osC_Session-&gt;exists('shipping')) {
-            $reset_shipping = true;
-          }
-        }
-      }
-
-      $osC_Session-&gt;set('sendto', $_POST['address']);
-
-      $Qcheck = $osC_Database-&gt;query('select count(*) as total from :table_address_book where customers_id = :customers_id and address_book_id = :address_book_id');
-      $Qcheck-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-      $Qcheck-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-      $Qcheck-&gt;bindInt(':address_book_id', $osC_Session-&gt;value('sendto'));
-      $Qcheck-&gt;execute();
-
-      if ($Qcheck-&gt;valueInt('total') == 1) {
-        if ($reset_shipping == true) {
-          $osC_Session-&gt;remove('shipping');
-        }
-
-        tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-      } else {
-        $osC_Session-&gt;remove('sendto');
-      }
-    } else {
-      $osC_Session-&gt;set('sendto', $osC_Customer-&gt;default_address_id);
-
-      tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-    }
-  }
-
-// if no shipping destination address was selected, use their own address as default
-  if ($osC_Session-&gt;exists('sendto') == false) {
-    $osC_Session-&gt;set('sendto', $osC_Customer-&gt;default_address_id);
-  }
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
-
-  $addresses_count = tep_count_customer_address_book_entries();
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;script language="javascript"&gt;&lt;!--
-var selected;
-
-function selectRowEffect(object, buttonSelect) {
-  if (!selected) {
-    if (document.getElementById) {
-      selected = document.getElementById('defaultSelected');
-    } else {
-      selected = document.all['defaultSelected'];
-    }
-  }
-
-  if (selected) selected.className = 'moduleRow';
-  object.className = 'moduleRowSelected';
-  selected = object;
-
-// one button is not an array
-  if (document.checkout_address.address[0]) {
-    document.checkout_address.address[buttonSelect].checked=true;
-  } else {
-    document.checkout_address.address.checked=true;
-  }
-}
-
-function rowOverEffect(object) {
-  if (object.className == 'moduleRow') object.className = 'moduleRowOver';
-}
-
-function rowOutEffect(object) {
-  if (object.className == 'moduleRowOver') object.className = 'moduleRow';
-}
-
-function check_form_optional(form_name) {
-  var form = form_name;
-
-  var firstname = form.elements['firstname'].value;
-  var lastname = form.elements['lastname'].value;
-  var street_address = form.elements['street_address'].value;
-
-  if (firstname == '' &amp;&amp; lastname == '' &amp;&amp; street_address == '') {
-    return true;
-  } else {
-    return check_form(form_name);
-  }
-}
-//--&gt;&lt;/script&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'form_check.js.php'); ?&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;?php echo tep_draw_form('checkout_address', tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'), 'post', 'onSubmit="return check_form_optional(checkout_address);"'); ?&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/td&gt;
-            &lt;td class="pageHeading" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_delivery.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  if ($messageStack-&gt;size('checkout_address') &gt; 0) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo $messageStack-&gt;output('checkout_address'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-
-  if (!isset($_POST['action'])) {
-    if ($osC_Customer-&gt;hasDefaultAddress() === true) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_SHIPPING_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECTED_SHIPPING_DESTINATION; ?&gt;&lt;/td&gt;
-                &lt;td align="right" width="50%" valign="top"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td class="main" align="center" valign="top"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_SHIPPING_ADDRESS . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_south_east.gif'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" valign="top"&gt;&lt;?php echo tep_address_label($osC_Customer-&gt;id, $osC_Session-&gt;value('sendto'), true, ' ', '&lt;br&gt;'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-    }
-
-    if ($addresses_count &gt; 1) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_ADDRESS_BOOK_ENTRIES; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top"&gt;&lt;?php echo TEXT_SELECT_OTHER_SHIPPING_DESTINATION; ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="50%" valign="top" align="right"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_PLEASE_SELECT . '&lt;/b&gt;&lt;br&gt;' . tep_image(DIR_WS_IMAGES . 'arrow_east_south.gif'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-      $radio_buttons = 0;
-
-      $Qaddresses = $osC_Database-&gt;query('select address_book_id, entry_firstname as firstname, entry_lastname as lastname, entry_company as company, entry_street_address as street_address, entry_suburb as suburb, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from :table_address_book where customers_id = :customers_id');
-      $Qaddresses-&gt;bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
-      $Qaddresses-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-      $Qaddresses-&gt;execute();
-
-      while ($Qaddresses-&gt;next()) {
-        $format_id = tep_get_address_format_id($Qaddresses-&gt;valueInt('country_id'));
-?&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td colspan="2"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-&lt;?php
-       if ($Qaddresses-&gt;valueInt('address_book_id') == $osC_Session-&gt;value('sendto')) {
-          echo '                  &lt;tr id="defaultSelected" class="moduleRowSelected" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-        } else {
-          echo '                  &lt;tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="selectRowEffect(this, ' . $radio_buttons . ')"&gt;' . "\n";
-        }
-?&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td class="main" colspan="2"&gt;&lt;b&gt;&lt;?php echo $Qaddresses-&gt;valueProtected('firstname') . ' ' . $Qaddresses-&gt;valueProtected('lastname'); ?&gt;&lt;/b&gt;&lt;/td&gt;
-                    &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_radio_field('address', $Qaddresses-&gt;valueInt('address_book_id'), $osC_Session-&gt;value('sendto')); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td colspan="3"&gt;&lt;table border="0" cellspacing="0" cellpadding="2"&gt;
-                      &lt;tr&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                        &lt;td class="main"&gt;&lt;?php echo tep_address_format($format_id, $Qaddresses-&gt;toArray(), true, ' ', ', '); ?&gt;&lt;/td&gt;
-                        &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                      &lt;/tr&gt;
-                    &lt;/table&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-&lt;?php
-        $radio_buttons++;
-      }
-?&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-    }
-  }
-
-  if ($addresses_count &lt; MAX_ADDRESS_BOOK_ENTRIES) {
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td class="main"&gt;&lt;b&gt;&lt;?php echo TABLE_HEADING_NEW_SHIPPING_ADDRESS; ?&gt;&lt;/b&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main" width="100%" valign="top"&gt;&lt;?php echo TEXT_CREATE_NEW_SHIPPING_ADDRESS; ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-              &lt;tr&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-                  &lt;tr&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                    &lt;td&gt;&lt;?php require(DIR_WS_MODULES . 'checkout_new_address.php'); ?&gt;&lt;/td&gt;
-                    &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                  &lt;/tr&gt;
-                &lt;/table&gt;&lt;/td&gt;
-                &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php
-  }
-?&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"&gt;
-          &lt;tr class="infoBoxContents"&gt;
-            &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="2"&gt;
-              &lt;tr&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-                &lt;td class="main"&gt;&lt;?php echo '&lt;b&gt;' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '&lt;/b&gt;&lt;br&gt;' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?&gt;&lt;/td&gt;
-                &lt;td class="main" align="right"&gt;&lt;?php echo osc_draw_hidden_field('action', 'submit') . tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?&gt;&lt;/td&gt;
-                &lt;td width="10"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_DELIVERY; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_PAYMENT; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarTo"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-    &lt;/table&gt;&lt;/form&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<hr /><a name="file7" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog">catalog</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog">catalog</a><br /></span>
<div class="fileheader" id="removed"><big><b>checkout_success.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/catalog/catalog/checkout_success.php?rev=1.52&amp;content-type=text/vnd.viewcvs-markup">1.52</a></small></div>
<pre class="diff"><small id="info">diff -N checkout_success.php
--- /tmp/cvsAAA.va4Nb	Wed Mar 30 02:13:07 2005
+++ /dev/null	Wed Mar 30 02:13:01 2005
@@ -1,162 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2005 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  require('includes/application_top.php');
-
-// if the customer is not logged on, redirect them to the shopping cart page
-  if ($osC_Customer-&gt;isLoggedOn() == false) {
-    tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
-  }
-
-  if (isset($_GET['action']) &amp;&amp; ($_GET['action'] == 'update')) {
-    $notify_string = 'action=notify&amp;';
-    $notify = (isset($_POST['notify']) ? $_POST['notify'] : array());
-    if (!is_array($notify)) $notify = array($notify);
-    for ($i=0, $n=sizeof($notify); $i&lt;$n; $i++) {
-      $notify_string .= 'notify[]=' . $notify[$i] . '&amp;';
-    }
-    if (strlen($notify_string) &gt; 0) $notify_string = substr($notify_string, 0, -1);
-
-    tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));
-  }
-
-  require(DIR_WS_LANGUAGES . $osC_Session-&gt;value('language') . '/' . FILENAME_CHECKOUT_SUCCESS);
-
-  $breadcrumb-&gt;add(NAVBAR_TITLE_1);
-  $breadcrumb-&gt;add(NAVBAR_TITLE_2);
-
-  $Qglobal = $osC_Database-&gt;query('select global_product_notifications from :table_customers_info where customers_info_id =:customers_info_id');
-  $Qglobal-&gt;bindTable(':table_customers_info', TABLE_CUSTOMERS_INFO);
-  $Qglobal-&gt;bindInt(':customers_info_id', $osC_Customer-&gt;id);
-  $Qglobal-&gt;execute();
-
-  if ($Qglobal-&gt;valueInt('global_product_notifications') !== 1) {
-    $Qorder = $osC_Database-&gt;query('select orders_id from :table_orders where customers_id = :customers_id order by date_purchased desc limit 1');
-    $Qorder-&gt;bindTable(':table_orders', TABLE_ORDERS);
-    $Qorder-&gt;bindInt(':customers_id', $osC_Customer-&gt;id);
-    $Qorder-&gt;execute();
-
-    $Qproducts = $osC_Database-&gt;query('select products_id, products_name from :table_orders_products where orders_id = :orders_id order by products_name');
-    $Qproducts-&gt;bindTable(':table_orders_products', TABLE_ORDERS_PRODUCTS);
-    $Qproducts-&gt;bindInt(':orders_id', $Qorder-&gt;valueInt('orders_id'));
-    $Qproducts-&gt;execute();
-
-    $products_array = array();
-    while ($Qproducts-&gt;next()) {
-      $products_array[] = array('id' =&gt; $Qproducts-&gt;valueInt('products_id'),
-                                'text' =&gt; $Qproducts-&gt;value('products_name'));
-    }
-  }
-?&gt;
-&lt;!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;
-&lt;html &lt;?php echo HTML_PARAMS; ?&gt;&gt;
-&lt;head&gt;
-&lt;meta http-equiv="Content-Type" content="text/html; charset=&lt;?php echo CHARSET; ?&gt;"&gt;
-&lt;title&gt;&lt;?php echo TITLE; ?&gt;&lt;/title&gt;
-&lt;base href="&lt;?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?&gt;"&gt;
-&lt;link rel="stylesheet" type="text/css" href="stylesheet.css"&gt;
-&lt;/head&gt;
-&lt;body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"&gt;
-&lt;!-- header //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'header.php'); ?&gt;
-&lt;!-- header_eof //--&gt;
-
-&lt;!-- body //--&gt;
-&lt;table border="0" width="100%" cellspacing="3" cellpadding="3"&gt;
-  &lt;tr&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- left_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_left.php'); ?&gt;
-&lt;!-- left_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-&lt;!-- body_text //--&gt;
-    &lt;td width="100%" valign="top"&gt;&lt;?php echo tep_draw_form('order', tep_href_link(FILENAME_CHECKOUT_SUCCESS, 'action=update', 'SSL')); ?&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="4" cellpadding="2"&gt;
-          &lt;tr&gt;
-            &lt;td valign="top"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE); ?&gt;&lt;/td&gt;
-            &lt;td valign="top" class="main"&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?&gt;&lt;div align="center" class="pageHeading"&gt;&lt;?php echo HEADING_TITLE; ?&gt;&lt;/div&gt;&lt;br&gt;&lt;?php echo TEXT_SUCCESS; ?&gt;&lt;br&gt;&lt;br&gt;
-&lt;?php
-  if ($global['global_product_notifications'] != '1') {
-    echo TEXT_NOTIFY_PRODUCTS . '&lt;br&gt;&lt;p class="productsNotifications"&gt;';
-
-    $products_displayed = array();
-    for ($i=0, $n=sizeof($products_array); $i&lt;$n; $i++) {
-      if (!in_array($products_array[$i]['id'], $products_displayed)) {
-        echo osc_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '&lt;br&gt;';
-        $products_displayed[] = $products_array[$i]['id'];
-      }
-    }
-
-    echo '&lt;/p&gt;';
-  } else {
-    echo TEXT_SEE_ORDERS . '&lt;br&gt;&lt;br&gt;' . TEXT_CONTACT_STORE_OWNER;
-  }
-?&gt;
-            &lt;h3&gt;&lt;?php echo TEXT_THANKS_FOR_SHOPPING; ?&gt;&lt;/h3&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td align="right" class="main"&gt;&lt;?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-      &lt;tr&gt;
-        &lt;td&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-          &lt;tr&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%" align="right"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '1', '5'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-            &lt;td width="25%"&gt;&lt;table border="0" width="100%" cellspacing="0" cellpadding="0"&gt;
-              &lt;tr&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_draw_separator('pixel_silver.gif', '100%', '1'); ?&gt;&lt;/td&gt;
-                &lt;td width="50%"&gt;&lt;?php echo tep_image(DIR_WS_IMAGES . 'checkout_bullet.gif'); ?&gt;&lt;/td&gt;
-              &lt;/tr&gt;
-            &lt;/table&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-          &lt;tr&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo CHECKOUT_BAR_DELIVERY; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo CHECKOUT_BAR_PAYMENT; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarFrom"&gt;&lt;?php echo CHECKOUT_BAR_CONFIRMATION; ?&gt;&lt;/td&gt;
-            &lt;td align="center" width="25%" class="checkoutBarCurrent"&gt;&lt;?php echo CHECKOUT_BAR_FINISHED; ?&gt;&lt;/td&gt;
-          &lt;/tr&gt;
-        &lt;/table&gt;&lt;/td&gt;
-      &lt;/tr&gt;
-&lt;?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?&gt;
-    &lt;/table&gt;&lt;/form&gt;&lt;/td&gt;
-&lt;!-- body_text_eof //--&gt;
-    &lt;td width="&lt;?php echo BOX_WIDTH; ?&gt;" valign="top"&gt;&lt;table border="0" width="&lt;?php echo BOX_WIDTH; ?&gt;" cellspacing="0" cellpadding="2"&gt;
-&lt;!-- right_navigation //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'column_right.php'); ?&gt;
-&lt;!-- right_navigation_eof //--&gt;
-    &lt;/table&gt;&lt;/td&gt;
-  &lt;/tr&gt;
-&lt;/table&gt;
-&lt;!-- body_eof //--&gt;
-
-&lt;!-- footer //--&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'footer.php'); ?&gt;
-&lt;!-- footer_eof //--&gt;
-&lt;br&gt;
-&lt;/body&gt;
-&lt;/html&gt;
-&lt;?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?&gt;
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.9</small></center>
</body></html>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click