<br><br><div class="gmail_quote">On Sat, Jun 21, 2008 at 1:26 AM, Mailinglists &lt;<a href="mailto:mailinglists@wso.net">mailinglists@wso.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But what we&#39;d like to do is have the password prompt show up as soon as you click on the main &quot;Clients&quot; page and then depending on the password entered it would take you to that specific clients page.<br>
</blockquote></div><br>Make a (:goto-client-page:) markup or equivalent which calls a function following this pseudo-code:<br><br>$gotopage = null<br>foreach ($clientlist as $homepage) {<br>&nbsp;&nbsp; if (CondAuth($homepage, &#39;read&#39;)) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $gotopage = $homepage<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break<br>&nbsp;&nbsp; }<br>}<br><br>if ($gotopage)<br>&nbsp;&nbsp; Redirect($gotopage)<br><br>Then make sure this goto markup is on your main client page and that the client page has a read password for each client.&nbsp; That will mean they have to enter the password to see the client page but the goto-client-page markup will redirect them to their own page.<br>
<br>Then in your config.php you will need to create the $clientlist array as a list of homepages.&nbsp; Each of these homepages will have to be protected by the appropriate read password.<br><br>Does that help or is it too general?<br>
<br>-Peter<br>