Hi
I am in the middle of adding some extra sections to xcart which require the user to be logged in, but when i try and submit a form which will change my new tables in the database, i get access denied, even though i am logged in as a user..
I have tried only having 1 xcart open and not being logged in as admin at the same time but no luck..
it seems to be down to the following IF statement
Code:
if ($HTTP_POST_VARS["login"] || $HTTP_GET_VARS["login"] || $HTTP_POST_VARS["login_type"] || $HTTP_POST_VARS["login_type"] || $_GET["login"] || $_GET["login_type"] || $_POST["login"] || $_POST["login"]) {
header("Location: ../customer/error_message.php?access_denied");
exit();
}
which is in /include/check_useraccount.php
any ideas?
Jonny.