function __construct(&$dba, $extra = NULL, &$result)
 {
     global $_CONFIG, $_QUERYPARAMS, $_USERGROUPS;
     $this->groups = $_USERGROUPS;
     $this->dba =& $dba;
     $expired = time() - ini_get('session.gc_maxlifetime');
     //$query			= "SELECT ". $_QUERYPARAMS['user'] . $_QUERYPARAMS['session'] ." FROM ". K4USERS ." u,". K4SESSIONS ." 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"; // GROUP BY s.user_id
     $query = "SELECT * FROM " . K4SESSIONS . " WHERE seen >= {$expired} AND ((user_id > 0) OR (user_id = 0 AND name <> '')) {$extra} GROUP BY name ORDER BY seen DESC";
     $this->result =& $result;
     Globals::setGlobal('num_online_members', $this->result->numrows());
     Globals::setGlobal('num_online_invisible', 0);
     parent::__construct($this->result);
 }
 function __construct(&$dba, $lang, $result)
 {
     $this->dba =& $dba;
     $this->lang = $lang;
     parent::__construct($result);
 }
 function __construct(&$dba, &$user, $result, $img_dir, $forum)
 {
     global $_ALLFORUMS, $_FLAGGEDUSERS;
     $this->result =& $result;
     $this->session = $_SESSION;
     $this->img_dir = $img_dir;
     $this->forum = $forum;
     $this->dba =& $dba;
     $this->user =& $user;
     $this->allforums = $_ALLFORUMS;
     $this->cookietopics = get_topic_cookies();
     $this->flagged_users = $_FLAGGEDUSERS;
     $this->increment = 1;
     parent::__construct($this->result);
 }
 function __construct(&$result, &$dba, $num_votes)
 {
     $this->num_votes = $num_votes;
     $this->dba =& $dba;
     parent::__construct($result);
 }
 function __construct(&$user, &$dba, &$result, $queryparams, $users, $groups, $fields)
 {
     $this->users = $users;
     $this->qp = $queryparams;
     $this->result =& $result;
     $this->groups = $groups;
     $this->fields = $fields;
     $this->user =& $user;
     $this->dba =& $dba;
     parent::__construct($this->result);
 }
 function __construct(&$dba, $query = NULL, $do_recurse = TRUE, $level = 1)
 {
     global $_SETTINGS, $_USERGROUPS;
     $this->dba =& $dba;
     $query = $query == NULL ? "" : $query;
     $this->usergroups = $_USERGROUPS;
     $this->settings = $_SETTINGS;
     $this->do_recurse = $do_recurse;
     $this->level = $level;
     $this->result = $this->dba->executeQuery($query);
     parent::__construct($this->result);
 }
 function __construct(&$request, &$result)
 {
     global $_QUERYPARAMS, $_USERGROUPS, $_PROFILEFIELDS;
     $this->users = array();
     $this->result =& $result;
     $this->groups = $_USERGROUPS;
     $this->fields = $_PROFILEFIELDS;
     $this->user =& $request['user'];
     $this->dba =& $request['dba'];
     $this->qp = $_QUERYPARAMS;
     parent::__construct($this->result);
 }
 function AdminCategoriesIterator(&$dba, $query = NULL)
 {
     $query = $query == NULL ? "SELECT * FROM " . K4CATEGORIES . " ORDER BY row_order ASC" : $query;
     $this->result = $dba->executeQuery($query);
     $this->dba =& $dba;
     parent::__construct($this->result);
 }
 function __construct(&$result)
 {
     $this->result =& $result;
     parent::__construct($this->result);
 }
Exemple #10
0
 function __construct(&$dba, &$result)
 {
     global $_ALLFORUMS, $_QUERYPARAMS, $_USERGROUPS;
     $this->dba =& $dba;
     $this->result =& $result;
     $this->forums = $_ALLFORUMS;
     $this->qp = $_QUERYPARAMS;
     $this->groups = $_USERGROUPS;
     $this->users = array();
     $this->topic_names = array();
     $this->increment = 1;
     parent::__construct($this->result);
 }
 function __construct(&$dba, &$user, $post_id)
 {
     global $_SETTINGS;
     $imageset = $user->isMember() ? $user->get('imageset') : $_SETTINGS['imageset'];
     $this->abs_path = BB_BASE_DIR . '/Images/' . $imageset . '/Icons/Attach/';
     $this->img_dir = 'Images/' . $imageset . '/Icons/Attach/';
     $this->images = array('jpe', 'jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff');
     $result = $dba->executeQuery("SELECT * FROM " . K4ATTACHMENTS . " WHERE post_id = " . intval($post_id));
     parent::__construct($result);
 }
 function __construct(&$dba, &$result, $img_dir, $repliesperpage)
 {
     global $_FLAGGEDUSERS;
     $this->result =& $result;
     $this->img_dir = $img_dir;
     $this->dba =& $dba;
     $this->flagged_users = $_FLAGGEDUSERS;
     $this->repliesperpage = $repliesperpage;
     parent::__construct($this->result);
 }
 function __construct(&$result, $queryparams, &$dba, $users, $groups, &$user, $url, $poll_text)
 {
     $this->users = $users;
     $this->qp = $queryparams;
     $this->dba =& $dba;
     $this->result =& $result;
     $this->groups = $groups;
     $this->user =& $user;
     $this->url = $url;
     $this->poll_text = $poll_text;
     $this->bbcode =& new BBParser();
     parent::__construct($this->result);
 }
Exemple #14
0
 function __construct(&$it)
 {
     $this->bbcode =& new BBParser();
     parent::__construct($it);
 }
 function AdminCSSIterator(&$result)
 {
     $this->result =& $result;
     parent::__construct($this->result);
 }
Exemple #16
0
 function __construct(&$result)
 {
     global $_USERGROUPS;
     $this->result =& $result;
     $this->groups = $_USERGROUPS;
     parent::__construct($this->result);
 }
Exemple #17
0
 function K4FAQIterator(&$result, &$dba)
 {
     $this->result =& $result;
     $this->dba =& $dba;
     parent::__construct($this->result);
 }