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 ); ?>