h5微信牌九二八杠源码出售搭建教程

最低配置要求:linux服务器,系统: CentOS 6.8,内存2G以上,独享5M以上带宽

<?php

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

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

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

class friendcontrol extends base {

联系QQ:2164097691

材料下载地址:h5.hubawl.com

function __construct() {   $this->friendcontrol();  }

function friendcontrol() {   parent::__construct();   $this->init_input();   $this->load(‘friend‘);  }

function ondelete() {   $uid = intval($this->input(‘uid‘));   $friendids = $this->input(‘friendids‘);   $id = $_ENV[‘friend‘]->delete($uid, $friendids);   return $id;  }

function onadd() {   $uid = intval($this->input(‘uid‘));   $friendid = $this->input(‘friendid‘);   $comment = $this->input(‘comment‘);   $id = $_ENV[‘friend‘]->add($uid, $friendid, $comment);   return $id;  }

function ontotalnum() {   $uid = intval($this->input(‘uid‘));   $direction = intval($this->input(‘direction‘));   $totalnum = $_ENV[‘friend‘]->get_totalnum_by_uid($uid, $direction);   return $totalnum;  }

function onls() {   $uid = intval($this->input(‘uid‘));   $page = intval($this->input(‘page‘));   $pagesize = intval($this->input(‘pagesize‘));   $totalnum = intval($this->input(‘totalnum‘));   $direction = intval($this->input(‘direction‘));   $pagesize = $pagesize ? $pagesize : UC_PPP;   $totalnum = $totalnum ? $totalnum : $_ENV[‘friend‘]->get_totalnum_by_uid($uid);   $data = $_ENV[‘friend‘]->get_list($uid, $page, $pagesize, $totalnum, $direction);   return $data;  } }

?>

<?php

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

$Id: pm.php 1067 2011-03-08 10:06:51Z svn_project_zhangjie $ */

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

define(‘PRIVATEPMTHREADLIMIT_ERROR‘, -1); define(‘PMFLOODCTRL_ERROR‘, -2); define(‘PMMSGTONOTFRIEND‘, -3); define(‘PMSENDREGDAYS‘, -4); define(‘CHATPMTHREADLIMIT_ERROR‘, -5); define(‘CHATPMMEMBERLIMIT_ERROR‘, -7);

class pmcontrol extends base {

function __construct() {   $this->pmcontrol();  }

function pmcontrol() {   parent::__construct();   $this->load(‘user‘);   $this->load(‘pm‘);  }

function oncheck_newpm() {   $this->init_input();   $uid = intval($this->input(‘uid‘));   $more = intval($this->input(‘more‘));   if(!$_ENV[‘pm‘]->isnewpm($uid) && !$more) {    return 0;   }   $newprvpm = $_ENV[‘pm‘]->getpmnum($uid, 1, 1);   $newchatpm = $_ENV[‘pm‘]->getpmnum($uid, 2, 1);   $newpm = $newprvpm + $newchatpm;   if($more == 0) {    return $newpm;   } elseif($more == 1) {    return array(‘newpm‘ => $newpm, ‘newprivatepm‘ => $newprvpm);   } elseif($more == 2 || $more == 3) {    if($more == 2) {     return array(‘newpm‘ => $newpm, ‘newprivatepm‘ => $newprvpm, ‘newchatpm‘ => $newchatpm);    } else {     $lastpm = $_ENV[‘pm‘]->lastpm($uid);     require_once UC_ROOT.‘lib/uccode.class.php‘;     $this->uccode = new uccode();     $lastpm[‘lastsummary‘] = $this->uccode->complie($lastpm[‘lastsummary‘]);     return array(‘newpm‘ => $newpm, ‘newprivatepm‘ => $newprvpm, ‘newchatpm‘ => $newchatpm, ‘lastdate‘ => $lastpm[‘lastdateline‘], ‘lastmsgfromid‘ => $lastpm[‘lastauthorid‘], ‘lastmsgfrom‘ => $lastpm[‘lastauthorusername‘], ‘lastmsg‘ => $lastpm[‘lastsummary‘]);    }   } elseif($more == 4) {    return array(‘newpm‘ => $newpm, ‘newprivatepm‘ => $newprvpm, ‘newchatpm‘ => $newchatpm);   } else {    return 0;   }  }

function onsendpm() {   $this->init_input();   $fromuid = $this->input(‘fromuid‘);   $msgto = $this->input(‘msgto‘);   $subject = $this->input(‘subject‘);   $message = $this->input(‘message‘);   $replypmid = $this->input(‘replypmid‘);   $isusername = $this->input(‘isusername‘);   $type = $this->input(‘type‘);

if(!$fromuid) {    return 0;   }

$user = $_ENV[‘user‘]->get_user_by_uid($fromuid);   $user = daddslashes($user, 1);   if(!$user) {    return 0;   }   $this->user[‘uid‘] = $user[‘uid‘];   $this->user[‘username‘] = $user[‘username‘];

if($replypmid) {    $isusername = 0;    $plid = $_ENV[‘pm‘]->getplidbypmid($replypmid);    $msgto = $_ENV[‘pm‘]->getuidbyplid($plid);    unset($msgto[$this->user[‘uid‘]]);   } else {    if(!empty($msgto)) {     $msgto = array_unique(explode(‘,‘, $msgto));    }   }

if($isusername) {    $msgto = $_ENV[‘user‘]->name2id($msgto);   }   $countmsgto = count($msgto);

if($this->settings[‘pmsendregdays‘]) {    if($user[‘regdate‘] > $this->time - $this->settings[‘pmsendregdays‘] * 86400) {     return PMSENDREGDAYS;    }   }   if($this->settings[‘chatpmmemberlimit‘]) {    if($type == 1 && ($countmsgto > ($this->settings[‘chatpmmemberlimit‘] - 1))) {     return CHATPMMEMBERLIMIT_ERROR;    }   }   if($this->settings[‘pmfloodctrl‘]) {    if(!$_ENV[‘pm‘]->ispminterval($this->user[‘uid‘], $this->settings[‘pmfloodctrl‘])) {     return PMFLOODCTRL_ERROR;    }   }   if($this->settings[‘privatepmthreadlimit‘]) {    if(!$_ENV[‘pm‘]->isprivatepmthreadlimit($this->user[‘uid‘], $this->settings[‘privatepmthreadlimit‘])) {     return PRIVATEPMTHREADLIMIT_ERROR;    }   }   if($this->settings[‘chatpmthreadlimit‘]) {    if(!$_ENV[‘pm‘]->ischatpmthreadlimit($this->user[‘uid‘], $this->settings[‘chatpmthreadlimit‘])) {     return CHATPMTHREADLIMIT_ERROR;    }   }

$lastpmid = 0;   if($replypmid) {    $lastpmid = $_ENV[‘pm‘]->replypm($plid, $this->user[‘uid‘], $this->user[‘username‘], $message);   } else {    $lastpmid = $_ENV[‘pm‘]->sendpm($this->user[‘uid‘], $this->user[‘username‘], $msgto, $subject, $message, $type);   }   return $lastpmid;  }

function ondelete() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $pmids = $this->input(‘pmids‘);   if(empty($pmids)) {    return 0;   }   if(is_array($pmids)) {    $this->apps = $this->cache(‘apps‘);    if($this->apps[$this->app[‘appid‘]][‘type‘] == ‘UCHOME‘) {     $id = $_ENV[‘pm‘]->deletepmbyplids($this->user[‘uid‘], $this->input(‘pmids‘));    } else {     $id = $_ENV[‘pm‘]->deletepmbypmids($this->user[‘uid‘], $this->input(‘pmids‘));    }   } else {    $id = $_ENV[‘pm‘]->deletepmbypmid($this->user[‘uid‘], $this->input(‘pmids‘));   }   return $id;  }

function ondeletechat() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $plids = $this->input(‘plids‘);   $type = intval($this->input(‘type‘));   if($type == 1) {    return $_ENV[‘pm‘]->deletepmbyplids($this->user[‘uid‘], $plids);   } else {    return $_ENV[‘pm‘]->quitchatpm($this->user[‘uid‘], $plids);   }  }

function ondeleteuser() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $id = $_ENV[‘pm‘]->deletepmbyplids($this->user[‘uid‘], $this->input(‘touids‘), 1);   return $id;  }

function onreadstatus() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $_ENV[‘pm‘]->setpmstatus($this->user[‘uid‘], $this->input(‘uids‘), $this->input(‘plids‘), $this->input(‘status‘));  }

function onignore() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   return $_ENV[‘pm‘]->set_ignore($this->user[‘uid‘]);  }

function onls() {    $this->init_input();    $pagesize = $this->input(‘pagesize‘);    $filter = $this->input(‘filter‘);    $page = $this->input(‘page‘);   $msglen = $this->input(‘msglen‘);    $this->user[‘uid‘] = intval($this->input(‘uid‘));

$filter = $filter ? (in_array($filter, array(‘newpm‘, ‘privatepm‘)) ? $filter : ‘‘) : ‘‘;   if($filter == ‘newpm‘) {    $type = 0;    $new = 1;   } elseif($filter == ‘privatepm‘) {    $type = 0;    $new = 0;   } else {    return array();   }   $pmnum = $_ENV[‘pm‘]->getpmnum($this->user[‘uid‘], $type, $new);   $start = $this->page_get_start($page, $pagesize, $pmnum);

if($pagesize > 0) {     $pms = $_ENV[‘pm‘]->getpmlist($this->user[‘uid‘], $filter, $start, $pagesize);     if(is_array($pms) && !empty($pms)) {     foreach($pms as $key => $pm) {      if($msglen) {       $pms[$key][‘lastsummary‘] = $_ENV[‘pm‘]->removecode($pms[$key][‘lastsummary‘], $msglen);      } else {       unset($pms[$key][‘lastsummary‘]);      }     }    }    $result[‘data‘] = $pms;   }   $result[‘count‘] = $pmnum;    return $result;  }

function onview() {    $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));   $pmid = $this->input(‘pmid‘);   $touid = $this->input(‘touid‘);   $daterange = $this->input(‘daterange‘);   $page = $this->input(‘page‘);   $pagesize = $this->input(‘pagesize‘);   $isplid = $this->input(‘isplid‘);   $type = $this->input(‘type‘);

$daterange = empty($daterange) ? 1 : $daterange;   $today = $this->time - ($this->time + $this->settings[‘timeoffset‘]) % 86400;   if($daterange == 1) {    $starttime = $today;   } elseif($daterange == 2) {    $starttime = $today - 86400;   } elseif($daterange == 3) {    $starttime = $today - 172800;   } elseif($daterange == 4) {    $starttime = $today - 604800;   } elseif($daterange == 5) {    $starttime = 0;   }   $endtime = $this->time;

if(!$isplid) {    $plid = $_ENV[‘pm‘]->getplidbytouid($this->user[‘uid‘], $touid);   } else {    $plid = $touid;   }   if($page) {    $pmnum = $_ENV[‘pm‘]->getpmnumbyplid($this->user[‘uid‘], $plid);    $start = $this->page_get_start($page, $pagesize, $pmnum);    $ppp = $pagesize;   } else {    $pmnum = 0;    $start = 0;    $ppp = 0;   }

if($pmid) {    $pms = $_ENV[‘pm‘]->getpmbypmid($this->user[‘uid‘], $pmid);   } else {    $pms = $_ENV[‘pm‘]->getpmbyplid($this->user[‘uid‘], $plid, $starttime, $endtime, $start, $ppp, $type);   }

require_once UC_ROOT.‘lib/uccode.class.php‘;   $this->uccode = new uccode();   if($pms) {    foreach($pms as $key => $pm) {     $pms[$key][‘message‘] = $this->uccode->complie($pms[$key][‘message‘]);    }   }   return $pms;   }

function onviewnum() {   $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));   $touid = $this->input(‘touid‘);   $isplid = $this->input(‘isplid‘);   if(!$isplid) {    $plid = $_ENV[‘pm‘]->getplidbytouid($this->user[‘uid‘], $touid);   } else {    $plid = $touid;   }   $pmnum = $_ENV[‘pm‘]->getpmnumbyplid($this->user[‘uid‘], $plid);   return $pmnum;  }

function onviewnode() {    $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));   $type = $this->input(‘type‘);   $pmid = $this->input(‘pmid‘);   $type = 0;   $pms = $_ENV[‘pm‘]->getpmbypmid($this->user[‘uid‘], $pmid);

require_once UC_ROOT.‘lib/uccode.class.php‘;   $this->uccode = new uccode();   if($pms) {    foreach($pms as $key => $pm) {     $pms[$key][‘message‘] = $this->uccode->complie($pms[$key][‘message‘]);    }   }   $pms = $pms[0];   return $pms;  }

function onchatpmmemberlist() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $plid = intval($this->input(‘plid‘));   return $_ENV[‘pm‘]->chatpmmemberlist($this->user[‘uid‘], $plid);  }

function onkickchatpm() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $plid = intval($this->input(‘plid‘));   $touid = intval($this->input(‘touid‘));   return $_ENV[‘pm‘]->kickchatpm($plid, $this->user[‘uid‘], $touid);  }

function onappendchatpm() {   $this->init_input();   $this->user[‘uid‘] = intval($this->input(‘uid‘));   $plid = intval($this->input(‘plid‘));   $touid = intval($this->input(‘touid‘));   return $_ENV[‘pm‘]->appendchatpm($plid, $this->user[‘uid‘], $touid);  }

function onblackls_get() {     $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));    return $_ENV[‘pm‘]->get_blackls($this->user[‘uid‘]);   }

function onblackls_set() {    $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));    $blackls = $this->input(‘blackls‘);    return $_ENV[‘pm‘]->set_blackls($this->user[‘uid‘], $blackls);   }

function onblackls_add() {   $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));    $username = $this->input(‘username‘);    return $_ENV[‘pm‘]->update_blackls($this->user[‘uid‘], $username, 1);   }

function onblackls_delete($arr) {   $this->init_input();    $this->user[‘uid‘] = intval($this->input(‘uid‘));    $username = $this->input(‘username‘);    return $_ENV[‘pm‘]->update_blackls($this->user[‘uid‘], $username, 2);   } }

?>

原文地址:https://www.cnblogs.com/dsf2321/p/8458198.html

时间: 2024-09-29 12:54:10

h5微信牌九二八杠源码出售搭建教程的相关文章

h5牛牛源码h5二八杠源码出售搭建教程

QQ联系2164097691 材料下载地址:h5.hubawl.com linux服务器,系统: CentOS 6.8,内存2G以上,独享5M以上带宽 <?php /**  *      [Discuz!] (C)2001-2099 Comsenz Inc.  *      This is NOT a freeware, use is subject to license terms  *  *      $Id: memcp.inc.php 29364 2012-04-09 02:51:41Z

[重磅] HPC运用对H5微信牛牛棋牌房卡源码出售核算支撑现状解析

HPC运用支撑GPU核算的增加简直完全是由英伟达(H5微信牛牛棋牌房卡源码出售 官网:h5.super-mans.com 企娥:2012035031 vx和tel:17061863513 H5微信牛牛棋牌房卡源码出售)推进的,该公司在构建一个强健的软件生态体系以支撑其在硬件方面的投入.具体来说,经过开发了一套并行编程API.库和相关的软件开发东西CUDA(Compute Unified Device Architecture)支撑GPU渠道的运用程序开发,包含OpenCL敞开的规范结构.各种处理

最新h5二八杠牌九源码出售搭建教程

联系QQ:②①⑥④0⑨⑦⑥⑨① 材料下载:h5.hubawl.com 服务器最低配置:linux服务器,系统: CentOS 6.8,内存2G以上,独享5M以上带宽 <?php /*  [UCenter] (C)2001-2099 Comsenz Inc.  This is NOT a freeware, use is subject to license terms $Id: avatar.php 1144 2013-01-31 06:47:43Z zhangjie $ */ error_re

微信二八杠源码》用elasticsearch和kibana 进行简单的实时数据报表分析

微信二八杠源码(h5.hxforum.com) 联系方式170618633533企鹅2952777280 微信Tel17061863533 源码出售,平台出租,房卡出售有意者私聊 elasticsearch公司已经渐渐把ES变成为实时分析的工具,相比solr,es在实用产品化上确实领先很多.ES公司主推的ELK套件就是完成实时日志分析的完整解决方案,其中的kibana是一个简易报表工具,完全针对es进行开发,同类型产品几乎没有竞争者:logstash是日志拉取采集的工具,有很多同类产品,比如fl

微信开发H5十二人牛牛出租源码下载搭建

微信开发H5十二人牛牛出租源码下载搭建h5.fanshubbs.com联系Q1687054422不同于传统的手游商店下载模式,HTML5 手机网页游戏是可以直接运行在微信内置的浏览器里. 先上图,感知一下具体样子: 而我想分享的是我们在具体开发实现过程中,基于微信的Html5 WebApp需要去克服的一些坑:这个小游戏的基本规则是:限定用户每天刮书次数是2次 (自由刮一次和分享后再刮一次),每天都可刮奖为此,我们希望实现的思路首先是限定在只能使用微信中玩,实现代码如下:if (!HttpCont

MongoDB的安装以及快三源码出售搭建

安装步骤:1.快三源码出售搭建:(企 娥:217 1793 408)mongodb-win32-i386-3.0.7.zip 2.解压zip文件到磁盘(注意:英文路径,不要有中文或特殊字符)3.对于解压缩目录可以修改名称(可选)例如:C:\mongodb24.在mongodb文件夹中创建两个子文件夹C:\mongodb2\data //为了存储数据C:\mongodb2\logs //为了存储日志5.在C:\mongodb2\logs中,创建一个日志文件(一个空的文本文件)C:\mongodb2

微信h5三公棋牌游戏源码 完整搭建教程

我们知道,微信h5三公棋牌游戏源码搭建(diguaym.com)联系q-2152876294一般不难直接从物理内存读写数据要比从硬盘读写数据要快的多,因此,我们希望所有数据的读取和写入都在内存完成,而内存是有限的,这样就引出了公众号三公源码(q-2152876294)Linux服务器物理内存与虚拟内存的概念. 物理内存就是系统硬件提供的内存大小,是真正的内存,相对于物理内存,在linux下还有一个虚拟内存的概念,虚拟内存就是为了满足物理内存的不足而提出的策略,它是利用磁盘空间虚拟出的一块逻辑内存

最新微信牛牛源码下载搭建教程

最低配置:linux服务器,系统: CentOS 6.8,内存2G以上,独享5M以上带宽 最新微信牛牛源码QQ:2164097691 地址:h5.hubawl.com <!--{template common/header}--><!--{if $tagname}--><div id="pt" class="bm cl"> <div class="z"> <a href="./&qu

福建十三水房卡源码下载搭建教程

后台版本控制+资源更新步骤 (1)将工程下的res和src目录复制到version/fromSource 目录中 (2)使用cocos2dx命令 把src目录下的js文件转换成jsc文件 在fromSource目录下执行 cocos jscompile -s . -d . (3)删除掉src目录下的js 文件 只保留jsc文件 (4)检查一下fromSource/res是否有loading.js和loading.jsc 如果有把这2个删除掉 不然会出错,这个不需要. (5)检查VersionBu