sidaphextwin Posted June 9, 2011 Share Posted June 9, 2011 Hi, I have a problemI 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 ";}else{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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now