Here is the original login.php (well part of it, do you need to see it all)
Quote:
if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
if((strpos($HTTP_REFERER, "mode=auth") === false) && (strpos($HTTP_REFERER, "mode=checkout") === false)) {
func_header_location($redirect_to."/cart.php");
} else {
func_header_location($redirect_to."/cart.php?mode=checkout");
}
} elseif (!empty($HTTP_REFERER)) {
if((strncasecmp($HTTP_REFERER,$http_location,strle n($http_location))==0 || strncasecmp($HTTP_REFERER,$https_location,strlen($ https_location))==0) &&
strpos($HTTP_REFERER,"error_message.php")===false &&
strpos($HTTP_REFERER,'secure_login.php')===false &&
strpos($HTTP_REFERER,".php")!==false) {
func_header_location($redirect_to.strrchr($HTTP_RE FERER, "/"));
}
}
func_header_location($redirect_to."/home.php");
}
|
And in the install instructions it says to find and replace this section
Quote:
if ($login_type == "C" || $login_type == "B") {
if (!func_is_cart_empty($cart)) {
func_header_location($redirect_to."/cart.php");
|
And for register.php here is the original
Quote:
elseif ($action == "cart") {
if (!empty($reg_error) || !empty($av_error) || !empty($av_recheck)) {
if (empty($login))
# Anonymous checkout
$script = "cart.php?mode=checkout";
elseif (!empty($paymentid))
$script = "register.php?mode=update&action=cart&paymentid=". intval($paymentid);
else
$script = "register.php?mode=update&action=cart";
|
And your isntructions say to find
Quote:
elseif ($action == "cart") {
if (empty($paymentid))
$script = "cart.php";
|
So I am not sure what to do as they are a bit different....
Thanks again