<?php
/*
BMForum Datium! Bulletin Board Systems
Version : Datium!
This is a freeware, but don't change the copyright information.
A SourceForge Project.
Web Site: http://www.bmforum.com
Copyright (C) Bluview Technology
*/
include_once("datafile/config.php");
include_once("getskin.php");
include_once("include/bmbcodes.php");
include_once("include/post_global.php");
include_once("lang/$language/post.php");
include_once("newtem/$temfilename/post_global.php");
$qbgcolor = "article_color2";
if ($login_status != 2 && $login_status != 0) {
$lastuploadtime = gmdate("zY", $clastupload + $bbsdetime * 60 * 60);
$lastuploadtime_a = gmdate("zY", $timestamp + $bbsdetime * 60 * 60);
if ($lastuploadtime != $lastuploadtime_a) {
$uploadfiletoday = 0;
$nquery = "UPDATE {$database_up}userlist SET uploadfiletoday=0,lastupload='$timestamp' WHERE userid='$userid'";
$result = bmbdb_query($nquery);
}
}
$pbqq100 = $qadtvar = $uploaded_num = 0;
if (!$forumid || !$forum_type || $forum_type == "category") exit;
check_forum_permission(1);
if ($forum_pwd <> "" && $forum_pwd <> "d41d8cd98f00b204e9800998ecf8427e" && $job <> "login" && $_COOKIE['b' . $forumid . 'mb'] <> $forum_pwd) {
echo "<meta http-equiv=\"Refresh\" content=\"0; URL=forums.php?forumid=$forumid\">";
exit;
}
if ($forum_style <> "") {
if (file_exists("datafile/style/" . basename($forum_style))) include("datafile/style/" . basename($forum_style));
}
$bcode_post = $bmfcode_post;
$bcode_post['table'] = $usertype[115];
if ($usericon) $usericon = safe_convert($usericon);
if ($form_name == "__bmbForm") $convert_visual = 1;
eval(load_hook('int_post_int'));
if (!$action) $action = "new";
if ($action == "new" || $action == "reply" || $action == "quote") {
// 灌水预防-----------
if ($flood_control && $username && !flood_limit($username, $flood_control)) {
eval(load_hook('int_post_flood_ban'));
if ($ajax_reply == 1) ajax_reply_error($war[3]);
error_page($navi_bar_des, $navi_bar_l2, $errc[0], "$errc[9]<br /><br />$war[3]<br />", $war[2], 1);
$step = 0;
}
}
if ($_COOKIE[can_visual_post] == cancel) $can_visual_post = 0;
// ============================
if ($usertype[120] == 1 && $allow_upload && $remote_upload) {
remote_upload($remote_upload, $remote_referer);
}
// ============================
$filetopn = ($aviewpost == "openit") ? "article.php" : "topic.php";
$pagelast = ($aviewpost == "openit") ? "" : "&page=last";
$alert_error_ext = $gl[527];
if ($action == "new") {
if (($canpost != "1" || $userpoint < $post_allow_ww) && $login_status == "1") {
error_page($navi_bar_des, $navi_bar_l2, $errc[0], "$errc[9]<br /><br />$war[5]<br />", $war[4]);
}
if ($type == "vote" && ($canpoll != "1" || $userpoint < $poll_allow_ww) && $login_status == "1") {
error_page($navi_bar_des, $navi_bar_l2, $errc[0], "$errc[9]<br /><br />$war[5]<br />", $war[4]);
}
if ($step == 2 && $preview != $print_form[76] && $mupload != $print_form[18]) {
// ----Check-------
$check = check_data($type);
eval(load_hook('int_post_new_int'));
for($ia = 0;$ia < $max_upload_num;$ia++) {
if (!file_exists($_FILES['attachment']['tmp_name'][$ia]))
{
$upload[$ia] = 0;
continue;
}
$FILE_URL[$ia] = $_FILES['attachment']['tmp_name'][$ia];
$FILE_NAME[$ia] = safe_upload_name($_FILES['attachment']['name'][$ia]);
$FILE_SIZE[$ia] = $_FILES['attachment']['size'][$ia];
$FILE_TYPE[$ia] = safe_upload_name($_FILES['attachment']['type'][$ia]);
$FILE_ERROR[$ia] = $_FILES['attachment']['error'][$ia];
if ($allow_upload && $FILE_NAME[$ia] && $FILE_NAME[$ia] != "none") $upload[$ia] = 1;
else $upload[$ia] = 0;
if ($login_status != 2 && $login_status != 0) {
$leftuploadnum = $max_daily_upload_size - $uploadfiletoday;
}
if ($leftuploadnum == 0) $upload[$ia] = 0;
if ($nopostpic == 1 && $usertype[22] != "1" && $usertype[24] != "1" && $usertype[21] != "1" && $usertype[12] != "1") {
$check = 0;
$status = $errora[4444];
}
if ($check && $upload[$ia]) {
if ($postamount < $max_upload_post && $usertype[22] != "1") {
$check = 0;
$status = $others[3];
}
if ($FILE_ERROR[$ia] != 0) {
$check = 0;
$status = $print_form[122] . $FILE_ERROR[$ia];
$upload[$ia] = 0;
}
// -----User has uploaded some file-----
if ($FILE_SIZE[$ia] > $max_upload_size && $usertype[22] != "1") {
$check = 0;
$status = $others[4];
} else {
$is_ext_allowed = check_upload_ext ($FILE_NAME[$ia], $upload_type_available, $FILE_URL[$ia], $remote_is_file[$FILE_NAME[$ia]]);
if (!$is_ext_allowed) {
$check = 0;
$status = $others[5];
}
}
}
eval(load_hook('int_post_new_upload'));
if ($check == 0) @unlink($FILE_URL[$ia]);
}
if ($usertype[110] == 1 && !str_replace(" ", "", $tags)) {
$check = 0;
$status = $print_form[tags];
}
if ($check) {
if (!$usericon) $usericon = "";
if (!isset($articledes)) $articledes = "";
else $articledes = addslashes($articledes);
// -----Check the input------
for($axd = 0;$axd < $max_upload_num;$axd++) {
$attachdes[$axd] = addslashes(safe_convert(badwords($attachdes[$axd]), 0, $convert_visual));
}
$articlecontent = addslashes(badwords($articlecontent));
$articlecontent = safe_convert($articlecontent, 0, $convert_visual);
if ($autourl == "yes") $articlecontent = autourl($articlecontent);
if ($actioneot == "yes") $articlecontent = dongzuo($articlecontent, $username);
$articletitle = addslashes(safe_convert(badwords($articletitle), 1, $convert_visual));
$articletitle = str_replace(",", ",", $articletitle);
$articledes = safe_convert($articledes, 0, $convert_visual);
if ($inreplytopic == 'yes') $articlecontent = "[post]" . $articlecontent . "[/post]";
if ($inhiddentopic == 'yes') $articlecontent = "[hide=" . $postweiwang . "]" . $articlecontent . "[/hide]";
if ($assell == 'yes') $articlecontent = "[pay=" . $sellmoney . "]" . $articlecontent . "[/pay]";
if ($asgift == 'yes') $articlecontent = "[gift=" . $giftmoney . "]" . $articlecontent . "[/gift]";
if ($asbeg == 'yes') $articlecontent = "[beg]" . $articlecontent . "[/beg]";
if ($type == "vote") {
$selections = str_replace("|", "│", safe_convert(badwords($selections)));
$sellist = explode("<br />", $selections);
$maturedate = explode("-", $maturedate);
$maturedate = mktime (0, 0, 0, $maturedate[1], $maturedate[2], $maturedate[0]);
if ($votetype == "m") {
$votetype = "m_" . $vtm . "_" . $viewafter . "_" . $maturetrue . "_" . $maturedate . "_" . $maturepatrue . "_" . $maturepa;
} else {
$votetype = "s_1_" . $viewafter . "_" . $maturetrue . "_" . $maturedate . "_" . $maturepatrue . "_" . $maturepa;
}
}
$newrand = getCode(7);
for($ia = 0;$ia < $max_upload_num;$ia++) {
if ($upload[$ia]) {
if ($saveattbyym == 1) {
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![thumb](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![gz](https://img-home.csdnimg.cn/images/20210720083447.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/GIF.png)
共 759 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/d28ac9b54fe948548c78a7d8383e66a3_qq_34910341.jpg!1)
CrMylive.
- 粉丝: 8754
- 资源: 4万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)