getBusiness($module, 'BusAuthenticate'); BusinessGnuteca3BusAuthenticate::logoff(); $newURL = $MIOLO->getConf('home.url').'/index.php?module=gnuteca3&action=main:search:simpleSearch'; } else { $MIOLO->getAuth()->logout(); unset($_SESSION); $url = 'main:login'; // redirect to common environment $args['return_to'] = MIOLO::_REQUEST('return_to'); $args['redirect_action'] = MIOLO::_REQUEST('redirect_action'); $args['loginType'] = MIOLO::_REQUEST('loginType'); $newURL = $MIOLO->getActionURL( $module, $url, null, $args); } $page->onload("window.location = '$newURL';"); //força atualizção da url*/ ?>