Jump to content

My script only works in administrator folder, why?


Recommended Posts

Hi, I have a problem
I have a php file that checks for an administrator logged into the back office of prestashop:

include_once ('../ config / config.inc.php ');
include_once ('../ config / settings.inc.php ');
include_once ('../ classes / cookie.php ');

$ cookie = new Cookie ("psadmin ');

/ * logged or not * /
if ($ cookie-> isLoggedBack ())
echo "1 ";
echo "0";

The point is that this code only works if test.php is in the folder / administrator if you are in / test / test.php does not work. Does anyone have any idea?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...