vendor_user/uc_client/model/pm.php

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php

/*
    [UCenter] (C)2001-2099 Comsenz Inc.
    This is NOT a freeware, use is subject to license terms

    $Id: pm.php 1059 2011-03-01 07:25:09Z monkey $
*/

!defined('IN_UC') && exit('Access Denied');

define('PMINBALCKLIST_ERROR', -6);
define('PMSENDSELF_ERROR', -8);
define('PMSENDNONE_ERROR', -9);
define('PMSENDCHATNUM_ERROR', -10);
define('PMTHREADNONE_ERROR', -11);
define('PMPRIVILEGENONE_ERROR', -12);
define('PMCHATTYPE_ERROR', -13);
define('PMUIDTYPE_ERROR', -14);
define('PMDATA_ERROR', -15);

class pmmodel
{
    public $db;
    public $base;

    public function __construct(&$base)
    {
        $this->pmmodel($base);
    }

    public function pmmodel(&$base)
    {
        $this->base = $base;
        $this->db = $base->db;
    }

    public function pmintval($pmid)
    {
        return @is_numeric($pmid) ? $pmid : 0;
    }

    public function getpmbypmid($uid, $pmid)
    {
        if (!$pmid) {
            return array();
        }
        $arr = array();
        $pm = $this->db->fetch_first('SELECT * FROM '.UC_DBTABLEPRE.'pm_indexes i LEFT JOIN '.UC_DBTABLEPRE."pm_lists t ON t.plid=i.plid WHERE i.pmid='$pmid'");
        if ($this->isprivilege($pm['plid'], $uid)) {
            $pms = $this->db->fetch_all('SELECT t.*, p.*, t.authorid as founderuid, t.dateline as founddateline FROM '.UC_DBTABLEPRE.$this->getposttablename($pm['plid']).' p LEFT JOIN '.UC_DBTABLEPRE."pm_lists t ON t.plid=p.plid WHERE p.pmid='$pm[pmid]'");
            $arr = $this->getpostlist($pms);
        }

        return $arr;
    }

    public function isprivilege($plid, $uid)
    {
        if (!$plid || !$uid) {

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。