<?php
if(!defined('IN_DISCUZ')) {
exit('Access Denied');
}
function article_list($arr){
global $_G;
include_once libfile('function/portalcp');
if(!$arr) return;
$status = $arr['status'] ? $arr['status'] : intval($_GET['status']);
$pid = $arr['pid'] ? $arr['pid'] : intval($_GET['pid']);
$perpage = $arr['perpage'] ? $arr['perpage'] : 45;
if($pid){
if($status == 4){
$json_sql = "Inner Join ".DB::table('strayer_timing')." AS t ON a.aid = t.data_id Inner Join pre_strayer_picker AS p ON t.pid = p.pid WHERE t.pid='$pid' ";
$p_field = ',t.*,p.name';
}else{
$json_sql = "Inner Join ".DB::table('strayer_picker')." AS p ON p.pid = a.pid WHERE a.pid='$pid' ";
$p_field = ',p.pid,p.pick_cid,p.name';
}
}else{
$json_sql = '';
$s_sql .= ' WHERE 1=1 ';
}
if($status == 0) {
$s_sql .= 'AND a.status < 3';
}else if($status == 1){
$s_sql .= 'AND a.status < 2';
}else if($status !=4){
$s_sql .= " AND a.status=".$status;
}
if($arr['s']){
$s_sql .= " AND a.title like '%".$arr['s']."%' ";
}
$arr['orderby'] = ($arr['orderby'] != 'default' && $arr['orderby']) ? $arr['orderby'] : 'aid';
$order_sql = ' ORDER BY a.'.$arr['orderby'].' '.$arr['ordersc'];
$page = $_GET['page'] ? intval($_GET['page']) : 1;
$start = ($page-1)*$perpage;
$perpages = array($perpage => ' selected');
$mpurl = $arr['mpurl'] ? $arr['mpurl'].'&pid='.$pid : '?'.PICK_GO.'picker_manage&myaction=article_manage&pid='.$pid.'&status='.$status;
$mpurl .= '&p='.$_GET['p'].'&perpage='.$perpage;
$count = article_count($pid,$arr['status'], $arr);
if($count) {
$query = DB::query("SELECT a.*".$p_field." FROM ".DB::table('strayer_article_title')." AS a ".$json_sql.$s_sql.$order_sql." LIMIT $start,$perpage ");
while(($v = DB::fetch($query))) {
$v['full_title'] = $v['title'];
$v['title'] = cutstr(trim($v['title']), 60);
if($v['pic'] > 0){
$v['title'] = $v['title'].' <img src="static/image/filetype/image_s.gif" alt="attach_img" title="'.milu_lang('img_article').'" align="absmiddle">';
}
if($arr['s']){
$v['title'] = str_ireplace($arr['s'], '<span style="color:red">'.$arr['s'].'</span>',$v['title']);
}
$v['dateline'] = dgmdate($v['dateline']);
$v['last_modify'] = $v['last_modify'] ? dgmdate($v['last_modify']) : milu_lang('no_modify');
$v['public_time'] = $v['public_time'] ? dgmdate($v['public_time']) : milu_lang('no_public');
$v['public_dateline'] = $v['public_dateline'] ? dgmdate($v['public_dateline']) : '';
if(!$v['name']){
$pick_info = article_get_picker_info($v['pid']);
$v['name'] = $pick_info['name'];
}
$data['rs'][] = $v;
}
}
$data['multipage'] = multi($count, $perpage, $page, $mpurl);
return $data;
}
function article_get_picker_info($pid, $field = 'name'){
if(!$pid) return array();
return DB::fetch_first("SELECT $field FROM ".DB::table('strayer_picker')." WHERE pid='$pid'");
}
function article_count($pid = 0,$status=0, $args = array()){
if($pid){
if($status == 4){
$json_sql = "Inner Join ".DB::table('strayer_timing')." AS t ON a.aid = t.data_id WHERE t.pid='$pid' ";
$p_field = ',t.*';
}else{
$json_sql = "Inner Join ".DB::table('strayer_picker')." AS p ON p.pid = a.pid WHERE a.pid='$pid'";
$p_field = ',p.pid,p.pick_cid,p.name';
}
}else{
$json_sql = '';
$sql .= ' WHERE 1=1 ';
}
if($status == 0) {
$sql .= 'AND a.status < 10';
}else if($status == 1){
$sql .= 'AND a.status < 2';
}else if($status != 4){
$sql .= " AND a.status=".$status;
}
if($args['s']){
$sql .= " AND a.title like '%".$args['s']."%' ";
}
return DB::result(DB::query("SELECT COUNT(*) FROM ".DB::table('strayer_article_title')." AS a $json_sql ".$sql), 0);
}
function get_timing_count($pid = 0){
if($pid) $where = " WHERE pid='$pid'";
return DB::result(DB::query("SELECT COUNT(*) FROM ".DB::table('strayer_timing').$where), 0);
}
function get_timing_data($args = array()){
global $_G;
$pid = $args['pid'] ? $args['pid']: $_GET['pid'];
$count = get_timing_count($pid);
if($count) {
}
}
function article_info($aid){
$arr = DB::fetch_first("SELECT * FROM ".DB::table('strayer_article_title')." WHERE aid='$aid'");
if(!$arr) return FALSE;
if($arr['aid']){
$query = DB::query("SELECT * FROM ".DB::table('strayer_article_content')." WHERE aid='".$arr['aid']."' ");
while(($v = DB::fetch($query))) {
if($v['pageorder'] == 1){
$c_arr = $v;
}else{
$reply_arr[] = $v;
}
$content_arr[] = $v;
}
}
$re_arr = array_merge($arr, $c_arr);
$re_arr['reply'] = dstripslashes($reply_arr);
$re_arr['content'] = dstripslashes($re_arr['content']);
$re_arr['content_arr'] = dstripslashes($content_arr);
return $re_arr;
}
//编辑文章
function article_edit(){
global $_G;
include_once libfile('function/portalcp');
include_once libfile('function/spacecp');
include_once libfile('function/home');
require_once libfile('function/forumlist');
pload('F:spider');
if($_GET['submit']){
$setarr = $_GET['set'];
if(check_uid($setarr['uid']) == 'no') cpmsg_error(milu_lang('user_no_exists'));
$pick_common_set = get_pick_set();
$pid = intval($_GET['pid']);
$p_arr = get_pick_info($pid);
$setarr['portal_cid'] = $_GET['portal'];
$setarr['forum_fid'] = $_GET['forums'];
$setarr['forum_typeid'] = $_GET['threadtypeid'];
$setarr['blog_big_cid'] = $_GET['blog'];
$setarr['blog_small_cid'] = $_GET['classid'];
$setarr['title'] = getstr(trim($setarr['title']), 80, 1, 1);
if(strlen($setarr['title']) < 1) {
cpmsg_error(milu_lang('title_no_empty'));
}
if(empty($setarr['summary'])) $setarr['summary'] = portalcp_get_summary(stripslashes($_GET['message']));
$set_arr['summary'] = addslashes($setarr['summary']);
$setarr['public_time'] = strtotime($setarr['public_time']);
$setarr['from'] = dhtmlspecialchars($setarr['from']);
$setarr['article_tag'] = dhtmlspecialchars($setarr['article_tag']);
$setarr['fromurl'] = str_replace('&', '&', dhtmlspecialchars($setarr['fromurl']));
$aid = intval($_GET['aid']);
$pid = intval($_GET['pid']);
$status = intval($_GET['status']);
$relatedarr = array();
if($_GET['raids']){
$relatedarr = array_map('intval', $_GET['raids']);
$relatedarr = array_unique($relatedarr);
$relatedarr = array_filter($relatedarr);
$setarr['raids'] = serialize($relatedarr);
}
$setarr['tag'] = article_make_tag($_GET['tag']);
$setarr['last_modify'] = $_G['timestamp'];
$user_info = get_user_info($setarr['uid']);
$setarr['username'] = $user_info['username'];
$article_arr = $setarr;
DB::update('strayer_article_title', paddslashes($setarr), array('aid' => $aid));
$article_arr['is_download_img'] = $setarr['is_download_img'];
$article_arr['is_water_img'] = $setarr['is_water_img'];
$setarr = array();
$content = $_GET['message'];
if(!$_GET['is_bbs']){
$regexp = '/(###NextPage(\[title=(.*?)\])?###)+/';
preg_match_all($regexp, $content ,$arr);
$contents = preg_split($regexp, $content);
DB::delete('strayer_article_content', "aid='$aid'");
foreach($contents as $k => $v){
$v = dstripslashes($v);
$setarr['content'] = trim($v);
$setarr['pageorder'] = $k+1;
$setarr['aid'] = $aid;
$setarr['dateline'] = $_G['timestamp'];
$article_arr['content_arr'][$k] = $setarr;
DB::insert("strayer_article_content", paddslashes($setarr), true);
}
}else{//如果是带回复的
$setarr['content'] = trim($content);
$setarr = dstripslashes($setarr);
DB::update("strayer_article_content", paddslashes($setarr), array('aid' => $aid, 'pageorder' => 1));
}
$setarr = array();
$article_view_url = '';
if($_GET['public_flag']){
$select = $_GET['select'];
$article_arr['is_bbs'] = $_GET['is_bbs'];
$article_arr['contents'] = $article_arr['is_bbs'] ? 1 : count($contents)
没有合适的资源?快使用搜索试试~ 我知道了~
dxc采集插件商业版 破解
共99个文件
php:42个
htm:37个
gif:6个
2星 需积分: 9 24 下载量 145 浏览量
2013-04-09
22:44:37
上传
评论
收藏 529KB RAR 举报
温馨提示
DXC采集最新商业版,网上的其他都是假的,这个是真的 这个才是真的,真的,真的,真的
资源推荐
资源详情
资源评论
收起资源包目录
milu_pick.rar (99个子文件)
config.inc.php 7KB
member.inc.php 699B
pick_info.inc.php 5KB
upgrade.php 12KB
virtual_data.inc.php 1KB
install.php 841B
lib
function.article.php 84KB
cache.class.php 8KB
cron.class.php 7KB
pick.class.php 56KB
function.seo.php 2KB
function.member.php 50KB
lastRSS.class.php 9KB
phprpc
phprpc_server.php 17KB
compat.php 8KB
phprpc_client.php 22KB
bigint.php 19KB
phprpc_date.php 17KB
xxtea.php 5KB
function.spider.php 34KB
makeScore.class.php 2KB
function.http.php 10KB
simple_html_dom.php 53KB
function.copyright.php 18KB
Snoopy.class.php 38KB
function.fastpick.php 16KB
function.output.php 15KB
function.global.php 54KB
function.rules.php 11KB
function.pick.php 29KB
servicesJSON.class.php 34KB
HtmlExtractor.class.php 20KB
help.inc.php 175B
discuz_plugin_milu_pick_TC_UTF8.xml 85KB
discuz_plugin_milu_pick_SC_UTF8.xml 85KB
seo.inc.php 467B
discuz_plugin_milu_pick_SC_GBK.xml 76KB
discuz_plugin_milu_pick_TC_BIG5.xml 76KB
template
pick_online.htm 4KB
rules_list.htm 4KB
rules_share.htm 4KB
pick_info.htm 4KB
article_manage.htm 13KB
picker_list.htm 9KB
common_get_content.htm 22KB
common_get_page.htm 3KB
rules_edit.htm 7KB
pick_import.htm 3KB
avatar_set.htm 3KB
member_edit.htm 10KB
member_public_set.htm 6KB
fastpick_share.htm 3KB
article_edit.htm 11KB
system_rules_header.htm 2KB
picker_category_del.htm 1KB
seo_set.htm 5KB
help.htm 122B
fastpick_import.htm 2KB
fastpick_evo.htm 3KB
member_public.htm 1KB
rules_import.htm 2KB
avatar_get.htm 1KB
fastpick_manage.htm 4KB
member_get.htm 1KB
picker_edit.htm 37KB
fastpick_evo_log.htm 2KB
member_list.htm 6KB
fastpick_edit.htm 5KB
pick_header.htm 1KB
virtualdata_set.htm 4KB
get_article.htm 2KB
fastpick_set.htm 3KB
member_set.htm 6KB
data
log
index.htm 4B
word.dat 330KB
gb-big5.table 48KB
cache
a9
96
96
a99696c9d504759b3e7cd00df2744f6d.cache.php 196B
index.htm 4B
data.sql 25KB
big5-gb.table 48KB
fast_pick.inc.php 797B
version.php 32B
uninstall.php 481B
system_rules.inc.php 787B
milu_pick.class.php 15KB
picker_manage.inc.php 20KB
picker_create.inc.php 4KB
static
jquery-1.6.2.min.js 89KB
fast_pick.js 6KB
phprpc_client.js 18KB
image
s1.gif 594B
s2.gif 594B
s4.gif 595B
vip.gif 504B
sign.gif 307B
s3.gif 592B
button_bg_my.png 3KB
inc.js 35KB
style.css 11KB
共 99 条
- 1
资源评论
- rat9yc2013-04-10是个骗子,就是2.5的免费版 坑爹
- cy201202022014-06-15不知是不是真的商业版
u010232872
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功