<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
So the elegant solution would be just:<br>
<br>
$page = ReadPage($pagename);
<br>
if ($page['passwdedit']) Markup(...);
<br>
<br>
Actually, the first thing I did today before bothering you, was to
print_r a ReadPage result, <br>
but since there was probably no password set, it gave no hint of a
passwdedit entry. <br>
Remains the question about documentation...<br>
<br>
Frank<br>
<br>
<br>
<br>
Hans wrote:
<blockquote cite="mid:1318331151.20091001225502@softflow.co.uk"
type="cite">
<pre wrap="">Thursday, October 1, 2009, 9:58:55 PM, DaveG wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> $page = RetrieveAuthPage($pagename, 'read', true);
if (!$page) echo "?cannot read $pagename";
if ($page['passwdedit']) { DEFINE MARKUP }
else { BLANK OUT THE MARKUP }
</pre>
</blockquote>
<pre wrap=""><!---->
instead of
$page = RetrieveAuthPage($pagename, 'read', true);
in this case you could simply use
$page = ReadPage($pagename);
since you just want to check for the presence of a password.
~Hans
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
_______________________________________________________________________
Dr. Frank F. Schweickert
AMSTEL Institute, Faculty of Science, University of Amsterdam
Science Park 904, Amsterdam, Room C2-1.22
Postal address: Postbus 94224, 1090 GE Amsterdam
Phone: +31 20 525-8475 (secr. -5886)
<a class="moz-txt-link-freetext" href="http://www.science.uva.nl/amstel">http://www.science.uva.nl/amstel</a>
<a class="moz-txt-link-freetext" href="http://www.natsim.net">http://www.natsim.net</a></pre>
</body>
</html>