From: Don I. <don...@ca...> - 2004-04-02 15:24:26
|
Here is the echo statments that I put in and the results. If the user is allowed to login this is what happens: Reversing Functionality SQSession Destoryed URI-----> ##BAD_LOGIN_PAGE## Compatibility URI -----> ##BAD_LOGIN_PAGE## LOGOUT if the user is not allowed to login this is what happens: Reversing Functionality SQSession Destoryed URI-----> ##BAD_LOGIN_PAGE## Compatibility URI -----> ##BAD_LOGIN_PAGE## LOGOUT // if we are reversing functionality, lockout anyone // not found in the lockout file // echo "Reversing Functionality"; if ($reverseLockout) redirect($reverseLockout); } } function redirect($uri) { echo "SQSession Destoryed URI-----> $uri"; sqsession_destroy(); if (strpos($uri, 'http') === 0) { echo "STRPOS = 0"; header('Location: ' . $uri); } else if ($uri == '##BAD_LOGIN_PAGE##') { echo "Compatibility URI -----> $uri"; if (compatibility_check_sm_version(1, 3)) include_once (SM_PATH . 'functions/display_messages.php'); else include_once ('../functions/display_messages.php'); // simulate delay sleep(5); echo "LOGOUT"; logout_error( _("You must be logged in to access this page.") ); } else { echo "../plugins/lockout/' . $uri"; header('Location: ../plugins/lockout/' . $uri); } exit; } -- Don Ingram don...@ca... The Calgary Sun Systems Department (403)-250-4309 (Direct) (403)-250-4145 (Fax) www.calgarysun.com |