Re: Combine of PEAR::Auth && PEAR::HTML_Page

From: Date: Mon, 04 Aug 2003 05:32:03 +0000
Subject: Re: Combine of PEAR::Auth && PEAR::HTML_Page
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-6983@lists.php.net to get a copy of this message
Hi Peter, > $obj =& new Builder(); > $AU = $obj->initAuth(); > $auth = $AU->start(); > $CSS = $obj->initCSS('crystal'); > require_once 'HTML/Page.php'; > $p = new HTML_Page(); > $p->addStyleDeclaration(&$CSS, 'text/css'); > $p->setTitle("TEST CC AUTH"); > $p->addBodyContent(&$auth); > $p->display(); > > But in the Page itself when look at the source, at first it display the > loginbox from Auth and then it starts with the Page itself. What you need to do is to build in an authentication check and if it doesn't pass, then put the auth form in. Else ouput the page content. Klaus > May someone give a hint how to combine both? > > Cheers > > -Peter > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#6983) next »