<?php
if($_GET['get_uids']==1){
$reward_view = json_encode(odz_encode(reward_info($_GET['uid'])));
echo $reward_view;exit;
}
require_once libfile('function/forumlist');
require_once libfile('function/discuzcode');
require_once libfile('function/post');
require_once 'includes/functions/discuzcode.php';
require_once 'includes/video.php';
odz_loadforum();
if($_GET['viewthread_share']){
$_G['ppp'] = 11;//分享页 每页回帖数量10条
}else{
$_G['ppp'] = 20;//每页回帖数量20条
}
$thread = & $_G['forum_thread'];
$forum = & $_G['forum'];
$page = max(1, $_G['page']);
//版块密码验证
if($_G['forum']['password']) {
if(empty($_GET['pw'])){
//need password
view_pwd_showmessage();
}
if($_GET['pw'] != $_G['forum']['password']) {
view_pwd_showmessage(true);
}
}
//if($_G['setting']['cachethreadlife'] && $_G['forum']['threadcaches'] && !$_G['uid'] && $page == 1 && !$_G['forum']['special'] && empty($_GET['do']) && !defined('IN_ARCHIVER') && !defined('IN_MOBILE')) {
// viewthread_loadcache();
//}
// xj_event报名
if(in_array('xj_event', $_G['setting']['plugins']['available'])) {
loadcache('plugin');
$tid = $_G['tid'];
$uid = $_G['uid'];
$timestamp = time();
$extcredits = $_G['setting']['extcredits'];
$items = DB::fetch(DB::query("SELECT * FROM ".DB::table('xj_event')." WHERE tid = '$_G[tid]'"));
$setting = unserialize($items['setting']);
// $event_count = DB::result_first("SELECT count(*) FROM ".DB::table('xj_eventapply')." WHERE tid = '$tid' and uid = ".$_G['uid']);
//活动专题跳转判断
// if(!checkmobile()){
// if($setting['project']['openproject'] && (($_G['groupid']>1 && $_G['uid'] != $items['uid']) || !$_G['uid'])){
// if($setting['project']['openprojectauto']){
// header("Location: plugin.php?id=xj_event:project_show&tid=$tid");
// }
// }
// }
if($items['postclass']==1){
$postclass = lang('plugin/xj_event', 'xxhd');
$tmp = explode("\n",$_G['cache']['plugin']['xj_event']['event_offline_class']);
foreach($tmp as $key=>$value){
$eventclass = explode("|",$value);
if($eventclass[0] == $items['offlineclass']){
break;
}
}
}else{
$postclass = lang('plugin/xj_event', 'xshd');
$tmp = explode("\n",$_G['cache']['plugin']['xj_event']['event_online_class']);
foreach($tmp as $key=>$value){
$eventclass = explode("|",$value);
if($eventclass[0] == $items['onlineclass']){
break;
}
}
}
foreach($extcredits as $key=>$value){
if($key == $items['use_extcredits']){
$extcredit_title = $value['title'];
}
}
$citys = $items['citys'];
$starttime = dgmdate($items['starttime'],'dt');
$endtime = dgmdate($items['endtime'],'dt');
$activityexpiration = dgmdate($items['activityexpiration'],'dt');
if(!$items['activityaid'] and $items['activityaid_url']){
$imgurl = $items['activityaid_url'];
}else{
//$imgurl = $this->_getpicurl($items['activityaid'],$tid);
$imgurl = getforumimg($items['activityaid'],0,360,230,'fixnone');
}
$userfield = unserialize($items['userfield']);
$selectuserfield = unserialize($items['userfield']);
if($selectuserfield) {
if($selectuserfield) {
$htmls = $settings = array();
require_once libfile('function/profile');
foreach($selectuserfield as $fieldid) {
if(empty($ufielddata['userfield'])) {
$memberprofile = C::t('common_member_profile')->fetch($_G['uid']);
foreach($selectuserfield as $val) {
if($val == 'birthday'){
$ufielddata['userfield']['birthyear'] = $memberprofile['birthyear'];
$ufielddata['userfield']['birthmonth'] = $memberprofile['birthmonth'];
}
$ufielddata['userfield'][$val] = $memberprofile[$val];
}
unset($memberprofile);
}
$html = profile_setting($fieldid, $ufielddata['userfield'], false, true);
if($html) {
$settings[$fieldid] = $_G['cache']['profilesetting'][$fieldid];
$htmls[$fieldid] = $html;
}
}
}
} else {
$selectuserfield = '';
}
$hg = DB::fetch_first("SELECT * FROM ".DB::table('xj_eventthread')." WHERE eid=".intval($items['eid'])." and sort=1");
//报名通过总人数
$applycountnumber = DB::result_first("SELECT SUM(applynumber) FROM ".DB::table('xj_eventapply')." WHERE tid='$tid' and verify=1");
$applycountnumber = !$applycountnumber?0:$applycountnumber;
$applycountnumberd = DB::result_first("SELECT SUM(applynumber) FROM ".DB::table('xj_eventapply')." WHERE tid='$tid' and verify=0");
$applycountnumberd = !$applycountnumberd?0:$applycountnumberd;
//报名时可能选择的人数
$items['event_number_max'] = $items['event_number_max']>0?$items['event_number_max']:1;
$applynumber = array();
for($i=1;$i<=$items['event_number_max'];$i++){
$applynumber[] = $i;
}
//报名审核状态
$apply = DB::fetch_first("SELECT applyid,pay_state,verify,seccode FROM ".DB::table('xj_eventapply')." WHERE tid='$tid' and uid=".$_G['uid']);
$verify = $apply['verify'];
$pay_state = $apply['pay_state'];
//判断是不是管理团队
$event_admin = false;
if($_G['username']){
if(in_array($_G['username'],$setting['event_admin'])){
$event_admin = true;
}
}
//活动管理列表
$event_adminlist = implode(',',$setting['event_admin']);
}
$threadtableids = !empty($_G['cache']['threadtableids']) ? $_G['cache']['threadtableids'] : array();
$threadtable_info = !empty($_G['cache']['threadtable_info']) ? $_G['cache']['threadtable_info'] : array();
$archiveid = $thread['threadtableid'];
$thread['is_archived'] = $archiveid ? true : false;
$thread['archiveid'] = $archiveid;
$forum['threadtableid'] = $archiveid;
$threadtable = $thread['threadtable'];
$posttableid = $thread['posttableid'];
$posttable = $thread['posttable'];
$_G['action']['fid'] = $_G['fid'];
$_G['action']['tid'] = $_G['tid'];
if($_G['fid'] == $_G['setting']['followforumid'] && $_G['adminid'] != 1) {
view_showmessage('post_not_found');
}
$_GET['authorid'] = !empty($_GET['authorid']) ? intval($_GET['authorid']) : 0;
$_GET['ordertype'] = !empty($_GET['ordertype']) ? intval($_GET['ordertype']) : 0;
$_GET['from'] = $_G['setting']['portalstatus'] && !empty($_GET['from']) && $_GET['from'] == 'portal' ? 'portal' : '';
$fromuid = $_G['setting']['creditspolicy']['promotion_visit'] && $_G['uid'] ? '&fromuid='.$_G['uid'] : '';
$feeduid = $_G['forum_thread']['authorid'] ? $_G['forum_thread']['authorid'] : 0;
$feedpostnum = $_G['forum_thread']['replies'] > $_G['ppp'] ? $_G['ppp'] : ($_G['forum_thread']['replies'] ? $_G['forum_thread']['replies'] : 1);
if(!empty($_GET['extra'])) {
parse_str($_GET['extra'], $extra);
$_GET['extra'] = array();
foreach($extra as $_k => $_v) {
if(preg_match('/^\w+$/', $_k)) {
if(!is_array($_v)) {
$_GET['extra'][] = $_k.'='.rawurlencode($_v);
} else {
$_GET['extra'][] = http_build_query(array($_k => $_v));
}
}
}
$_GET['extra'] = implode('&', $_GET['extra']);
}
// 板块列表
$forumselect = forumselect();
$pattern = '/<optgroup.*?>/i';
$forumselect = preg_replace($pattern, '', $forumselect);
$aimgs = array();
$skipaids = array();
$thread['subjectenc'] = rawurlencode($_G['forum_thread']['subject']);
$thread['short_subject'] = cutstr($_G['forum_thread']['subject'], 52);
$_GET['extra'] = $_GET['extra'] ? rawurlencode($_GET['extra']) : '';
if(@in_array('forum_viewthread', $_G['setting']['rewritestatus'])) {
$canonical = rewriteoutput('forum_viewthread', 1, '', $_G['tid'], 1, '', '');
} else {
$canonical = 'forum.php?mod=viewthread&tid='.$_G['tid'];
}
$_G['forum_tagscript'] = '';
$threadsort = $thread['sortid'] && isset($_G['forum']['threadsorts']['types'][$thread['sortid']]) ? 1 : 0;
if($threadsort) {
require_once libfile('function/threadsort');
require_once 'includes/functions/threadsort.php';
$threadsortshow = odz_threadsortshow($thread['sortid'], $_G['tid']);
}
if(empty($_G['forum']['allowview'])) {
if(!$_G['forum']['viewperm'] && !$_G['group']['readaccess']) {
//针对h5页面页面提示特殊处理
view_showme
没有合适的资源?快使用搜索试试~ 我知道了~
discuz论坛小程序
共471个文件
png:255个
php:124个
ds_store:46个
5星 · 超过95%的资源 需积分: 38 124 下载量 23 浏览量
2018-12-05
00:55:47
上传
评论 10
收藏 4.12MB ZIP 举报
温馨提示
discuz论坛小程序,非常简单好用。
资源推荐
资源详情
资源评论
收起资源包目录
discuz论坛小程序 (471个子文件)
mods.css.bak 20KB
style_3.css.bak 5KB
mods.css 19KB
share_pages.css 15KB
style.css 10KB
activity.css 8KB
style_3.css 8KB
poshare.css 6KB
style.css 4KB
invite_style.css 3KB
shake.css 3KB
style.css 2KB
credits_detail.css 2KB
reward.css 1KB
.DS_Store 12KB
.DS_Store 10KB
.DS_Store 10KB
.DS_Store 8KB
.DS_Store 8KB
.DS_Store 8KB
.DS_Store 8KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
._.DS_Store 120B
default.gif 4KB
loading.gif 2KB
star_level3.gif 627B
star_level1.gif 547B
jinhu.jpg 162KB
xiaoma.jpg 63KB
weather.jpg 17KB
a1.jpg 2KB
a3.jpg 2KB
jquery-1.8.3.min.js 91KB
jquery-1.8.3.min.js 91KB
jquery-1.8.0.min.js 90KB
jquery.min.js 82KB
iscroll.js 50KB
h5_2.min.js 42KB
h5_2.min1.js 37KB
fastclick.js 25KB
h5_3.min.js 11KB
jweixin-1.0.0.js 10KB
commondz.js 9KB
shake.js 4KB
jquery.lazyload.min.js 3KB
big.image.js 1KB
common.js 1KB
cacert.pem 224KB
viewthread.php 80KB
function.php 70KB
editpost_25.php 60KB
util.php 38KB
member.php 38KB
newthread.php 36KB
IRI.php 36KB
discuz_application.php 36KB
newreply.php 30KB
Requests.php 26KB
get_editpost.php 25KB
editpost_30.php 24KB
video.php 24KB
threadsort.php 23KB
editpost_301.php 20KB
共 471 条
- 1
- 2
- 3
- 4
- 5
资源评论
- canoegao2019-08-13不错哦,再下载一次
cgreatworld
- 粉丝: 1
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功