<?php
/**
* [积分购买视频教程(threed_ckplayer.{modulename})] (C)2014-2099 Powered by 新.睿.社.区.
* Version: 商业版
* Date: 2014-12-3 21:54
*/
if (!defined('IN_DISCUZ')) {
exit('');
}
function getviprule(){
global $_G;
$vip_conf = $_G['cache']['plugin']['threed_vip']['pay_conf'];
$vip_conf_arr = explode("\n",$vip_conf);
$vip_rule=array();
foreach($vip_conf_arr as $k=>$val)
{
$vip_item=array();
$temp_item = explode("|",$val);
$vip_item['name']=$temp_item[0];
$vip_item['gid']=intval($temp_item[1]);
$vip_item['price']=intval($temp_item[2]);
$vip_item['time']=intval($temp_item[3]);
$vip_item['dsp']=$temp_item[4];
$vip_item['reward']=intval($temp_item[5]);
if($vip_item['gid']&&$vip_item['price']){
$vip_rule[$vip_item['gid']]=$vip_item;
}
}
return $vip_rule;
}
function make_request($url, $params , $timeout =30){
set_time_limit(0);
$str="";
if($params!="")
{
foreach ($params as $k=>$v) {
if (is_array($v)) {
foreach ($v as $kv => $vv) {
$str .= '&' . $k . '[' . $kv . ']=' . urlencode($vv);
}
} else {
$str .= '&' . $k . '=' . urlencode($v);
}
}
}
if (function_exists('curl_init')) {
// Use CURL if installed...
$ch = curl_init();
$header=array(
'Accept-Language: zh-cn',
'Connection: Keep-Alive',
'Cache-Control: no-cache'
);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POSTFIELDS, $str);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
if($timeout > 0)curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$result = curl_exec($ch);
$errno = curl_errno($ch);
curl_close($ch);
return $result;
} else {
$context = array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded'."\r\n".
'Content-length: ' . strlen($str),
'content' => $str));
if($timeout > 0)$context['http']['timeout'] = $timeout;
$contextid = stream_context_create($context);
$sock = @fopen($url, 'r', false, $contextid);
if ($sock) {
$result = '';
while (!feof($sock)) {
$result .= fgets($sock, 8192);
}
fclose($sock);
}
else{
return 'TimeOut';
}
}
return $result;
}
//From:www.riscman.com
?>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
个人免签约VIP购买 v2.3-1.rar (70个子文件)
个人免签约VIP购买 v2.3-1
个人免签约VIP购买 v2.3-1
threed_vip
cader.inc.php 347B
installl.inc.php 222B
list.inc.php 3KB
uninstall.php 177B
help.inc.php 347B
payfor.inc.php 3KB
discuz_plugin_threed_vip_SC_UTF8.xml 22KB
function
function_threed.php 3KB
licenysmeg.php 3KB
install.php 999B
threed_vip.inc.php 3KB
uninstalll.inc.php 222B
discuz_plugin_threed_vip_SC_GBK.xml 21KB
myyapmagoo.inc.php 3KB
template
css
ui.css 5KB
licenysmeg.php 3KB
common.css 3KB
vip.css 3KB
layout.css 7KB
images
weixin_gd.png 17KB
alipay_gd.png 17KB
bg_header_01.jpg 7KB
topNavSelected.png 188B
credit.jpg 2KB
line.jpg 1KB
btn_bg.jpg 2KB
bg_header_02.jpg 7KB
alipay.jpg 3KB
weixin.jpg 2KB
icons.png 3KB
credit_erm.jpg 7KB
tenpay.jpg 2KB
circle.jpg 2KB
licenysmeg.php 3KB
weixin_erm.png 56KB
alipay_erm.png 33KB
logo_1.jpg 4KB
tenpay_gd.png 65KB
icon_right.png 737B
icon_error.png 266B
tenpay_erm.jpg.bak 9KB
credit_gd.png 10KB
vipflag_v1.png 3KB
touch
css
ui.css 4KB
licenysmeg.php 3KB
common.css 2KB
vip.css 3KB
layout.css 7KB
images
topNavSelected.png 188B
line.jpg 1KB
btn_bg.jpg 2KB
bg_header_02.jpg 7KB
icons.png 3KB
circle.jpg 2KB
licenysmeg.php 3KB
icon_right.png 737B
icon_error.png 266B
vipflag_v1.png 3KB
list.htm 5KB
index.htm 10KB
pay.htm 2KB
licenysmeg.php 3KB
list.htm 5KB
index.htm 10KB
pay.htm 2KB
licenysmeg.php 3KB
upgrade.php 30B
cofinygs.inc.php 122B
admin.inc.php 3KB
hook.class.php 363B
共 70 条
- 1
qjfgh
- 粉丝: 8
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页