Jump to content

Validate with user access


florynth

Recommended Posts

Hi,I'm develloping a CMS with user access right and I want to validate my page... But because the Validator is not identified it get redirect to a loggin page so I can't make the test.For the XHTML i did put a code

if(substr($_SERVER['HTTP_USER_AGENT'],0,strlen("W3C_Validator")) == "W3C_Validator"){	$UsersManager->SetCurrentUserId(USER_MAIN_ADMINISTRATOR);}

It's not that secure but it work...But it doesn't work with the css test... Also I want to leave the icon to test my page by the user but I still want my page to be secure what are my option (if someone know...)Thanks for your answerMartin

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...