<?php
/**
* MyBB 1.6
* Copyright 2010 MyBB Group, All Rights Reserved
*
* Website: http://mybb.com
* License: http://mybb.com/about/license
*
* $Id: modcp.php 5120 2010-07-26 20:10:05Z RyanGordon $
*/
define("IN_MYBB", 1);
define('THIS_SCRIPT', 'modcp.php');
$templatelist = "modcp_reports,modcp_reports_report,modcp_reports_multipage,modcp_reports_allreport";
$templatelist .= ",modcp_reports_allnoreports,modcp_reports_noreports,modcp_banning,modcp_banning_ban";
$templatelist .= ",modcp_banning_multipage,modcp_banning_nobanned,modcp_banning_auser,modcp_banning_error";
$templatelist .= ",modcp_banning_edit,modcp_banning_banned_user,modcp_nav,modcp_modlogs_noresults,modcp";
$templatelist .= ",modcp_no_announcements_global,modcp_announcements_global,modcp_announcements_forum,modcp_announcements";
$templatelist .= ",codebuttons,smilieinsert,modcp_announcements_new,modcp_modqueue_empty,forumjump_bit,forumjump_special";
$templatelist .= ",modcp_modlogs,modcp_finduser_user,modcp_finduser,usercp_profile_customfield,usercp_profile_profilefields";
$templatelist .= ",modcp_editprofile,modcp_ipsearch,modcp_banuser_addusername,modcp_banuser,modcp_warninglogs_nologs";
$templatelist .= ",modcp_warninglogs,modcp_modlogs_result,modcp_editprofile_signature_info,modcp_editprofile_signature_options,modcp_editprofile_signature";
require_once "./global.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/functions_upload.php";
require_once MYBB_ROOT."inc/functions_modcp.php";
require_once MYBB_ROOT."inc/class_parser.php";
$parser = new postParser;
// Set up the array of ban times.
$bantimes = fetch_ban_times();
// Load global language phrases
$lang->load("modcp");
if($mybb->user['uid'] == 0 || $mybb->usergroup['canmodcp'] != 1)
{
error_no_permission();
}
$errors = '';
// SQL for fetching items only related to forums this user moderates
$moderated_forums = array();
if($mybb->usergroup['issupermod'] != 1)
{
$query = $db->simple_select("moderators", "*", "id='{$mybb->user['uid']}' AND isgroup = '0'");
while($forum = $db->fetch_array($query))
{
$flist .= ",'{$forum['fid']}'";
$children = get_child_list($forum['fid']);
if(!empty($children))
{
$flist .= ",'".implode("','", $children)."'";
}
$moderated_forums[] = $forum['fid'];
}
if($flist)
{
$tflist = " AND t.fid IN (0{$flist})";
$flist = " AND fid IN (0{$flist})";
}
}
else
{
$flist = $tflist = '';
}
// Fetch the Mod CP menu
eval("\$modcp_nav = \"".$templates->get("modcp_nav")."\";");
$plugins->run_hooks("modcp_start");
// Make navigation
add_breadcrumb($lang->nav_modcp, "modcp.php");
if($mybb->input['action'] == "do_reports")
{
// Verify incoming POST request
verify_post_check($mybb->input['my_post_key']);
if(!is_array($mybb->input['reports']))
{
error($lang->error_noselected_reports);
}
$mybb->input['reports'] = array_map("intval", $mybb->input['reports']);
$rids = implode($mybb->input['reports'], "','");
$rids = "'0','{$rids}'";
$plugins->run_hooks("modcp_do_reports");
$db->update_query("reportedposts", array('reportstatus' => 1), "rid IN ({$rids}){$flist}");
$cache->update_reportedposts();
$page = intval($mybb->input['page']);
redirect("modcp.php?action=reports&page={$page}", $lang->redirect_reportsmarked);
}
if($mybb->input['action'] == "reports")
{
add_breadcrumb($lang->mcp_nav_reported_posts, "modcp.php?action=reports");
if(!$mybb->settings['threadsperpage'])
{
$mybb->settings['threadsperpage'] = 20;
}
// Figure out if we need to display multiple pages.
$perpage = $mybb->settings['threadsperpage'];
if($mybb->input['page'] != "last")
{
$page = intval($mybb->input['page']);
}
$query = $db->simple_select("reportedposts", "COUNT(rid) AS count", "reportstatus ='0'");
$report_count = $db->fetch_field($query, "count");
$mybb->input['rid'] = intval($mybb->input['rid']);
if($mybb->input['rid'])
{
$query = $db->simple_select("reportedposts", "COUNT(rid) AS count", "rid <= '".$mybb->input['rid']."'");
$result = $db->fetch_field($query, "count");
if(($result % $perpage) == 0)
{
$page = $result / $perpage;
}
else
{
$page = intval($result / $perpage) + 1;
}
}
$postcount = intval($report_count);
$pages = $postcount / $perpage;
$pages = ceil($pages);
if($mybb->input['page'] == "last")
{
$page = $pages;
}
if($page > $pages || $page <= 0)
{
$page = 1;
}
if($page && $page > 0)
{
$start = ($page-1) * $perpage;
}
else
{
$start = 0;
$page = 1;
}
$upper = $start+$perpage;
$multipage = multipage($postcount, $perpage, $page, "modcp.php?action=reports");
if($postcount > $perpage)
{
eval("\$reportspages = \"".$templates->get("modcp_reports_multipage")."\";");
}
$query = $db->simple_select("forums", "fid, name");
while($forum = $db->fetch_array($query))
{
$forums[$forum['fid']] = $forum['name'];
}
$plugins->run_hooks("modcp_reports_start");
$reports = '';
$query = $db->query("
SELECT r.*, u.username, up.username AS postusername, up.uid AS postuid, t.subject AS threadsubject
FROM ".TABLE_PREFIX."reportedposts r
LEFT JOIN ".TABLE_PREFIX."posts p ON (r.pid=p.pid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (p.tid=t.tid)
LEFT JOIN ".TABLE_PREFIX."users u ON (r.uid=u.uid)
LEFT JOIN ".TABLE_PREFIX."users up ON (p.uid=up.uid)
WHERE r.reportstatus='0'
ORDER BY r.dateline DESC
LIMIT {$start}, {$perpage}
");
while($report = $db->fetch_array($query))
{
$trow = alt_trow();
if(is_moderator($report['fid']))
{
$trow = 'trow_shaded';
}
$report['postlink'] = get_post_link($report['pid'], $report['tid']);
$report['threadlink'] = get_thread_link($report['tid']);
$report['posterlink'] = get_profile_link($report['postuid']);
$report['reporterlink'] = get_profile_link($report['uid']);
$reportdate = my_date($mybb->settings['dateformat'], $report['dateline']);
$reporttime = my_date($mybb->settings['timeformat'], $report['dateline']);
$report['threadsubject'] = htmlspecialchars_uni($parser->parse_badwords($report['threadsubject']));
eval("\$reports .= \"".$templates->get("modcp_reports_report")."\";");
}
if(!$reports)
{
eval("\$reports = \"".$templates->get("modcp_reports_noreports")."\";");
}
$plugins->run_hooks("modcp_reports");
eval("\$reportedposts = \"".$templates->get("modcp_reports")."\";");
output_page($reportedposts);
}
if($mybb->input['action'] == "allreports")
{
add_breadcrumb($lang->mcp_nav_all_reported_posts, "modcp.php?action=allreports");
if(!$mybb->settings['threadsperpage'])
{
$mybb->settings['threadsperpage'] = 20;
}
// Figure out if we need to display multiple pages.
$perpage = $mybb->settings['threadsperpage'];
if($mybb->input['page'] != "last")
{
$page = intval($mybb->input['page']);
}
$query = $db->simple_select("reportedposts", "COUNT(rid) AS count");
$warnings = $db->fetch_field($query, "count");
if($mybb->input['rid'])
{
$mybb->input['rid'] = intval($mybb->input['rid']);
$query = $db->simple_select("reportedposts", "COUNT(rid) AS count", "rid <= '".$mybb->input['rid']."'");
$result = $db->fetch_field($query, "count");
if(($result % $perpage) == 0)
{
$page = $result / $perpage;
}
else
{
$page = intval($result / $perpage) + 1;
}
}
$postcount = intval($warnings);
$pages = $postcount / $perpage;
$pages = ceil($pages);
if($mybb->input['page'] == "last")
{
$page = $pages;
}
if($page > $pages || $page <= 0)
{
$page = 1;
}
if($page)
{
$start = ($page-1) * $perpage;
}
else
{
$start = 0;
$page = 1;
}
$upper = $start+$perpage;
$multipage = multipage($postcount, $perpage, $page, "modcp.php?action=allreports");
if($postcount > $perpage)
{
eval("\$allreportspages = \"".$templates->get("modcp_reports_multipage")."\";");
}
$query = $db->simple_select("forums", "fid, name");
while($forum = $db->fetch_array($query))
{
$forums[$forum['fid']] = $forum['name'];
}
$plugins->run_hooks("modcp_allreports_start");
$reports = '';
$q
没有合适的资源?快使用搜索试试~ 我知道了~
luntan.rar_php bbs_php论坛系统
共926个文件
php:389个
gif:370个
html:50个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 193 浏览量
2022-09-22
23:43:11
上传
评论
收藏 1.94MB RAR 举报
温馨提示
本系统是一个bbs在线论坛,由php编写,功能虽然不是很强大,但是还是有些学习的地方
资源详情
资源评论
资源推荐
收起资源包目录
luntan.rar_php bbs_php论坛系统 (926个子文件)
mybb_theme.xml.bak 480KB
main.css 15KB
main.css 15KB
global.css 10KB
stylesheet.css 9KB
stylesheet.css 6KB
stylesheet.css 5KB
imodal.css 3KB
usercp.css 3KB
login.css 2KB
login.css 2KB
modcp.css 2KB
print.css 2KB
screen.css 2KB
star_ratings.css 1KB
forum.css 1KB
avatar_gallery.css 983B
avatar_gallery.css 983B
user.css 806B
mybb.css 775B
codepress.css 713B
php.css 653B
showthread.css 635B
style.css 597B
style.css 597B
popup.css 499B
popup.css 499B
html.css 445B
autoit.css 420B
generic.css 365B
user.css 323B
javascript.css 319B
home.css 303B
home.css 303B
css.css 275B
codepress-mybb.css 221B
text.css 97B
php.gif 27KB
supertux.gif 16KB
loading.gif 8KB
logo.gif 8KB
logo.gif 8KB
logo.gif 8KB
logo.gif 8KB
spinner_big.gif 6KB
spinner_big.gif 6KB
spinner_big.gif 6KB
butterfly.gif 6KB
suckxp.gif 5KB
login_logo.gif 5KB
ui.gif 4KB
athlon.gif 4KB
blue_bg.gif 4KB
php.gif 3KB
avatar_gallery.gif 3KB
toolbar.gif 2KB
toolbar.gif 2KB
rateuser.gif 2KB
newthread.gif 2KB
closed.gif 2KB
newreply.gif 2KB
stimpy.gif 2KB
rateuser.gif 2KB
closed.gif 2KB
newthread.gif 2KB
newreply.gif 2KB
team-support.gif 2KB
team-support.gif 2KB
team-administrator.gif 2KB
team-administrator.gif 2KB
team-designer.gif 2KB
team-designer.gif 2KB
team-management.gif 2KB
team-management.gif 2KB
spam.gif 2KB
team-supermod.gif 2KB
team-supermod.gif 2KB
team-mod.gif 2KB
team-mod.gif 2KB
team-developer.gif 2KB
team-developer.gif 2KB
postbit_replyall.gif 2KB
team-tester.gif 2KB
team-tester.gif 2KB
postbit_replyall.gif 2KB
pm_forward.gif 2KB
h2-createtables.gif 2KB
h2-tablepopulate.gif 2KB
postbit_profile.gif 2KB
h2-theme.gif 2KB
h2-finish.gif 2KB
postbit_profile.gif 2KB
pm_forward.gif 2KB
pm_delete.gif 2KB
pm_delete.gif 2KB
postbit_report.gif 2KB
spinner.gif 2KB
spinner.gif 2KB
spinner.gif 2KB
postbit_edit.gif 1KB
共 926 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10
alvarocfc
- 粉丝: 112
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- git使用文档(一步一步教你使用Git仓库管理代码)
- 进制转换(通用版).cpp
- linux实践之从DistroWatch排名第三的EndeavourOS转到排名第五的Manjaro工作机迁移
- Discuz模板+资讯博客课程干货+商业版(GBK+UTF)
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本123.0.6292.0)
- RB308A-SOT23-5 单节锂电池保护IC 深圳市可芯电子有限公司.pdf
- Ubuntu下安装JDK
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本123.0.6291.0)
- Android基础之用Eclipse建立工程
- WZLR(2).ipynb
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0