Index: branches/RC/core/units/users/users_tag_processor.php =================================================================== diff -u -r10156 -r10204 --- branches/RC/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 10156) +++ branches/RC/core/units/users/users_tag_processor.php (.../users_tag_processor.php) (revision 10204) @@ -226,6 +226,24 @@ list ($ret, $tag_processed) = $this->processAggregatedTag('ImageSrc', $params, $this->getPrefixSpecial()); return $tag_processed ? $ret : false; } + + function LoggedIn($params) + { + static $loggedin_status = Array (); + + $object =& $this->getObject($params); + /* @var $object kDBList */ + + if (!isset($loggedin_status[$this->Special])) { + $user_ids = $object->GetCol($object->IDField); + $sql = 'SELECT LastAccessed, '.$object->IDField.' + FROM '.TABLE_PREFIX.'UserSession + WHERE (PortalUserId IN ('.implode(',', $user_ids).'))'; + $loggedin_status[$this->Special] = $this->Conn->GetCol($sql, $object->IDField); + } + + return isset($loggedin_status[$this->Special][$object->GetID()]); + } } ?> \ No newline at end of file