Thread: Access Denied
View Single Post
  #1  
Old 02-26-2003, 12:21 AM
 
Jonny Jonny is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 67
 

Default Access Denied

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.
Reply With Quote