<?php
require_once('global.php');
require_once(R_P.'require/forum.php');
include_once(D_P.'data/bbscache/forum_cache.php');
$groupid == 'guest' && Showmsg('not_login');
$fiddb = array();
InitGP(array('action'));
if ($action) {
!$fid && Showmsg('data_error');
$forums = $db->get_one("SELECT f.name,f.forumadmin,f.fupadmin,fe.forumset FROM pw_forums f LEFT JOIN pw_forumsextra fe USING(fid) WHERE f.fid=".pwEscape($fid)." AND f.type!='category'");
!$forums && Showmsg('data_error');
if (!in_array($groupid,array('3','4')) && !admincheck($forums['forumadmin'],$forums['fupadmin'],$windid)) {
Showmsg('not_forumadmin');
}
$forumset = unserialize($forums['forumset']);
$first_admin = $db_adminset && strpos($forums['forumadmin'],",".$windid.",")===0 ? 1 : 0;
} else {
$query = $db->query("SELECT fid,forumadmin,fupadmin FROM pw_forums WHERE cms=0 AND type!='category'");
while ($rt = $db->fetch_array($query)) {
if (in_array($groupid,array('3','4')) || admincheck($rt['forumadmin'],$rt['fupadmin'],$windid)) {
$fiddb[] = $rt['fid'];
}
}
!$fiddb && Showmsg('not_forumadmin');
}
require_once(R_P.'require/header.php');
if (!$action) {
$forum_name = '';
$fids = pwImplode($fiddb);
$froumdb = array();
$query = $db->query("SELECT * FROM pw_forums f LEFT JOIN pw_forumdata fd USING(fid) WHERE f.fid IN($fids)");
while ($rt = $db->fetch_array($query)) {
$forumdb[] = $rt;
}
$i = count($forumdb);
if ($i > 4) {
$j_sum = 4;
$j_wid = '25%';
} else {
$j_sum = $i;
$j_wid = (100/$i).'%';
}
require_once(PrintEot('forumcp'));footer();
} elseif ($action == 'edit') {
$forum_name = $forums['name'];
InitGP(array('type'));
!$type && $type = 'notice';
if ($type == 'notice') {
$annoucedb = array();
$pages = ''; $page = $_GET['page']; (int)$page<1 && $page = 1;
$query = $db->query('SELECT aid,ifopen,vieworder,author,subject,startdate,enddate FROM pw_announce WHERE fid='.pwEscape($fid).' ORDER BY fid,vieworder,startdate DESC '.pwLimit(($page-1)*$db_perpage,$db_perpage));
while ($rt = $db->fetch_array($query)) {
$rt['subject'] = substrs($rt['subject'],30);
$rt['starttime'] = $rt['startdate'] ? get_date($rt['startdate'],'Y-m-d H:i') : '--';
$rt['endtime'] = $rt['enddate'] ? get_date($rt['enddate'],'Y-m-d H:i') : '--';
$annoucedb[] = $rt;
}
$db->free_result($query);
$count = $db->get_value('SELECT COUNT(*) FROM pw_announce WHERE fid='.pwEscape($fid));
if ($count > $db_perpage) {
require_once(R_P.'require/forum.php');
$pages = numofpage($count,$page,ceil($count/$db_perpage), "forumcp.php?action=edit&fid=$fid&type=$type&");
}
require_once(PrintEot('forumcp'));footer();
} elseif ($type == 'n_del') {
PostCheck();
$aid = (int)$_GET['aid'];
$rt = $db->get_one('SELECT aid,fid,ifopen FROM pw_announce WHERE aid='.pwEscape($aid));
(!$rt['aid'] || $rt['fid']!=$fid) && Showmsg('data_error');
$db->update('DELETE FROM pw_announce WHERE aid='.pwEscape($aid));
if ($rt['ifopen']) {
require_once(R_P.'require/updatenotice.php');
updatecache_i($fid);
}
refreshto("forumcp.php?action=edit&fid=$fid",'operate_success');
} elseif ($type == 'n_order') {
PostCheck();
!is_array($vieworder = $_POST['vieworder']) && $vieworder = array();
$updatedb = array();
foreach ($vieworder as $key => $value) {
if (is_numeric($key)) {
$value = (int)$value;
$updatedb[$value] .= ",'$key'";
}
}
foreach ($updatedb as $key => $value) {
$value && $db->update("UPDATE pw_announce SET vieworder='$key' WHERE aid IN (".substr($value,1).')');
}
require_once(R_P.'require/updatenotice.php');
updatecache_i($fid);
refreshto("forumcp.php?action=edit&fid=$fid",'operate_success');
} elseif ($type == 'add' || $type == 'edit') {
InitGP(array('aid'),'GP',2);
if (empty($_POST['step'])) {
$ifopen_Y = 'CHECKED'; $vieworder = (int)$vieworder;
$ifopen_N = $subject = $atc_content = $enddate = '';
$startdate = get_date($timestamp,'Y-m-d H:i');
if ($type == 'edit') {
$db_redundancy = 0;
$rt = $db->get_one('SELECT aid,fid,ifopen,vieworder,startdate,enddate,subject,content FROM pw_announce WHERE aid='.pwEscape($aid));
!$rt['aid'] && Showmsg('data_error');
extract($rt,EXTR_OVERWRITE);
if (!$ifopen) {
$ifopen_Y = '';
$ifopen_N = 'CHECKED';
}
$startdate && $startdate = get_date($startdate,'Y-m-d H:i'); $enddate && $enddate = get_date($enddate,'Y-m-d H:i');
$atc_content = $content;
}
require_once(PrintEot('forumcp'));footer();
} else {
PostCheck();
!$fid && Showmsg('annouce_fid');
InitGP(array('startdate','enddate','atc_title'),'P');
$startdate = $startdate ? PwStrtoTime($startdate) : $timestamp;
$enddate = $enddate ? PwStrtoTime($enddate) : '';
$enddate && $enddate<=$startdate && Showmsg('annouce_time');
InitGP(array('ifopen','vieworder'),'P',2);
$atc_content = trim(Char_cv($_POST['atc_content']));
if ($type == 'add') {
!$atc_title && Showmsg('annouce_title');
!$atc_content && Showmsg('annouce_content');
$pwSQL = pwSqlSingle(array(
'fid' => $fid,
'ifopen' => $ifopen,
'vieworder' => $vieworder,
'author' => $windid,
'startdate' => $startdate,
'enddate' => $enddate,
'url' => $url,
'subject' => $atc_title,
'content' => $atc_content
));
$db->update("INSERT INTO pw_announce SET $pwSQL");
if ($ifopen && (!$enddate || $enddate>=$timestamp)) {
require_once(R_P.'require/updatenotice.php');
updatecache_i($fid);
}
} else {
$rt = $db->get_one('SELECT aid,fid,content FROM pw_announce WHERE aid='.pwEscape($aid));
!$atc_title && Showmsg('annouce_title');
!$atc_content && Showmsg('annouce_content');
(!$rt['aid'] || $rt['fid']!=$fid) && Showmsg('data_error');
$pwSQL = pwSqlSingle(array(
'ifopen' => $ifopen,
'vieworder' => $vieworder,
'startdate' => $startdate,
'enddate' => $enddate,
'url' => $url,
'subject' => $atc_title,
'content' => $atc_content
));
$db->update("UPDATE pw_announce SET $pwSQL WHERE aid=".pwEscape($aid));
require_once(R_P.'require/updatenotice.php');
updatecache_i($fid);
}
refreshto("forumcp.php?action=edit&fid=$fid",'operate_success');
}
} elseif ($type == 'report') {
InitGP(array('page'),'GP',2);
$page < 1 && $page = 1;
$limit = pwLimit(($page-1)*$db_perpage,$db_perpage);
$rt = $db->get_one('SELECT COUNT(*) AS count FROM pw_report r LEFT JOIN pw_threads t ON t.tid=r.tid WHERE t.fid='.pwEscape($fid));
$sum = $rt['count'];
$numofpage = ceil($sum/$db_perpage);
$pages = numofpage($sum,$page,$numofpage,"forumcp.php?action=edit&type=report&fid=$fid&");
$query = $db->query('SELECT r.*,m.username,t.fid FROM pw_report r LEFT JOIN pw_members m ON m.uid=r.uid LEFT JOIN pw_threads t ON t.tid=r.tid WHERE t.fid='.pwEscape($fid).' ORDER BY id '.$limit);
while ($rt = $db->fetch_array($query)) {
$rt['fname'] = $forum[$rt['fid']]['name'];
$reportdb[] = $rt;
}
require_once(PrintEot('forumcp'));footer();
} elseif ($type == 'f_type') {
$rt = $db->get_one('SELECT f.t_type,fe.fid,fe.forumset FROM pw_forums f LEFT JOIN pw_forumsextra fe USING(fid) WHERE f.fid='.pwEscape($fid));
$forumset = unserialize($rt['forumset']);
if (empty($_POST['step'])) {
$forumset['addtpctype'] ? $addtpctype_Y='checked' : $addtpctype_N='checked';
$t_typedb=explode("\t",$rt['t_type']);/*主题分类*/
$t_typedb[0] = (int)$t_typedb[0];
${'t_type_'.$t_typedb[0]}='checked';
require_once(PrintEot('forumcp'));footer();
} else {
PostCheck();
Add_S($forumset);
InitGP(array('t_db','addtpctype'),'P');
$t_type = implode("\t",$t_db)."\t";/*主题分类*/
$t_type = str_replace('"','"',$t_type);
if ($t_type != $rt['t_type']) {
$db
没有合适的资源?快使用搜索试试~ 我知道了~
多帐户简易文章管理系统
共1762个文件
gif:969个
php:258个
asp:143个
需积分: 0 1 下载量 22 浏览量
2010-11-08
23:22:19
上传
评论
收藏 5.7MB RAR 举报
温馨提示
简单的文章管理系统,支持多帐户管理。 后台地址:域名/618110.asp 后台账号:www.618110.cn 声明:本程序仅供学习使用,版权归作者所有
资源推荐
资源详情
资源评论
收起资源包目录
多帐户简易文章管理系统 (1762个子文件)
editor280db.asp 232KB
pr_action.asp 44KB
Admin_Style.asp 38KB
Admin_Style.asp 33KB
ValidCode.asp 21KB
admin_Soft_Manage_edit.asp 20KB
pr_default.asp 18KB
index_Article_Class.asp 17KB
index_Soft_Class.asp 15KB
admin_Article_ClassColumn.asp 15KB
admin_Article_Column.asp 14KB
LX_Gbook.asp 14KB
index_SiteNews_list.asp 14KB
admin_friendsite_admin.asp 14KB
admin_Soft_Add.asp 13KB
Admin_Soft_Manage.asp 13KB
Editor.asp 12KB
admin_SiteNewsArticle_list.asp 12KB
md5.asp 11KB
md5.asp 11KB
deep_md5.asp 11KB
md5.asp 11KB
admin_Article_Class_edit.asp 11KB
admin_advert_edit.asp 11KB
Upload.asp 11KB
admin_friendsite_edit.asp 10KB
Admin_UploadFile.asp 10KB
admin_Article_Content_edit.asp 10KB
index_soft_show.asp 10KB
admin_channel_edit.asp 10KB
admin_siteConfig_edit.asp 9KB
admin_advert_add.asp 9KB
Index.asp 9KB
admin_friendsite_add.asp 9KB
Admin_UploadFile.asp 9KB
eWebEditor.asp 9KB
admin_Soft_Class_edit.asp 9KB
LX_Admin.asp 9KB
Admin_SClass_edit.asp 9KB
admin_User_AdminUser_edit.asp 9KB
admin_SiteNewsContent_edit.asp 9KB
admin_bottom_url_add.asp 8KB
admin_channel_add.asp 8KB
LX_Book.asp 8KB
admin_Article_Class_add.asp 8KB
index_Article_Content.asp 8KB
admin_User_AdminUser_add.asp 8KB
admin_Article_Content_add.asp 8KB
admin_bottom_url_edit.asp 8KB
Admin_Soft_Class_Add.asp 8KB
Startup.asp 8KB
Admin_Private.asp 7KB
admin_notice_edit.asp 7KB
admin_SiteNewsContent_add.asp 7KB
DT_AspSysCheck.asp 7KB
index_Count.asp 7KB
admin_notice_add.asp 7KB
index_bottomURL.asp 7KB
index_SiteNews_Content.asp 7KB
Startup.asp 6KB
admin_advert_class.asp 6KB
admin_advert.asp 6KB
admin_channel_admin_del.asp 6KB
admin_advert_del.asp 6KB
LX_Login.asp 6KB
admin_Article_Class_DEL.asp 6KB
admin_Article_Column_Del.asp 6KB
Admin_Private.asp 6KB
admin_channel_admin.asp 6KB
admin_Soft_Manage_DEL.asp 6KB
admin_bottom_url_DEL.asp 6KB
admin_User_AdminUser.asp 5KB
admin_bottom_url.asp 5KB
Admin_Soft_Class_DEL.asp 5KB
admin_SiteNews_Del.asp 5KB
admin_User_AdminUser_Del.asp 5KB
Admin_Soft_Class.asp 5KB
admin_index_left.asp 5KB
upfile_class.asp 5KB
index_ArticleClass_index.asp 5KB
index_Article_index.asp 5KB
upfile_class.asp 5KB
Left.asp 5KB
Admin_Decode.asp 4KB
618110.asp 4KB
Admin_ModiPwd.asp 4KB
DeCode.asp 4KB
ReplaceRemoteUrl.asp 4KB
index_Soft_index.asp 4KB
admin_Article_Class.asp 4KB
index_SoftDown_Hot.asp 3KB
soft_down.asp 3KB
index_SiteNews.asp 3KB
admin_siteConfig.asp 3KB
LX_Config.asp 3KB
index_NewSoftDown.asp 3KB
index_Article_Hot.asp 3KB
admin_Article_Content_view.asp 3KB
admin_notice.asp 3KB
index_NewArticle.asp 3KB
共 1762 条
- 1
- 2
- 3
- 4
- 5
- 6
- 18
资源评论
job2nd
- 粉丝: 1
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功