<br><br><div class="gmail_quote">On Sat, Jun 21, 2008 at 1:26 AM, Mailinglists <<a href="mailto:mailinglists@wso.net">mailinglists@wso.net</a>> 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'd like to do is have the password prompt show up as soon as you click on the main "Clients" 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> if (CondAuth($homepage, 'read')) {<br>
$gotopage = $homepage<br> break<br> }<br>}<br><br>if ($gotopage)<br> 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. 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. 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>