Any idea why this works: if (substr_count($pagename,'edit') || substr_count($pagename,'SiteAdmin') || substr_count($pagename,'Blog/NewBlogPage') ) { $EnableAccessCode = false; } else { ## enter access code to write comment $EnableAccessCode = true; }
But if I use EnablePostCaptchaRequired instead of EnableAccessCode, it no longer works? (no longer works means it thinks I should be entering a code for all pages: if (substr_count($pagename,'edit') || substr_count($pagename,'SiteAdmin') || substr_count($pagename,'Blog/NewBlogPage') ) { $EnablePostCaptchaRequired = 0; } else { ## enter access code to write comment $EnablePostCaptchaRequired = 1; } This does work: if (CondAuth($pagename,'edit') { $EnablePostCaptchaRequired = 0; } else { ## enter access code to write comment $EnablePostCaptchaRequired = 1; } But, I can't look at or edit SiteAdmin pages. thanks, maria
_______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users