Lines Matching refs:uid
39 function getpmbypmid($uid, $pmid) { argument
45 if($this->isprivilege($pm['plid'], $uid)) {
52 function isprivilege($plid, $uid) { argument
53 if(!$plid || !$uid) {
56 … = $this->db->query("SELECT * FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid' AND uid='$uid'");
64 function getpmbyplid($uid, $plid, $starttime, $endtime, $start, $ppp, $type = 0) { argument
66 $pm = $this->getprivatepmbyplid($uid, $plid, $starttime, $endtime, $start, $ppp);
68 $pm = $this->getchatpmbyplid($uid, $plid, $starttime, $endtime, $start, $ppp);
110 function setpmstatus($uid, $touids, $plids, $status = 0) { argument
111 if(!$uid) {
123 if($uid == $value || !$value) {
126 $relastionship[] = $this->relationship($uid, $value);
134 …='$newstatus' WHERE plid IN (".$this->base->implode($plidarr).") AND uid='$uid' AND isnew='$oldsta…
138 …ew='$newstatus' WHERE plid IN (".$this->base->implode($plids).") AND uid='$uid' AND isnew='$oldsta…
143 function set_ignore($uid) { argument
144 return $this->db->query("DELETE FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'");
147 function isnewpm($uid) { argument
148 return $this->db->result_first("SELECT uid FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'");
151 function lastpm($uid) { argument
152 …ers m LEFT JOIN ".UC_DBTABLEPRE."pm_lists t ON m.plid=t.plid WHERE m.uid='$uid' ORDER BY m.lastdat…
166 function getpmnum($uid, $type = 0, $isnew = 0) { argument
174 …>db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."pm_members m WHERE m.uid='$uid' $newsql");
176 …ers m LEFT JOIN ".UC_DBTABLEPRE."pm_lists t ON t.plid=m.plid WHERE m.uid='$uid' $newsql AND t.pmty…
181 function getpmnumbyplid($uid, $plid) { argument
182 …b->result_first("SELECT pmnum FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid' AND uid='$uid'");
356 function appendchatpm($plid, $uid, $touid) { argument
357 if(!$plid || !$uid || !$touid) {
367 if($threadpm['authorid'] != $uid) {
371 $blackls = $this->get_blackls($uid, $touid);
377 if(!(isset($blackls[$touid]) && !in_array($uid, $blackls[$touid]))) {
389 function kickchatpm($plid, $uid, $touid) { argument
390 if(!$uid || !$touid || !$plid || $uid == $touid) {
397 if($threadpm['authorid'] != $uid) {
406 function quitchatpm($uid, $plids) { argument
407 if(!$uid || !$plids) {
411 …"pm_lists t ON m.plid=t.plid WHERE m.plid IN (".$this->base->implode($plids).") AND m.uid='$uid'");
416 if($threadpm['authorid'] == $uid) {
423 … FROM ".UC_DBTABLEPRE."pm_members WHERE plid IN (".$this->base->implode($list).") AND uid='$uid'");
430 function deletepmbypmid($uid, $pmid) { argument
431 if(!$uid || !$pmid) {
439 if(!in_array($uid, $users)) {
442 if($index['authorid'] != $uid) {
459 …ers SET pmnum=pmnum-".($updatenum + $deletenum)." WHERE plid='".$index['plid']."' AND uid='$uid'");
464 function deletepmbypmids($uid, $pmids) { argument
467 $this->deletepmbypmid($uid, $pmid);
474 function deletepmbyplid($uid, $plid, $isuser = 0) { argument
475 if(!$uid || !$plid) {
480 $relationship = $this->relationship($uid, $plid);
490 if(!in_array($uid, $user)) {
494 if($uid != $list['authorid']) {
503 if($uid == $list['authorid']) {
516 …this->db->query("DELETE FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$list[plid]' AND uid='$uid'");
527 function deletepmbyplids($uid, $plids, $isuser = 0) { argument
530 $this->deletepmbyplid($uid, $plid, $isuser);
537 function getprivatepmbyplid($uid, $plid, $starttime = 0, $endtime = 0, $start = 0, $ppp = 0) { argument
538 if(!$uid || !$plid) {
541 if(!$this->isprivilege($plid, $uid)) {
550 if($thread['authorid'] == $uid) {
572 …$this->db->query("UPDATE ".UC_DBTABLEPRE."pm_members SET isnew=0 WHERE plid='$plid' AND uid='$uid'…
576 function getchatpmbyplid($uid, $plid, $starttime = 0, $endtime = 0, $start = 0, $ppp = 0) { argument
577 if(!$uid || !$plid) {
580 if(!$this->isprivilege($plid, $uid)) {
608 …$this->db->query("UPDATE ".UC_DBTABLEPRE."pm_members SET isnew=0 WHERE plid='$plid' AND uid='$uid'…
612 function getpmlist($uid, $filter, $start, $ppp = 10) { argument
613 if(!$uid) {
623 …FT JOIN ".UC_DBTABLEPRE."pm_lists t ON t.plid=m.plid WHERE $addsql m.uid='$uid' ORDER BY m.lastdat…
627 $member['touid'] = $users[0] == $uid ? $users[1] : $users[0];
635 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'");
692 function getplidbytouid($uid, $touid) { argument
693 if(!$uid || !$touid) {
696 …SELECT plid FROM ".UC_DBTABLEPRE."pm_lists WHERE min_max='".$this->relationship($uid, $touid)."'");
705 while($uid = $this->db->fetch_array($query)) {
706 $uidarr[$uid['uid']] = $uid['uid'];
711 function chatpmmemberlist($uid, $plid) { argument
712 if(!$uid || !$plid) {
719 if(!isset($uidarr[$uid])) {
741 function get_blackls($uid, $uids = array()) { argument
743 … = $this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'");
755 function set_blackls($uid, $blackls) { argument
756 …$this->db->query("UPDATE ".UC_DBTABLEPRE."memberfields SET blacklist='$blackls' WHERE uid='$uid'");
760 function update_blackls($uid, $username, $action = 1) { argument
773 …s($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
788 …s($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
792 …s($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
801 …$this->db->query("UPDATE ".UC_DBTABLEPRE."memberfields SET blacklist='$blackls' WHERE uid='$uid'");
815 function ispminterval($uid, $interval = 0) { argument
816 if(!$uid) {
823 …sult_first("SELECT lastupdate FROM ".UC_DBTABLEPRE."pm_members WHERE uid='$uid' ORDER BY lastupdat…
831 function isprivatepmthreadlimit($uid, $maxnum = 0) { argument
832 if(!$uid) {
839 …mbers m LEFT JOIN ".UC_DBTABLEPRE."pm_lists t ON m.plid=t.plid WHERE uid='$uid' AND lastupdate>'".…
847 function ischatpmthreadlimit($uid, $maxnum = 0) { argument
848 if(!$uid) {
855 …ult_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."pm_lists WHERE authorid='$uid' AND dateline>'".($…