function OnlineUsersIterator($extra = NULL) { global $_CONFIG, $_DBA, $_QUERYPARAMS, $_USERGROUPS; $this->groups = $_USERGROUPS; $this->dba =& $_DBA; $expired = time() - ini_get('session.gc_maxlifetime'); $query = "SELECT " . $_QUERYPARAMS['user'] . $_QUERYPARAMS['session'] . " FROM " . USERS . " u, " . SESSIONS . " s WHERE s.seen >= {$expired} AND ((u.id = s.user_id) OR (s.user_id <= 0 AND s.name <> '')) {$extra} GROUP BY s.name ORDER BY s.seen DESC"; $this->result =& $this->dba->executeQuery($query); Globals::setGlobal('num_online_members', $this->result->numrows()); Globals::setGlobal('num_online_invisible', 0); parent::FAProxyIterator($this->result); }
function TopicsIterator($result, &$session, $img_dir, $forum) { global $_DBA; $this->result =& $result; $this->session =& $session; $this->img_dir = $img_dir; $this->dba = $_DBA; $this->forum = $forum; //$this->forums = isset($_COOKIE['forums']) && $_COOKIE['forums'] != NULL && $_COOKIE['forums'] != '' ? iif(!unserialize($_COOKIE['forums']), array(), unserialize($_COOKIE['forums'])) : array(); parent::FAProxyIterator($this->result); }
function AdminCategoriesIterator($query = NULL) { global $_CONFIG, $_DBA, $_QUERYPARAMS; $this->query_params = $_QUERYPARAMS; $query_params = $this->query_params['info'] . $this->query_params['category']; $query = $query == NULL ? "SELECT {$query_params} FROM " . INFO . " i LEFT JOIN " . CATEGORIES . " c ON c.category_id = i.id AND i.row_type = " . CATEGORY . " ORDER BY i.row_order ASC" : $query; $this->result =& $_DBA->executeQuery($query); parent::FAProxyIterator($this->result); }
function RepliesReviewIterator(&$result, $queryparams, &$dba, $users, $groups, &$user) { $this->users = $users; $this->qp = $queryparams; $this->dba =& $dba; $this->result =& $result; $this->groups = $groups; $this->user =& $user; parent::FAProxyIterator($this->result); }
function UsersIterator(&$result) { global $_USERGROUPS; $this->result =& $result; $this->groups = $_USERGROUPS; parent::FAProxyIterator($this->result); }
function MAPSIterator($data = NULL, $start_level = 1) { global $_DBA; $this->dba =& $_DBA; $this->start_level = $start_level; parent::FAProxyIterator($data); }
function ForumsIterator($query = NULL, $do_recurse = TRUE) { global $_SETTINGS, $_DBA, $_QUERYPARAMS, $_USERGROUPS; $query = $query == NULL ? "" : $query; $this->usergroups = $_USERGROUPS; $this->user =& Globals::getGlobal('user'); $this->dba = $_DBA; $this->settings = $_SETTINGS; $this->query_params = $_QUERYPARAMS; $this->do_recurse = $do_recurse; $this->result =& $this->dba->executeQuery($query); //$this->forums = isset($_COOKIE['forums']) && $_COOKIE['forums'] != NULL && $_COOKIE['forums'] != '' ? iif(!unserialize($_COOKIE['forums']), array(), unserialize($_COOKIE['forums'])) : array(); parent::FAProxyIterator($this->result); }