public static function checkLogin($object) { if (flag_is_set($object->GetOptions(), PERSISTENT)) { return; } if (uEvents::TriggerEvent('CanAccessModule', $object) !== FALSE) { return; } if (self::IsLoggedIn()) { uNotices::AddNotice('Sorry, you do not have access to this feature.', NOTICE_TYPE_WARNING); return FALSE; } $parent = get_class($object); if ($parent == utopia::GetCurrentModule() && $parent !== __CLASS__ && !AjaxEcho('window.location.reload();')) { utopia::QueueLauncher(__CLASS__); //$obj = utopia::GetInstance(__CLASS__); //$obj->_RunModule(); } return FALSE; }