I wrote my own page to work with x-cart. Users can only access the page after they pass the authentication. I did that by put below line in my code:
require $xcart_dir."/include/security.php";
Now if users try to access the page before login, they are always directed to error_message.php?access_denied&id=37 with message
Quote:
Access denied !
You are not allowed to access that resource!
Error ID: 37
|
How can I direct users to a different page (such as a login.php), instea of error_message.php? If it's not easy to do that, how can I customize the message? I like the message to be something friendly, like
Quote:
Access denied !
Please click here (with link) to login first.
|
Thanks a lot.
Jeff