X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Access Denied (https://forum.x-cart.com/showthread.php?t=1636)

Jonny 02-26-2003 12:21 AM

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.

Jonny 02-26-2003 12:22 AM

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

it must be something simple :)

Jonny.


All times are GMT -8. The time now is 09:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.