[pmwiki-users] EnableDiag in CondAuth

adam overton a at plus1plus1plus.org
Wed Aug 6 19:54:29 CDT 2008

i'm currently running pmwiki-2.2.0-beta65
if i try to set $EnableDiag only for use by the admin using either of  
the two following approaches, i get an unending request for a  
password. if i set the $EnableDiag manually to 1 or 0, everything  
edits fine.

	if (CondAuth($pagename, 'admin')) $EnableDiag = 1;


	if(!CondAuth($pagename, 'admin')) {
		$EnableDiag = 0;
		} else {
		$EnableDiag = 1; 	# enable remote diagnostics

should this be happening?

More information about the pmwiki-users mailing list