Source for file login.php
Documentation is available at login.php
* The Login/register/Logout page
* DutchPIPE version 0.4; PHP version 5
* LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
* If you did not receive a copy of the DutchPIPE license, you can obtain one at
* http://dutchpipe.org/license/1_0.txt or by sending a note to
* license@dutchpipe.org, in which case you will be mailed a copy immediately.
* @subpackage dpuniverse_page
* @author Lennert Stock <ls@dutchpipe.org>
* @copyright 2006, 2007 Lennert Stock
* @license http://dutchpipe.org/license/1_0.txt DutchPIPE License
* @version Subversion: $Id: login.php 278 2007-08-19 22:52:25Z ls $
* @link http://dutchpipe.org/manual/package/DutchPIPE
* Builts upon the standard DpPage class
* The Login/register/Logout page
* @subpackage dpuniverse_page
* @author Lennert Stock <ls@dutchpipe.org>
* @copyright 2006, 2007 Lennert Stock
* @license http://dutchpipe.org/license/1_0.txt DutchPIPE License
* @version Release: 0.2.1
* @link http://dutchpipe.org/manual/package/DutchPIPE
* Sets up the page at object creation time
* Logs out users, gets the HTML content of this object
* Logs out logged in users when they enter this page with ?act=logout
* attached to the URL. Then returns DpPage::getBody().
* @return string HTML content of this object
* @see DpObject::getBody()
public function getBody($str = NULL)
&& 'logout' === $user->_GET['act']
&& $user->isRegistered) {
|