<?php
define('DUOXUN', TRUE);
require_once('./global.php');
if(!$mod || !in_array($mod, array('news', 'article', 'down', 'flash', 'music', 'pic', 'shop', 'video')) || !$id || !is_numeric($id)) {
echo '<script language="JavaScript">top.location.href="list.php?news"</script>';
exit;
}
require_once(DUOXUN_ROOT.'include/ip.func.php');
require_once(DUOXUN_ROOT.'include/common.inc.php');
$index_link = file_exists(DUOXUN_ROOT.'index.html') ? DUOXUN_ROOT.'index.html' : DUOXUN_ROOT.'index.php';
switch($mod) {
case 'news':
news();
break;
case 'article':
article();
break;
case 'down':
down();
break;
case 'flash':
flash();
break;
case 'music':
music();
break;
case 'pic':
pic();
break;
case 'shop':
shop();
break;
case 'video':
video();
break;
}
$sql_ = " AND ifshow='1'";
if($_DCOOKIE['username'] && $_DCOOKIE['cklife'] && $_DCOOKIE['administrator']) {
if(logincheck()) $sql_ = '';
}
function news() {
global $db,$id,$set_news,$time_zone;
global $show,$sort_nav,$nav,$near_topic;
hit('news',$id);
$show = $db->get_one("SELECT postdate,author,itfrom,subject,authorip,content,hits,hitweek,hitmonth,hittoday,outshow FROM duoxun_news WHERE nid='$id'");
if(!$show) {
echo '<script language="JavaScript">top.location.href="list.php?news"</script>';
exit;
}
if($show['outshow']) {
echo '<script language="JavaScript">top.location.href="'.$show['outshow'].'"</script>';
exit;
}
$near_topic = near_topic('news','',$show['postdate']);
$show['postdate'] = gmdate("Y年m月d日", $show['postdate']+$time_zone);
$show['author'] = $show['author'] ? '作者:<a href="member.php?id='.urlencode($show['author']).'" target="_blank">'.$show['author'].'</a> ' : '';
$show['subject'] = fbword($show['subject']);
$show['content'] = fbword($show['content']);
$sort_nav = sort_nav(0, 0);
$link = file_exists(DUOXUN_ROOT.'news.html') ? DUOXUN_ROOT.'news.html' : 'list.php?news';
$nav = '<a href="'.$link.'" onmouseover="sortmenu(event,\''.$sort_nav.'\',0);" onmouseout="delayhidemenu();">'.$set_news.'</a> → '.$show['subject'];
$show['comment'] = '';
$hit = master() ? '(总|月|周|日)点击:'.$show['hits'].'|'.$show['hitmonth'].'|'.$show['hitweek'].'|'.$show['hittoday'] : '';
$ipfrom = master() ? '作者来自:'.ipfrom($show['authorip']).'('.$show['authorip'].')' : '';
$show['show'] = master() ? $hit.' '.$ipfrom : '';
}
function article() {
global $db,$id,$page,$sort_all,$time_zone,$sql_;
global $show,$pagination,$sort_nav,$nav,$near_topic;
$page = $page ? $page : 1;
if($page == 1) {
hit('article',$id);
}
$show = $db->get_one("SELECT sid,author,subject,itfrom,postdate,authorip,cnum,outshow,showtype FROM duoxun_article WHERE sortshow='1'$sql_ AND id='$id'");
if(!$show) {
echo '<script language="JavaScript">top.location.href="list.php?news"</script>';
exit;
}
if($show['outshow']) {
echo '<script language="JavaScript">top.location.href="'.$show['outshow'].'"</script>';
exit;
}
$show['subject'] = fbword($show['subject']);
$show['author'] = $show['author'] ? '作者:<a href="member.php?id='.urlencode($show['author']).'" target="_blank">'.$show['author'].'</a> ' : '';
$near_topic = near_topic('article',$show['sid'],$show['postdate']);
$_sql = $page ? " AND pid='$page'" : "";
$showtype = $show['showtype'];
$rs = $db->get_one("SELECT aid,postdate,hits,hitweek,hitmonth,hittoday,content FROM duoxun_content WHERE tid='$id'$_sql ORDER BY pid $showtype,postdate DESC");
hit('content',$rs['aid']);
$show['postdate'] = gmdate("Y年m月d日", $rs['postdate']+$time_zone);
$show['hits'] = $rs['hits'];
$show['hitweek'] = $rs['hitweek'];
$show['hitmonth'] = $rs['hitmonth'];
$show['hittoday'] = $rs['hittoday'];
if($rs['content']) {
$show['content'] = fbword($rs['content']);
} else {
echo '<script language="JavaScript">top.location.href="list.php?news"</script>';
exit;
}
$show['comment'] = '<a href="comment.php?mod=article&id='.$id.'#post" target="_blank"><font color="#BF1212">我要评论('.$show['cnum'].')</font></a>';
$hit = master() ? '(总|月|周|日)点击:'.$show['hits'].'|'.$show['hitmonth'].'|'.$show['hitweek'].'|'.$show['hittoday'] : '';
$ipfrom = master() ? '作者来自:'.ipfrom($show['authorip']).'('.$show['authorip'].')' : '';
$show['show'] = master() ? $hit.' '.$ipfrom : '';
//分页开始
$rs = $db->get_one("SELECT COUNT('aid') AS count FROM duoxun_content WHERE tid='$id'");
$num = $rs['count'];
if($num > 1) {
if($sort_all[$show['sid']]['allowhtm']) {
$pagination = '<div align="center">';
for($i = 1;$i <= $num;$i++) {
if($i == $page && $i == 1) {
$pagination .= '<a href="'.$show['sid'].'_'.$id.'.html"><font color="red"><b>第'.$i.'页</b></font></a> ';
} elseif($i == $page && $i != 1) {
$pagination .= '<a href="'.$show['sid'].'_'.$id.'_'.$i.'.html"><font color="red"><b>第'.$i.'页</b></font></a> ';
} elseif($i != $page && $i == 1) {
$pagination .= '<a href="'.$show['sid'].'_'.$id.'.html">第'.$i.'页</a> ';
} else {
$pagination .= '<a href="'.$show['sid'].'_'.$id.'_'.$i.'.html">第'.$i.'页</a> ';
}
}
$pagination .= '</div>';
} else {
$perpage = 1;
$url = 'show.php?mod=article&id='.$id.'&';
$pagination = $num > 1 ? pagination($num, $perpage, $url) : false;
}
}
//分页结束
$sid = $show['sid'];
$sort_nav = sort_nav($sid,0);
$nav = nav($sid).' → '.$show['subject'];
}
function down() {
global $db,$id,$set_list_left_num,$sort_all,$set_list_left_length,$_CACHE,$time_zone,$sql_,$sort_all;
global $topdb,$bottomdb,$top_title,$bottom_title,$show,$near_topic,$sort_nav,$nav;
hit('down',$id);
$rs = $db->get_one("SELECT sid FROM duoxun_down WHERE sortshow='1'$sql_ AND id='$id'");
if(!$rs) {
echo '<script language="JavaScript">top.location.href="list.php?news"</script>';
exit;
}
$sid = $rs['sid'];
$sort_nav = sort_nav($sid,0);
$_id = _id($sid);
$query_top = $db->query("SELECT id,sid,subject,color,extra FROM duoxun_down WHERE sortshow='1' AND ifshow='1' AND sid='$sid' ORDER BY downweek DESC,postdate DESC LIMIT $set_list_left_num");
$query_bottom = $db->query("SELECT id,sid,subject,color,extra FROM duoxun_down WHERE sortshow='1' AND ifshow='1' AND sid IN ($_id) ORDER BY downmonth DESC,postdate DESC LIMIT $set_list_left_num");
while($rs = $db->fetch_array($query_top)) {
$sort_name = $sort_all[$rs['sid']]['name'];
$rs['title'] = '所属分类:'.$sort_name.'
标题:'.$rs['subject'];
$rs['subject'] = fbword($rs['subject']);
$rs['subject'] = cutstr($rs['subject'], $set_list_left_length);
if($rs['extra']) $rs['subject'] = '<'.$rs['extra'].'>'.$rs['subject'].'</'.$rs['extra'].'>';
if($rs['color']) $rs['subject'] = '<font color="'.$rs['color'].'">'.$rs['subject'].'</font>';
$rs['url'] = $sort_all[$rs['sid']]['allowhtm'] && file_exists(DUOXUN_ROOT.$rs['sid'].'_'.$rs['id'].'.html') ? DUOXUN_ROOT.$rs['sid'].'_'.$rs['id'].'.html' : 'show.php?mod=down&id='.$rs['id'];
$topdb[] = $rs;
}
while($rs = $db->fetch_array($query_bottom)) {
$sort_name = $sort_all[$rs['sid']]['name'];
$rs['title'] = '所属分类:'.$sort_name.'
标题:'.$rs['subject'];
$rs['subject'] = fbword($rs['subject']);
$rs['subject'] = cutstr($rs['subject'], $set_list_left_length);
if($rs['extra']) $rs['subject'] = '<'.$rs['extra'].'>'.$rs['subject'].'</'.$rs['extra'].'>';
if($rs['color']) $rs['subject'] = '<font color="'.$rs['color'].'">'.$rs['subject'].'</font>';
$rs['url'] = $sort_all[$rs['sid']]['allowhtm'] && file_exists(DUOXUN_ROOT.$rs['sid'].'_'.$rs['id'].'.html') ? DUOXUN_ROOT.$rs['sid'].'_'.$rs['id'].'.html' : 'show.php?mod=down&id='.$rs['id'];
$bottomdb[] = $rs;
}
$top_title = '<strong>'.$sort_all[$sid]['name'].'周下载<font color="#FFFF66">TOP'.$set_list_left_num.'</font></strong>';
switch($sort_all[$sid]['type']) {
case 'A':
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
收起资源包目录
基于CMS实现的Duoxun! v3.0 开源版_duoxun3(使用说明+源代码+html).zip (404个子文件)
spellchecker.cfm 5KB
fck_editor.css 8KB
fck_editor.css 8KB
fck_editor.css 8KB
fck_dialog.css 2KB
fck_dialog.css 2KB
fck_dialog.css 2KB
fck_editorarea.css 2KB
fck_internal.css 2KB
browser.css 2KB
fck_dialog_common.css 2KB
fck_showtableborders_gecko.css 1KB
fck_universalkey.css 1KB
spellerStyle.css 888B
wry.dat 5.48MB
Thumbs.db 59KB
Thumbs.db 28KB
Thumbs.db 3KB
noimg.gif 1.39MB
fck_strip.gif 8KB
key.gif 5KB
fck_strip.gif 4KB
fck_strip.gif 4KB
FLASH_BJ.GIF 4KB
title_bg.gif 4KB
logo.gif 4KB
keyboard_layout.gif 3KB
logo_fckeditor.gif 2KB
htm.gif 1KB
html.gif 1KB
rdp.gif 1KB
ai.gif 1KB
embaressed_smile.gif 1KB
download.gif 1KB
teeth_smile.gif 1KB
shades_smile.gif 1KB
tounge_smile.gif 1KB
wink_smile.gif 1KB
sad_smile.gif 1KB
icon_err.gif 1KB
icon_err.gif 1KB
regular_smile.gif 1KB
whatchutalkingabout_smile.gif 1KB
envelope.gif 1KB
heart.gif 1012B
thumbs_down.gif 992B
thumbs_up.gif 989B
kiss.gif 978B
pinglun2.gif 966B
fla.gif 946B
pinglun_bg.gif 932B
logo_fredck.gif 920B
toolbar.buttonbg.gif 829B
swf.gif 725B
swt.gif 724B
bmp.gif 709B
gif.gif 704B
email.gif 671B
pinglun.gif 663B
folderopen.gif 662B
folderclose.gif 632B
htm.gif 621B
html.gif 621B
rdp.gif 606B
fck_flashlogo.gif 599B
top_close.gif 588B
top_open.gif 586B
pdf.gif 567B
cry_smile.gif 473B
jpg.gif 463B
avi.gif 454B
mp3.gif 454B
angry_smile.gif 453B
cake.gif 453B
angel_smile.gif 445B
devil_smile.gif 444B
home.gif 441B
broken_heart.gif 423B
template3.gif 422B
xml.gif 408B
ai.gif 403B
bookmark.gif 396B
swt.gif 388B
swf.gif 388B
fla.gif 382B
template1.gif 375B
zip.gif 368B
omg_smile.gif 342B
icon_ok.gif 334B
icon_ok.gif 334B
template2.gif 333B
confused_smile.gif 322B
lightbulb.gif 303B
Folder32.gif 281B
vsd.gif 277B
title_bg_hide.gif 275B
title_bg_show.gif 275B
mdb.gif 274B
js.gif 274B
xls.gif 271B
共 404 条
- 1
- 2
- 3
- 4
- 5
资源评论
CrMylive.
- 粉丝: 1w+
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot和Vue的高性能售票系统.zip
- (源码)基于Windows API的USB设备通信系统.zip
- (源码)基于Spring Boot框架的进销存管理系统.zip
- (源码)基于Java和JavaFX的学生管理系统.zip
- (源码)基于C语言和Easyx库的内存分配模拟系统.zip
- (源码)基于WPF和EdgeTTS的桌宠插件系统.zip
- (源码)基于PonyText的文本排版与预处理系统.zip
- joi_240913_8.8.0_73327_share-2EM46K.apk
- Library-rl78g15-fpb-1.2.1.zip
- llvm-17.0.1.202406-rl78-elf.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功