webmain/model/flow/subscribeinfoModel.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
//订阅的
class flow_subscribeinfoClassModel extends flowModel
{
public function flowrsreplace($rs, $lx=0)
{
$filepath = $rs['filepath'];
if(!file_exists(iconv('utf-8','gb2312',$filepath))){
$filepath = '文件不存在了';
$rs['ishui']= 1;
}else{
$filepath = '<a href="'.URL.''.$filepath.'"';
if(!$this->rock->ismobile())$filepath.=' target="_blank"';
$filepath .= '>打开</a>';
}
$rs['filepath'] = $filepath;
return $rs;
}
/**
* 订阅运行发送
*/
public function subscribe($id, $nowid=0, $receid='', $recename='')
{
$rs = $this->db->getone('[Q]subscribe','`id`='.$id.'');
if(!$rs)return returnerror('不存在');
if($rs['status']=='0')return returnerror('未启用不能运行');
$title = $rs['title']; //订阅标题
$cont = $rs['cont']; //提醒内容
$suburl = $this->rock->jm->base64decode($rs['suburl']);
$suburlpost = $this->rock->jm->base64decode($rs['suburlpost']);
if(isempt($suburl) || isempt($suburlpost))return;
$base = m('base');
$suburlpost = $base->strreplace($suburlpost,0,1);
$title = $base->strreplace($title,0,1);
$cont = $base->strreplace($cont,0,1);
$url = getconfig('localurl', URL).$suburl;
//请求参数处理
$params = array();
$canarr = explode('&', $suburlpost);
foreach($canarr as $csnstr){
$nets = explode('=', $csnstr);
$params[$nets[0]] = $nets[1];
}
if($nowid==0)$nowid = $rs['optid'];
$params['exceltitle'] = $title;
$params['exceltype'] = 'html';
$params['tablename_abc'] = $this->rock->jm->encrypt($params['tablename_abc']);
$params['exceltitle'] = $this->rock->jm->encrypt($params['exceltitle']);
$params['excelfields'] = $this->rock->jm->encrypt($params['excelfields']);
$params['excelheader'] = $this->rock->jm->encrypt($params['excelheader']);
后面还有 50 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
