function cc_check($cctype, $cc_number, $ccexp_year, $ccexp_month) { global $ccexp_years; if (!$cctype) { echo fc_text('invalidcctype'); return 1; } // verify the cc; non numerics must already be removed $rv = cc_mod10($cctype, $cc_number); if ($rv == 0) { echo fc_text('invalidccard'); return 1; } $ccexp_year = (int) trim($ccexp_year); $lower = (int) date("Y"); $upper = $lower + (int) $ccexp_years; if ($ccexp_year < $lower || $ccexp_year > $upper) { echo fc_text('invalidccyr'); return 1; } $ccexp_month = (int) trim($ccexp_month); if ($ccexp_month < 1 || $ccexp_month > 12) { echo fc_text('invalidccmo'); return 1; } return 0; }
// works with the fc_functions library echo "<td><div id=\"button\"><ul><li><a href=\"{$nsecurl}" . urldecode($fname) . "?cartid={$cartid}&zid={$zid}&lid={$lid}\">"; echo fc_text("returnpage"); echo "</a></li></ul></div></td>\n"; } if ($noproducts == 0) { if (!empty($return_product) && ($cat != 0 || $key1)) { echo "<td><div id=\"button\"><ul><li><a href=\"display.php?cartid={$cartid}&zid={$zid}&lid={$lid}&olimit={$olimit}&nlst={$nlst}&olst={$olst}&cat={$cat}&key1={$key1}\">"; echo fc_text("returnprod"); echo "</a></li></ul></div></td>\n"; } echo "<td><div id=\"button\"><ul><li><a href=\"{$geo}?cartid={$cartid}&zid={$zid}&lid={$lid}&olimit={$olimit}&nlst={$nlst}&olst={$olst}&cat={$cat}&key1={$key1}&szid={$subz}&return_product={$return_product}\">"; echo fc_text("shiploc"); echo "</a></li></ul></div></td>\n"; echo "<td><div id=\"button\"><ul><li><a href=\"{$securl}{$secdir}/{$ordr}?cartid={$cartid}&zid={$zid}&lid={$lid}&itot={$i}&subz={$subz}\">"; echo fc_text("checkout"); echo "</a></li></ul></div></td>\n"; } ?> </tr></table> </td></tr></table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php'; //END OF VENDOR INFORMATION ?> <?php
<input type="hidden" name="lid" value="<?php echo $lid; ?> " /> <input type="hidden" name="referer" value="<?php echo $REMOTE_ADDR; ?> " /> <input type="hidden" name="ccexp_years" value="<?php echo $ccexp_years; ?> " /> <input type="hidden" name="contrib_only" value="1" /> <input type="submit" value="<?php echo fc_text('contribsubmit'); ?> " /> </form> </td></tr></table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php'; //END OF VENDOR INFORMATION ?>
?> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title><?php echo fc_text('cvvnumber'); ?> </title> <link ID href="style.css" type="text/css" rel="StyleSheet"> </head> <body bgcolor="#FFFFFF" link="#990000" alink="#990000" vlink="#990000" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0"> <table width="80%" align="center" cellpadding="5" cellspacing="0"> <tr> <td align="left"> <?php echo fc_text('cvvtext'); ?> <br /><br /> </td> <tr> <td align="center"> <a href="javascript:window.close();"><?php echo fc_text('cvvclosewindow'); ?> </a> </td> </tr> </table> <?php require_once BITCART_PKG_PATH . 'bitcart_footer_inc.php';
function showerr() { global $zid, $lid, $cartid, $fcw; $mln = 256; ?> <html> <head> <link rel="stylesheet" ID href="style.css" type="text/css" /> <title>Empty Search</title> </head> <body<?php if ($fcw->f("webtext")) { ?> text="#<?php echo stripslashes($fcw->f("webtext")); ?> "<?php } if ($fcw->f("weblink")) { ?> link="#<?php echo $fcw->f("weblink"); ?> "<?php } if ($fcw->f("webvlink")) { ?> vlink="#<?php echo $fcw->f("webvlink"); ?> "<?php } if ($fcw->f("webalink")) { ?> alink="#<?php echo $fcw->f("webalink"); ?> "<?php } if ($fcw->f("webbg")) { ?> bgcolor="#<?php echo $fcw->f("webbg"); ?> "<?php } if ($fcw->f("webback")) { ?> background="<?php echo $fcw->f("webback"); ?> "<?php } ?> marginheight="0" marginwidth="0" topmargin="0" leftmargin="0"> <table border="0" cellpadding="0" width="500"> <tr><td> <?php echo fc_text('emptysearch'); ?> <p> <a href="index.php?cartid=<?php echo $cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> "><?php echo fc_text("back2select"); ?> </a> </p> </td></tr> </table> <?php require_once BITCART_PKG_PATH . 'bitcart_footer_inc.php'; }
printf("%s%.2f<br />", $csym, $tps); } $mtotal = rnd($mtotal + $tps); } ?> </td></tr> <?php } // taxper>0 if ($mtotal) { ?> <tr><td class="showcartcell" colspan="1" bgcolor="#FFFFFF"></td> <td class="showcartcell" colspan="2" align="left" valign="top" bgcolor="#FFFFFF"> <b><?php echo fc_text('psubtotal'); ?> </b> </td><td class="showcartcell" colspan="1" align="right" valign="top" bgcolor="#FFFFFF"> <?php printf("%s%.2f<br />", $csym, $mtotal); ?> </td></tr> <?php } ?> <?php } // if($olc>0)
?> " /> <input type="hidden" name="subz" value="<?php echo $subz; ?> " /> <input type="hidden" name="cartid" value="<?php echo $cartid; ?> " /> <input type="hidden" name="ccexp_years" value="<?php echo $ccexp_years; ?> " /> <input type="submit" value="<?php echo fc_text('ordersubmit'); ?> " /><br /> </form> </div> </td></tr> <?php } // end of zonetcpage ?> </table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> </td></tr></table>
function fc_display_product($fc_sku = '', $zid = 1, $lid = 1, $cat = 0) { // display one product with options // doesn't return anything global $fc_cartid, $flag_persvc, $flag_webshowqty; global $fc_csym, $fc_webfree, $fc_webflags1; global $flag_poptskusub, $flag_poptskumod, $flag_poptskusuf, $flag_poptskupre; global $flag_poptgrpexc, $flag_poptprcrel, $flag_poptgrpqty, $flag_poptgrpreq; $now = time(); $fco = new FC_SQL(); $fcp = new FC_SQL(); $fcrp = new FC_SQL(); $fcrpl = new FC_SQL(); $fcp->query('select prodsdescr,proddescr,prodaudio,prodvideo,prodsetup,prodprice,' . 'prodsalebeg,prodsaleend,prodpic,prodpicw,prodpich,prodpersvc,prodflag1 ' . 'from prod,prodlang ' . "where prodsku='{$fc_sku}' and prodlsku='{$fc_sku}' and prodsku=prodlsku"); $fcp->next_record(); $flag1 = (int) $fcp->f('prodflag1'); ?> <tr><td align=left valign=top colspan=1> <table width="100%" cellpadding=0 cellspacing=0 border=0> <tr><td align=left valign=top colspan=3> <br> <?php if ($fcp->f("prodpic")) { // show the product picture (if defined) ?> <img src="<?php echo $fcp->f("prodpic"); ?> " width="<?php echo $fcp->f("prodpicw"); ?> " height="<?php echo $fcp->f("prodpich"); ?> " alt="" align=left> <?php } // end of the product picture ?> <b><?php echo stripslashes($fcp->f("prodsdescr")); ?> :</b> <?php echo stripslashes($fcp->f("proddescr")); ?> <br> </td></tr> <tr><td align=left valign=bottom colspan="1"> <?php if ($fcp->f("prodaudio")) { ?> <a href="<?php echo $fcp->f("prodaudio"); ?> "><i><?php echo fc_text("audiosample"); ?> </i></a><br> <?php } ?> </td><td align=center valign=bottom colspan="1"> <?php if ($fcp->f("prodvideo")) { ?> <a href="<?php echo $fcp->f("prodvideo"); ?> "><i><?php echo fc_text("videosample"); ?> </i></a><br> <?php } ?> </td><td colspan=1 align=right valign=middle> </td></tr> <tr><td align=left valign=middle colspan=3> <form method=post action="//fishcart/showcart.php?cartid=<?php echo $fc_cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> &product=<?php echo $fc_sku; ?> &cat=<?php echo $cat; ?> "> <?php // show the product options; see showcart for a detailed description $poptqty = 0; $poptgrp = 0; // nmb $poptflag1 = 0; // nmb $poptogrp = -1; // -1 is initial value $poptgrpcnt = 0; // # of options per group $poptgrplst = ''; // : separated list of all represented groups $fco->query("select poptid,poptname,poptsdescr,poptsetup,poptprice,poptgrp,poptskumod," . "poptflag1 from prodopt where poptsku='{$fc_sku}' order by poptgrp,poptseq"); if ($fco->next_record()) { $i = 0; do { $poptid = (int) $fco->f("poptid"); $poptgrp = (int) $fco->f("poptgrp"); $poptflag1 = (int) $fco->f("poptflag1"); $poptsetup = (double) $fco->f("poptsetup"); $poptprice = (double) $fco->f("poptprice"); $poptname = stripslashes($fco->f("poptname")); $poptsdescr = stripslashes($fco->f("poptsdescr")); if ($poptogrp != -1 && $poptogrp != $poptgrp) { // group rollover check echo "</select>"; if ($poptflag1 & $flag_poptgrpqty) { // qty is required echo ' ' . fc_text("qty") . '<input name="' . $fc_sku . '_' . $poptogrp . '_qty" size=3>' . "\n"; } if ($poptoflg & $flag_poptgrpreq) { // option group is required echo '<input type=hidden name="' . $fc_sku . '_' . $poptogrp . '_req" value=1>' . "\n"; } else { echo '<input type=hidden name="' . $fc_sku . '_' . $poptogrp . '_req" value=0>' . "\n"; } echo "<br>\n<select name=\"{$fc_sku}_{$poptgrp}_popt[]\">\n"; if ($poptogrp >= 0) { $poptgrplst .= "{$poptogrp}:"; } $poptgrpcnt = 0; // zero the counter } elseif (!$i) { // nmb echo "<select name=\"{$fc_sku}_{$poptgrp}_popt[]\">\n"; } if ($poptflag1 & $flag_poptgrpexc) { $popttype = 'radio'; } else { $popttype = 'checkbox'; } // compose composite sku $csku = ''; if ($poptflag1 & $flag_poptskupre) { $csku = $fco->f("poptskumod") . $csku; } elseif ($poptflag1 & $flag_poptskusuf) { $csku = $csku . $fco->f("poptskumod"); } elseif ($poptflag1 & $flag_poptskumod) { $csku = ereg_replace($fco->f("poptskusub"), $fco->f("poptskumod"), $csku); } elseif ($poptflag1 & $flag_poptskusub) { $csku = $fco->f("poptskumod"); } /* nmb echo '<input type='.$popttype.' name="'.$fc_sku.'_'.$poptgrp. '_popt[]" value='.$poptid.'>'. $poptname . $poptsdescr .' '.fc_text('reqflag')."<br>\n"; nmb */ // nmb echo "<option value=\"{$poptid}\"> {$poptname}\n"; if ($poptsetup) { echo ' ' . fc_text("setup") . sprintf("%s%.2f\n", $fc_csym, $poptsetup); // nmb sprintf("%s%.2f<br>\n",$fc_csym,$poptsetup); } echo ' ' . fc_text("price"); // nmb added if/else below if ($poptflag1 & $flag_poptprcrel && $poptprice) { $relflg = '+'; } else { $relflg = ''; } if ($poptprice) { // nmb echo sprintf("%s%.2f<br>\n",$fc_csym,$poptprice); echo ' ' . $relflg . sprintf("%s%.2f\n", $fc_csym, $poptprice); } else { // nmb echo fc_text("nocharge")."<br>\n"; echo ' ' . $relflg . fc_text("nocharge") . "\n"; } $poptgrpcnt++; // incr count of options per group $poptogrp = $poptgrp; // keep the current group ID $poptoflg = $poptflag1; // keep the current group flag set $i++; } while ($fco->next_record()); $fco->free_result(); // nmb if ($i) { echo "</select>"; } // always do this stuff for last option group rollover check if ($poptflag1 & $flag_poptgrpqty) { // qty is required echo ' ' . fc_text("qty") . '<input name="' . $fc_sku . $poptgrp . 'qty" size=3><br>' . "\n"; } if ($poptflag1 & $flag_poptgrpreq) { // option group is required echo '<input type=hidden name="' . $fc_sku . '_' . $poptgrp . '_req" value=1>' . "\n"; } else { echo '<input type=hidden name="' . $fc_sku . '_' . $poptgrp . '_req" value=0>' . "\n"; } if ($poptgrp >= 0) { $poptgrplst .= "{$poptgrp}"; } echo '<input type=hidden name="' . $fc_sku . '_grplst" value="' . $poptgrplst . '">' . "\n"; } // if product options ?> </td></tr> <tr><td align=left valign=middle colspan=1> <i><?php echo fc_text("sku"); ?> <?php echo $fc_sku; ?> </i> </td><td align=left valign=middle colspan=1> <?php // show the product price $setup = (double) $fcp->f("prodsetup"); if ($setup) { echo sprintf("%s %s%8.2f ", fc_text("setup"), $fc_csym, $setup); } $prc = ''; if ($fcp->f("prodprice") == 0) { // free, show alternative text if (!empty($cat)) { $prc = $fcs->f("catfree"); } if (empty($prc)) { $prc = $fc_webfree; } } else { // not free, check for sale price if ($fcp->f("prodsalebeg") < $now && $now < $fcp->f("prodsaleend")) { // on sale $prc = sprintf("<b>%s %s%8.2f</b>", fc_text("onsale"), $fc_csym, $fcp->f("prodsaleprice")); } else { $prc = sprintf("%s %s%8.2f", fc_text("price"), $fc_csym, $fcp->f("prodprice")); } } echo $prc; if ($flag1 & $flag_persvc) { //echo ' '.fc_text('periodic'); echo ' ' . $fcp->f('prodpersvc'); } ?> </td><td align=right valign=middle colspan=1> <?php // SHOW THE ADD TO ORDER BUTTON // with product options, it is no longer feasible to show the qty // on order, as we don't know which options have been chosen if ($fc_webflags1 & $flag_webshowqty) { $qty = "1"; } else { $qty = ""; } ?> <input type=text size=3 name=quantity value=<?php echo $qty; ?> ><input type=submit value="<?php echo fc_text('shortadd'); ?> "> </td></tr> </form> <tr><td align=left valign=bottom colspan=3> </td></tr> <?php // show related products $fcrp->query("select relprod from prodrel where relsku='{$fc_sku}' order by relseq"); while ($fcrp->next_record()) { $rsku = $fcrp->f('relprod'); $fcrpl->query("select prodname from prodlang where prodlsku='{$rsku}' " . "and prodlzid={$zid} and prodlid={$lid}"); $fcrpl->next_record(); $pname = strip_tags($fcrpl->f("prodname")); ?> <tr><td align=left valign=top colspan=3> <a href="display.php?cartid=<?php echo $cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> &psku=<?php echo $rsku; ?> "><?php echo $pname; ?> </a><br> </td></tr> <?php } $fcrp->free_result(); ?> </table> </td></tr> <?php }
?> " /> <input type="hidden" name="cat" value="<?php echo $cat; ?> " /> <input type="hidden" name="option_violation" value="<?php echo $option_violation; ?> " /> <input type="hidden" name="return_product" value="<?php echo $return_product; ?> " /> <input type="submit" value="<?php echo fc_text('submitgeo'); ?> " /> </form> </td></tr></table> <?php } ?> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php'; //END OF VENDOR INFORMATION
TRANSACTION TYPES (only 'S' or 'A' should be used for clearing) S: Immediate Sale A: Authorization Only P: Post Authorization C: Credit R: Partial Reversal V: Void */ $trans_type = 'set_this_to_S_or_A'; $merchant_id = 'YOU_MUST_SET_THIS'; // NOTHING BELOW THIS POINT SHOULD NEED TO BE CHANGED // set this non 0 to see all the transaction details $debug = 0; $ccm = sprintf("%02d", $ccexp_month); $ccy = sprintf("%02d", substr($ccexp_year, 2, 2)); $tax_total = $taxsubtotal + $ptaxsubtotal; $tax_total = $tps + $tpn; // sum of shipping and non-shipping tax $tmp = "x_merchid={$merchant_id}&" . "x_ttype={$trans_type}&" . "x_cc_number={$cc_number}&" . "x_cc_mon={$ccm}&" . "x_cc_yr={$ccy}&" . "x_cc_cvv={$cc_cvv}&" . "x_tax_amount=" . sprintf("%.2f", $tax_total) . "&" . "x_trans_amount=" . sprintf("%.2f", $ttotal) . "&" . "x_invoice=" . urlencode($cartid) . "&" . "x_merch_ref=" . urlencode($cartid) . "&" . "x_fname=" . urlencode($billing_first) . "&" . "x_lname=" . urlencode($billing_last) . "&" . "x_avs_addr=" . urlencode($billing_address1) . "&" . "x_avs_city=" . urlencode($billing_city) . "&" . "x_avs_state=" . urlencode($billing_state) . "&" . "x_avs_zip=" . urlencode($billing_zip) . "&" . "x_avs_country=" . urlencode($billing_country); exec('curl -d ' . $tmp . ' https://accgate.fishnet.us/apps/acc_xml_gate', $resp, $ret); // split out the response into discrete fields list($status, $authresp, $avsresp, $cvv2resp, $dupresp, $uniqid, $refnumber, $errtext, $reqact) = split("\\,", $resp[0]); if ($debug) { echo "response: {$resp}<br>\n" . "status: {$status}<br>\n" . "authresp: {$authresp}<br>\n" . "avsresp: {$avsresp}<br>\n" . "cvv2resp: {$cvv2resp}<br>\n" . "dupresp: {$dupresp}<br>\n" . "uniqid: {$uniqid}<br>\n" . "refnumber: {$refnumber}<br>\n" . "errtext: {$errtext}<br>\n" . "reqact: {$reqact}<br>\n"; } if ($status) { global $gBitSystem; echo fc_text('invalidccclr'); mail($gBitSystem->getErrorEmail(), "Online Payment Failure", $res[0]); exit; }
} if ($databaseeng == 'postgres') { $flck->query('rollback work'); } exit; } if ($onoff != 'on' && $onoff != 'off') { ?> <html> <head> <link rel=stylesheet href="style.css" type="text/css" /> <title>Error</title> </head> <body bgcolor="#FFFFFF"> <?php echo fc_text('invalidoffon'); require_once BITCART_PKG_PATH . 'bitcart_footer_inc.php'; $fcoc->rollback(); if ($databaseeng == 'mysql') { $flck->query("unlock tables"); } if ($databaseeng == 'postgres') { $flck->query('rollback work'); } exit; } $shipping_sal = trim($shipping_sal); $shipping_first = trim($shipping_first); $shipping_company = trim($shipping_company); $shipping_mi = trim($shipping_mi); $shipping_last = trim($shipping_last);
$tmp = sprintf("%s\n", $tmp); fputs($cf, $tmp); } $tmp = sprintf("%s, %s %s %s\n", $fcv->f("vsvccity"), $fcv->f("vsvcstate"), $fcv->f("vsvczip"), $fcv->f("vsvcnatl")); fputs($cf, $tmp); $tmp = $fcv->f("vsvcphone"); if ($tmp) { $tmp = sprintf("Phone: %s\n", $tmp); fputs($cf, $tmp); } $tmp = $fcv->f("vsvcfax"); if ($tmp) { $tmp = sprintf("Fax: %s\n", $tmp); fputs($cf, $tmp); } fputs($cf, fc_text('orderorigin')); pclose($cf); if ($zflag1 & $flag_zonesplitcc) { // add this CC to the split CC database $fccc = new FC_SQL(); $fccc->User = ''; $fccc->Password = ''; if ($databaseeng == 'odbc' && $dialect == 'solid') { // solid uses views for the split cc work $fccc->query("insert into _ccnum (userid,tstamp,fetched,orderid,cc6) " . "values (,{$now},'0','{$cartid}','{$cc_lastsix}')"); } else { // the value of 1 below for userid is coordinated with // the ${instid}_users table set up in sql_mysql.sql $fccc->query("insert into {$instid}_ccnums (userid,tstamp,fetched,orderid,cc6) " . "values (1,{$now},'0','{$cartid}','{$cc_lastsix}')"); } $fccc->commit();
$fcl->query("select langgeo,langshow,langproc from lang where langid={$lid}"); $fcl->next_record(); $geo = $fcl->f("langgeo"); $show = $fcl->f("langshow"); $proc = $fcl->f("langproc"); $fcl->free_result(); $fasz->query("select subzflag0,subztaxpern,subztaxpers,subztaxcmtn,subztaxcmts " . "from subzone where subzid={$zid} and subzsid={$subz}"); if (!$fasz->next_record()) { $fasz->query("update ohead set subz=0 where orderid='{$cartid}'"); $fasz->commit(); header("Location: {$nsecurl}{$cartdir}/{$geo}?cartid={$cartid}&zid={$zid}&lid={$lid}"); exit; } $fco->query("select aid,contrib,shipid,couponid from ohead " . "where orderid='{$cartid}'"); if (!$fco->next_record()) { echo fc_text('invalidorder'); exit; } else { $contamt = (double) $fco->f("contrib"); $aid = stripslashes($fco->f("aid")); $curshipid = (int) $fco->f("shipid"); $couponid = stripslashes($fco->f("couponid")); } $fcol->query("select * from oline where orderid='{$cartid}'"); if (!$fcol->next_record()) { ?> <center><p>{tr}cartempty{/tr}<p> <a href="<?php echo $nsecurl . $cartdir; ?> /index.php?cartid=<?php
<?php echo fc_text('dlusername'); ?> </td><td> <input name="pwuid" size="20" /><br /> </td></tr> <tr><td> <?php echo fc_text('dlusername'); ?> </td><td> <input name="pwpw" size="20" /><br /> </td></tr> <tr><td colspan="2"> <input type="submit" value="<?php echo fc_text('dlsubmit'); ?> " /> </form> </td></tr></table> <?php } ?> </td></tr></table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> <?php // END OF ESSENTIAL CART DISPLAY CODE ?>
Temporarily out of stock <?php } ?> </td></tr> <tr><td align="left"> <?php if ($setup) { echo $stprc; } ?> </td><td align="center"> <?php if ($retailprice > $finalprc) { $retailprc = sprintf("%s %s%8.2f", fc_text("retailprice"), $csym, $retailprice); echo "<i>{$retailprc}</i>"; } ?> </td><td align="right"> <?php echo $prc; ?> </td></tr> </form> <?php // show related products //start flag_hasrel (bvo) if ($flag1 & $flag_hasrel) { $fcrp->query("select relprod from prodrel where relzone={$zid} and relsku='{$prodsku}' " . "order by relseq"); while ($fcrp->next_record()) {
} $body .= sprintf(" %s, ", $shipping_city); $body .= sprintf("%s ", $shipping_state); $body .= sprintf("%s %s ", $shipping_zip, $shipping_zip4); $body .= sprintf("%s\n", $shipping_country); /* VENDOR INFORMATION BLOCK */ $body .= "\n" . fc_text('orderid') . "{$cartid}\n"; if (!empty($couponid)) { $body .= "\n" . fc_text('coupon') . "{$couponid}\n"; } if (!empty($esd_count)) { $body .= "\n" . fc_text('dlusernamefix') . "{$download_user}\n"; $body .= fc_text('dlpasswordfix') . "{$download_pw}\n"; } if ($payment_only) { $body .= "\n" . fc_text('paymentinv') . "\n{$payinv}\n"; } $body .= "\n____________________\n"; $body .= sprintf("%s\n", $fcv->f("vsvcname")); if ($fcv->f("vsvcaddr1")) { $body .= sprintf("%s\n", $fcv->f('vsvcaddr1')); } if ($fcv->f("vsvcaddr2")) { $body .= sprintf("%s\n", $fcv->f('vsvcaddr2')); } $body .= sprintf("%s, %s %s %s\n", $fcv->f("vsvccity"), $fcv->f("vsvcstate"), $fcv->f("vsvczip"), $fcv->f("vsvcnatl")); if ($fcv->f("vsvcphone")) { $body .= sprintf("Phone: %s\n", $fcv->f('vsvcphone')); } if ($fcv->f("vsvcfax")) { $body .= sprintf("Fax: %s\n", $fcv->f('vsvcfax'));
if ($fcv->f('vendemail')) { ?> <a href="mailto:<?php echo stripslashes($fcv->f('vendemail')); ?> "><?php echo stripslashes($fcv->f('vendemail')); ?> </a><br /><?php } ?> </td><td align="left" valign="top"> <b><i><?php echo fc_text('supportinfo'); ?> </i></b><br /> <?php // display the vendor service information if ($fcv->f('vsvcname')) { echo stripslashes($fcv->f('vsvcname')); ?> <br /><?php } if ($fcv->f('vsvcaddr1')) { echo stripslashes($fcv->f('vsvcaddr1')); ?> <br /><?php } if ($fcv->f('vsvcaddr2')) {
<div id="button"> <ul> <li><a href="<?php echo $show; ?> ?cartid=<?php echo $cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> "><?php echo fc_text("viewcart"); ?> </a></li> </ul> </div> </td></tr> </table> </td></tr></table> </td></tr></table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php';
echo fc_text('esdcustsvc'); exit; } $esddlcnt = (int) $fcesd->f('esddlcnt') + 1; $esddlmax = (int) $fcesd->f('esddlmax'); $esddlexp = (int) $fcesd->f('esddlexp'); $esddlfile = $fcesd->f('esddlfile'); $fcesd->free_result(); if ($esddlcnt > $esddlmax || $now > $esddlexp) { echo fc_text('esddlmax'); echo fc_text('esdcustsvc'); exit; } $fcesd->query("update esd set esddlcnt={$esddlcnt} where esdid={$esdid}"); $fcesd->commit(); $file = substr(strrchr($esddlfile, '/'), 1); set_magic_quotes_runtime(0); $fd = fopen($esddlfile, 'rb'); if ($fd) { $size = filesize($esddlfile); header("Content-Disposition: attachment; filename={$file}"); header("Content-Length: {$size}"); header("Content-Type: application/download"); while ($buf = fread($fd, 16384)) { echo $buf; } fclose($fd); } else { echo fc_text('esdnofile'); echo fc_text('esdcustsvc'); }
if (!empty($payment_only)) { echo fc_text('paymentfix') . sprintf("%8.2f\n", $payment); } if (empty($contrib_only) && empty($payment_only) && $ttotal) { echo fc_text('ordertotalfix') . sprintf("%8.2f\n", $ttotal); } if ($ttotal && $ptotal) { echo "\n"; } if ($mtotal) { echo fc_text('psubtotalfix') . sprintf("%8.2f\n", $mtotal); } $pstaxn = (double) $pstaxn; $pstaxs = (double) $pstaxs; if ($pstaxn) { if ($staxcmtn) { echo sprintf(" %9s: %8.2f\n", $staxcmtn, $pstaxn); } else { echo fc_text('psalestaxfix') . sprintf("%8.2f\n", $pstaxn); } } if ($pstaxs) { if ($staxcmts) { echo sprintf(" %9s: %8.2f\n", $staxcmts, $pstaxs); } else { echo fc_text('psalestaxfix') . sprintf("%8.2f\n", $pstaxs); } } if (empty($contrib_only) && empty($payment_only) && $ptotal) { echo fc_text('ptotalfix') . sprintf("%8.2f\n", $ptotal); }
echo $tmp; } $tmp = $fcv->f("vsvcaddr2"); if ($tmp != "") { $tmp = sprintf("%s\n", $tmp); echo $tmp; } $tmp = sprintf("%s, %s %s %s\n", $fcv->f("vsvccity"), $fcv->f("vsvcstate"), $fcv->f("vsvczip"), $fcv->f("vsvcnatl")); echo $tmp; $tmp = $fcv->f("vsvcphone"); if ($tmp != "") { $tmp = sprintf("Phone: %s\n", $tmp); echo $tmp; } if (!empty($fax)) { $tmp = sprintf("Fax: %s\n", $fax); echo $tmp; } ?> </pre> <p> <a href="<?php echo $nsecurl; ?> /"> <?php echo fc_text('homepage'); ?> </a> <?php require_once BITCART_PKG_PATH . 'bitcart_footer_inc.php';
if (!empty($payment_only)) { $body .= fc_text('paymentfix') . sprintf("%8.2f\n", $payment); } if (empty($contrib_only) && empty($payment_only) && $ttotal) { $body .= fc_text('ordertotalfix') . sprintf("%8.2f\n", $ttotal); } if ($ttotal && $ptotal) { $body .= "\n"; } if ($mtotal) { $body .= fc_text('psubtotalfix') . sprintf("%8.2f\n", $mtotal); } $pstaxn = (double) $pstaxn; $pstaxs = (double) $pstaxs; if ($pstaxn) { if ($staxcmtn) { $body .= sprintf(" %9s: %8.2f\n", $staxcmtn, $pstaxn); } else { $body .= fc_text('psalestaxfix') . sprintf("%8.2f\n", $pstaxn); } } if ($pstaxs) { if ($staxcmts) { $body .= sprintf(" %9s: %8.2f\n", $staxcmts, $pstaxs); } else { $body .= fc_text('psalestaxfix') . sprintf("%8.2f\n", $pstaxs); } } if (empty($contrib_only) && empty($payment_only) && $ptotal) { $body .= fc_text('ptotalfix') . sprintf("%8.2f\n", $ptotal); }
?> <p> <a href="<?php echo $nsecurl . $cartdir; ?> /index.php?cartid=<?php echo $cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> "><b><?php echo fc_text('zonehome'); ?> </b></a> </p> </td></tr> </table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php'; //END OF VENDOR INFORMATION ?>
<input type="hidden" name="lid" value="<?php echo $lid; ?> " /> <input type="hidden" name="referer" value="<?php echo $REMOTE_ADDR; ?> " /> <input type="hidden" name="ccexp_years" value="<?php echo $ccexp_years; ?> " /> <input type="hidden" name="payment_only" value="1" /> <input type="submit" value="<?php echo fc_text('paymentsubmit'); ?> " /> </form> </td></tr></table> <!--CLOSE CELL/ROW/TABLE OF THE MAIN 100% WRAPPER TABLE--> </td></tr></table> </td></tr></table> <?php // VENDOR INFORMATION include 'vendinfo.php'; //END OF VENDOR INFORMATION ?>
function showerr() { global $zid, $lid, $cartid, $fcw; $mln = 256; ?> <table class="text" cellpadding="0" width="580" border="0"> <tr><td align="left" valign="top" colspan="3"> <table class="text" width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td align="left" valign="top" colspan="3"> <br /><br /> <?php echo fc_text('emptysearch'); ?> <p> <a href="index.php?cartid=<?php echo $cartid; ?> &zid=<?php echo $zid; ?> &lid=<?php echo $lid; ?> "><?php echo fc_text("back2select"); ?> </a> </p> <br /><br /> </td></tr> </table> </td></tr> <?php }
$body .= "\n"; $body .= sprintf("%s\n", $fcv->f("vsvcname")); if ($fcv->f("vsvcaddr1")) { $body .= sprintf("%s\n", $fcv->f('vsvcaddr1')); } if ($fcv->f("vsvcaddr2")) { $body .= sprintf("%s\n", $fcv->f('vsvcaddr2')); } $body .= sprintf("%s, %s %s %s\n", $fcv->f("vsvccity"), $fcv->f("vsvcstate"), $fcv->f("vsvczip"), $fcv->f("vsvcnatl")); if ($fcv->f("vsvcphone")) { $body .= sprintf("Phone: %s\n", $fcv->f('vsvcphone')); } if ($fcv->f("vsvcfax")) { $body .= sprintf("Fax: %s\n", $fcv->f('vsvcfax')); } $body .= fc_text('orderorigin'); global $gBitSystem; mail($fcv->f("vendoemail"), "Online Order", $body, "From: " . $gBitSystem->getSenderEmail()); if ($zflag1 & $flag_zonesplitcc) { // add this CC to the split CC database $fccc = new FC_SQL(); $fccc->User = ''; $fccc->Password = ''; if ($databaseeng == 'odbc' && $dialect == 'solid') { // solid uses views for the split cc work $fccc->query("insert into _ccnum (userid,tstamp,fetched,orderid,cc6) " . "values (,{$now},'0','{$cartid}','{$cc_lastsix}')"); } else { // the value of 1 below for userid is coordinated with // the ${instid}_users table set up in sql_mysql.sql $fccc->query("insert into {$instid}_ccnums (userid,tstamp,fetched,orderid,cc6) " . "values (1,{$now},'0','{$cartid}','{$cc_lastsix}')"); }