* * * This file logout * * @author Leovan Tavares da Silva [leovan] [leovan@solis.coop.br] * * $version: $Id$ * * \b Maintainers \n * Alexandre Heitor Schmidt [alexsmith@solis.coop.br] * Arthur Lehdermann [arthur@solis.coop.br] * Daniel Afonso Heisler [daniel@solis.coop.br] * Jamiel Spezia [jamiel@solis.coop.br] * Leovan Tavares da Silva [leovan@solis.coop.br] * Samuel Koch [samuel@solis.coop.br] * William Prigol Lopes [william@solis.coop.br] * * @since * Class created on 14/06/2006 * **/ // logout $MIOLO->getAuth()->logout(); $opts = null; $returnTo = MIOLO::_request('return_to'); if ( strlen($returnTo) > 0 ) { $opts = array('return_to' => urlencode($returnTo)); } // redirect to common environment $newURL = $MIOLO->getActionURL( $MIOLO->getConf('options.common'), 'main', null, $opts); $page->redirect( $newURL ); ?>