View Single Post
  #15  
Old 02-23-2007, 06:08 PM
  Ene's Avatar 
Ene Ene is offline
 

X-Cart team
  
Join Date: Aug 2004
Posts: 907
 

Default Re: Make logout confirmation page? How to?

Quote:
Originally Posted by carpeperdiem
Has anyone tried to make this work for 4.1.x ?

The code in post #6 (and #9) is not appropriate for 4.1

Any ideas? Thanks.

Jeremy

In include/login.php replace

PHP Code:
if ($old_login_type == 'C') {
    if (!empty(
$HTTP_REFERER) && (strncasecmp($HTTP_REFERER$http_locationstrlen($http_location)) == || strncasecmp($HTTP_REFERER$https_locationstrlen($https_location)) == 0)) {
        if (
strpos($HTTP_REFERER"mode=order_message") === false &&
            
strpos($HTTP_REFERER"mode=wishlist") === false &&
            
strpos($HTTP_REFERER"bonuses.php") === false &&
            
strpos($HTTP_REFERER"returns.php") === false &&
            
strpos($HTTP_REFERER"orders.php") === false &&
            
strpos($HTTP_REFERER"giftreg_manage.php") === false &&
            
strpos($HTTP_REFERER"order.php") === false &&
            
strpos($HTTP_REFERER"register.php?mode=delete") === false &&
            
strpos($HTTP_REFERER"register.php?mode=update") === false) {
            
func_header_location($redirect_to.strrchr($HTTP_REFERER"/"), false);
        }
    }


with the

PHP Code:
if ($old_login_type == 'C') {
func_header_location($redirect_to."/mynewlogoutpage.php");
/*
    if (!empty($HTTP_REFERER) && (strncasecmp($HTTP_REFERER, $http_location, strlen($http_location)) == 0 || strncasecmp($HTTP_REFERER, $https_location, strlen($https_location)) == 0)) {
        if (strpos($HTTP_REFERER, "mode=order_message") === false &&
            strpos($HTTP_REFERER, "mode=wishlist") === false &&
            strpos($HTTP_REFERER, "bonuses.php") === false &&
            strpos($HTTP_REFERER, "returns.php") === false &&
            strpos($HTTP_REFERER, "orders.php") === false &&
            strpos($HTTP_REFERER, "giftreg_manage.php") === false &&
            strpos($HTTP_REFERER, "order.php") === false &&
            strpos($HTTP_REFERER, "register.php?mode=delete") === false &&
            strpos($HTTP_REFERER, "register.php?mode=update") === false) {
            func_header_location($redirect_to.strrchr($HTTP_REFERER, "/"), false);
        }
    }
*/

__________________
Eugene Kaznacheev,
Evangelist/Product Manager at Ecwid: http://www.ecwid.com/ (since Sept 2009)

ex-Head of X-Cart Tech Support Department
ex- X-Cart Hosting Manager - X-Cart hosting
ex-X-Cart Technical Support Engineer


Note: For the official guaranteed tech support services please turn to the Customers HelpDesk.
Reply With Quote