Re: [phplib] pre-authorization page From: Klaus Seidenfaden (ks <email protected>)
Date: 05/29/01

-----Oprindelig meddelelse-----
Fra: darcy w. christ <darcy <email protected>>

>would like to be able to offer an explanation for the different points
>of access, with a simple [proceed] button or a [return] button, if they
>are not willing to login. Has anyone encountered this before? Does
>anyone have any ideas how to provide a variable pre-login page which
>would come before the authentication page and before the page which is
>protected? i appreciate the suggestions. Thanks.

As I recall it, the login page is actually included (via page_open() and auth->start()) in the page being accessed. This means that you can add code in loginform.ihtml to display variable information based on the value of $PHP_SELF (remember to global it). [Proceed] then becomes Login, and you could use $HTTP_REFERER or javascript to implement [Return]. Or whatever. If you feel like it, you could also delve into a solution based on templates...

-- Klaus.

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>