if (isset($_GET["order_success"])) { if (isset($_GET["orderID"]) && isset($_SESSION["newoid"]) && (int) $_SESSION["newoid"] == (int) $_GET["orderID"]) { $paymentMethod = payGetPaymentMethodById($_GET["paymentMethodID"]); $currentPaymentModule = modGetModuleObj($paymentMethod["module_id"], PAYMENT_MODULE); if ($currentPaymentModule != null) { $after_processing_html = $currentPaymentModule->after_processing_html($_GET["orderID"]); } else { $after_processing_html = ""; } $smarty->assign("after_processing_html", $after_processing_html); } $smarty->assign("order_success", 1); } else { if (isset($_GET["payment_error"])) { if ($_GET["payment_error"] == 1) { $smarty->assign("payment_error", 1); } else { $smarty->assign("payment_error", base64_decode(str_replace(" ", "+", $_GET["payment_error"]))); } } elseif (xDataExists('PaymentError')) { $smarty->assign("payment_error", xPopData('PaymentError')); } $orderSum = getOrderSummarize($_GET["shippingMethodID"], $_GET["paymentMethodID"], $_GET["shippingAddressID"], $_GET["billingAddressID"], $shippingModuleFiles, $paymentModuleFiles, $shServiceID); $smarty->assign("orderSum", $orderSum); $smarty->assign("totalUC", $orderSum["totalUC"]); } if (isset($_GET["orderID"])) { $smarty->assign("orderidd", (int) $_GET["orderID"]); } $smarty->assign("main_content_template", "order4_confirmation.tpl"); }
<?php if (isset($_GET['act_customer']) && CONF_ENABLE_REGCONFIRMATION) { $ActErr = false; if (isset($_GET['act_code'])) { if ($_GET['act_code']) { $sql = 'SELECT customerID, Login, cust_password FROM ' . CUSTOMERS_TABLE . ' WHERE ActivationCode="' . xEscapeSQLstring($_GET['act_code']) . '" AND ActivationCode!="" AND ActivationCode IS NOT NULL'; $Result = db_query($sql); $Customer = db_fetch_row($Result); if (isset($Customer['Login']) && $Customer['Login']) { regActivateCustomer($Customer['customerID']); regAuthenticate($Customer['Login'], cryptPasswordDeCrypt($Customer['cust_password'], null)); if (isset($_GET['order2']) && xDataExists('xREGMAILCONF_URLORDER2')) { Redirect(xPopData('xREGMAILCONF_URLORDER2')); } else { Redirect(set_query('&act_code=&act_ok=1')); } } else { $smarty->hassign('ActCode', $_GET['act_code']); $ActErr = true; } } else { $ActErr = true; } } if (isset($_GET['act_ok'])) { $smarty->assign('ActOk', 1); } if (isset($_GET['notact'])) {