Lines Matching refs:plid
52 function isprivilege($plid, $uid) { argument
53 if(!$plid || !$uid) {
56 …$query = $this->db->query("SELECT * FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid' AND 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);
128 $plid = $plidpostarr = array();
181 function getpmnumbyplid($uid, $plid) { argument
182 …return $this->db->result_first("SELECT pmnum FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid' A…
240 $plid = $this->db->insert_id();
241 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."pm_indexes(plid) VALUES('$plid')");
243 …BTABLEPRE.$this->getposttablename($plid)."(pmid, plid, authorid, message, dateline, delstatus) VAL…
244 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$key', '1', '1',…
245 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$fromuid', '0', …
247 $plid = $existplid[$value];
248 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."pm_indexes(plid) VALUES('$plid')");
250 …BTABLEPRE.$this->getposttablename($plid)."(pmid, plid, authorid, message, dateline, delstatus) VAL…
251 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$key', '1', '1',…
253 …T isnew=1, pmnum=pmnum+1, lastdateline='".$this->base->time."' WHERE plid='$plid' AND uid='$key'");
255 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$fromuid', '0', …
257 …".$this->base->time."', lastdateline='".$this->base->time."' WHERE plid='$plid' AND uid='$fromuid'…
259 …s->db->query("UPDATE ".UC_DBTABLEPRE."pm_lists SET lastmessage='$lastmessage' WHERE plid='$plid'");
266 $plid = $this->db->insert_id();
267 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."pm_indexes(plid) VALUES('$plid')");
269 …BTABLEPRE.$this->getposttablename($plid)."(pmid, plid, authorid, message, dateline, delstatus) VAL…
270 …$pm_member_insertsql[] = "('$plid', '$fromuid', '0', '1', '".$this->base->time."', '".$this->base-…
272 $pm_member_insertsql[] = "('$plid', '$value', '1', '1', '0', '".$this->base->time."')";
285 function replypm($plid, $fromuid, $fromusername, $message) { argument
286 if(!$plid || !$fromuid || !$fromusername || !$message) {
290 $threadpm = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'");
317 $query = $this->db->query("SELECT * FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid'");
331 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."pm_indexes(plid) VALUES('$plid')");
333 …BTABLEPRE.$this->getposttablename($plid)."(pmid, plid, authorid, message, dateline, delstatus) VAL…
337 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$touid', '1', '1…
339 …isnew=1, pmnum=pmnum+1, lastdateline='".$this->base->time."' WHERE plid='$plid' AND uid='$touid'");
341 …".$this->base->time."', lastdateline='".$this->base->time."' WHERE plid='$plid' AND uid='$fromuid'…
346 …."pm_members SET isnew=1, pmnum=pmnum+1, lastdateline='".$this->base->time."' WHERE plid='$plid'");
347 …."pm_members SET isnew=0, lastupdate='".$this->base->time."' WHERE plid='$plid' AND uid='$fromuid'…
349 …s->db->query("UPDATE ".UC_DBTABLEPRE."pm_lists SET lastmessage='$lastmessage' WHERE plid='$plid'");
356 function appendchatpm($plid, $uid, $touid) { argument
357 if(!$plid || !$uid || !$touid) {
360 $threadpm = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'");
381 …_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE.$this->getposttablename($plid)." WHERE plid='$plid'");
382 …E."pm_members(plid, uid, isnew, pmnum, lastupdate, lastdateline) VALUES('$plid', '$touid', '1', '$…
383 …m = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid'");
384 $this->db->query("UPDATE ".UC_DBTABLEPRE."pm_lists SET members='$num' WHERE plid='$plid'");
389 function kickchatpm($plid, $uid, $touid) { argument
390 if(!$uid || !$touid || !$plid || $uid == $touid) {
393 $threadpm = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'");
400 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid' AND uid='$touid'");
401 …m = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid'");
402 $this->db->query("UPDATE ".UC_DBTABLEPRE."pm_lists SET members='$num' WHERE plid='$plid'");
474 function deletepmbyplid($uid, $plid, $isuser = 0) { argument
475 if(!$uid || !$plid) {
480 $relationship = $this->relationship($uid, $plid);
483 $sql = "SELECT * FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'";
529 foreach($plids as $key => $plid) {
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)) {
544 $thread = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'");
549 $addsql[] = "p.plid='$plid'";
571 …t.dateline as founddateline FROM ".UC_DBTABLEPRE.$this->getposttablename($plid)." p LEFT JOIN ".UC…
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)) {
584 $addsql[] = "p.plid='$plid'";
601 …t.dateline as founddateline FROM ".UC_DBTABLEPRE.$this->getposttablename($plid)." p LEFT JOIN ".UC…
608 …$this->db->query("UPDATE ".UC_DBTABLEPRE."pm_members SET isnew=0 WHERE plid='$plid' AND uid='$uid'…
699 function getuidbyplid($plid) { argument
700 if(!$plid) {
704 $query = $this->db->query("SELECT uid FROM ".UC_DBTABLEPRE."pm_members WHERE plid='$plid'");
711 function chatpmmemberlist($uid, $plid) { argument
712 if(!$uid || !$plid) {
715 $uidarr = $this->getuidbyplid($plid);
722 …rid = $this->db->result_first("SELECT authorid FROM ".UC_DBTABLEPRE."pm_lists WHERE plid='$plid'");
736 function getposttablename($plid) { argument
737 $id = substr((string)$plid, -1, 1);