Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Access Denied

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 02-26-2003, 12:22 AM
 
Jonny Jonny is offline
 

Advanced Member
  
Join Date: Sep 2002
Posts: 67
 

Default

is there anything i need to add to my extra pages to include them in the PHP SESSION ???

it must be something simple

Jonny.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:14 AM.

   

 
X-Cart forums © 2001-2020