if (isset($order)) { if (isset($billingAddressID)) { $RedirectURL = "index.php?order2_shipping=yes&shippingAddressID=" . regGetDefaultAddressIDByLogin($login) . "&defaultBillingAddressID=" . $billingAddressID; } else { $RedirectURL = "index.php?order2_shipping=yes&shippingAddressID=" . regGetDefaultAddressIDByLogin($login); } } elseif (isset($order_without_billing_address)) { $RedirectURL = "index.php?order2_shipping=yes&shippingAddressID=" . regGetDefaultAddressIDByLogin($login); } else { $RedirectURL = "index.php?r_successful=yes"; } if (CONF_ENABLE_REGCONFIRMATION && (isset($order) || isset($order_without_billing_address))) { xSaveData('xREGMAILCONF_URLORDER2', $RedirectURL); $RedirectURL = "index.php?act_customer=1&order2=yes"; } RedirectJavaScript($RedirectURL); } else { $smarty->assign("reg_error", ERROR_INPUT_STATE); } } else { $smarty->assign("reg_error", $error); } } // countries $callBackParam = array(); $count_row = 0; $countries = cnGetCountries($callBackParam, $count_row); $smarty->assign("countries", $countries); if (!$isPost) { if (count($countries) != 0) { $zones = znGetZonesById(CONF_DEFAULT_COUNTRY);
<?php //logout if (isset($_REQUEST['logout'])) { unset($_SESSION['log']); unset($_SESSION['pass']); session_unregister('log'); session_unregister('pass'); cartClearCartContet(); RedirectJavaScript('/'); } //login if (isset($_POST["login"]) && !isset($_SESSION["log"])) { if (regAuthenticate($_POST["user_login"], $_POST["user_pw"])) { $relaccess = checklogin(); if (isset($_POST['check_order'])) { $cartIsEmpty = cartCartIsEmpty($_POST['user_login']); if ($cartIsEmpty) { Redirect('index.php?order2_shipping=yes&shippingAddressID=' . regGetDefaultAddressIDByLogin($_SESSION['log'])); } else { Redirect('index.php?shopping_cart=yes&make_more_exact_cart_content=yes'); } } else { if (in_array(100, $relaccess)) { Redirect(ADMIN_FILE); } else { Redirect("index.php?user_details=yes"); } } } else { $wrongLoginOrPw = true;
if (CONF_ORDERING_REQUEST_BILLING_ADDRESS == '1' && $error == "") { $error = quickOrderBillingAddressVerify(); } if (CONF_ENABLE_CONFIRMATION_CODE) { if (!$_POST['fConfirmationCode'] || !isset($_SESSION['captcha_keystring']) || $_SESSION['captcha_keystring'] !== $_POST['fConfirmationCode']) { $error = ERR_WRONG_CCODE; } unset($_SESSION['captcha_keystring']); } if ($error == "") { quikOrderSetCustomerInfo(); quickOrderSetReceiverAddress(); if (CONF_ORDERING_REQUEST_BILLING_ADDRESS == '1') { quickOrderSetBillingAddress(); } RedirectJavaScript("index.php?order2_shipping_quick=yes"); } else { $smarty->assign("reg_error", $error); } } // additional fields $additional_fields = GetRegFields(); $smarty->assign("additional_fields", $additional_fields); $callBackParam = array(); $count_row = 0; $countries = cnGetCountries($callBackParam, $count_row); $smarty->assign("countries", $countries); $smarty->assign("quick_register", 1); $smarty->assign("main_content_template", "register_quick.tpl"); if (isset($_SESSION['refid'])) { $smarty->assign('SessionRefererLogin', $_SESSION['refid']);