$log_action = "CUT/COPY NODE"; pc_return("pcdoc.php?userid=" . $pc["USER"] . "&tag=" . $access . "&tid=" . intval($_GET["tid"])); } elseif ($act == "post") { if ($subject) { if ($pc["EDITOR"] == 2) { //use ubb $blogbody = pc_ubb_parse($_POST["blogbody"]); } else { $blogbody = $_POST["blogbody"]; } if ($pcconfig["ENCODINGTBP"]) { $convert_encoding = @$_POST['tbpencoding']; } else { $convert_encoding = ''; } $ret = @pc_add_node($link, $pc, $_GET["pid"], $_POST["tid"], $_POST["emote"], $_POST["comment"], $_GET["tag"], $_POST["htmltag"], $_POST["trackback"], $_POST["theme"], $_POST["subject"], $blogbody, 0, $_POST["autodetecttbps"], $_POST["trackbackurl"], $_POST["trackbackname"], $convert_encoding, 0, 0, $currentuser["userid"]); $error_alert = ""; switch ($ret) { case -1: html_error_quit("缺少日志主题"); exit; break; case -2: html_error_quit("目录不存在"); exit; break; case -3: html_error_quit("该目录的日志数已达上限"); exit; break; case -4:
$query = 'SELECT * FROM filter WHERE fid = ' . $fid . ' LIMIT 1;'; $result = mysql_query($query); $node = mysql_fetch_array($result); if (!$node) { html_error_quit("文章不存在"); } if (strtolower($_GET['filter']) == 'n') { if ($node[state] == 0 || $node[state] == 2) { $query = 'UPDATE filter SET state = 1 WHERE fid = ' . $fid . ' LIMIT 1;'; mysql_query($query); $pc = pc_load_infor($link, "", $node[uid]); if ($node[nid]) { //过滤的是评论 $ret = pc_add_comment($link, $pc, $node[nid], $node[emote], $node[username], $node[subject], $node[body], $node[htmltag], true, $node[hostname]); } else { $ret = pc_add_node($link, $pc, $node[pid], $node[tid], $node[emote], $node[comment], $node[access], $node[htmltag], $node[trackback], $node[theme], $node[subject], $node[body], $node[nodetype], $node[auto_tbp], $node[tbp_url], $node[tbp_art], $node[tbpencoding], true, $node[hostname], $node[publisher]); } switch ($ret) { case -1: html_error_quit("缺少日志主题"); exit; break; case -2: html_error_quit("目录不存在"); exit; break; case -3: html_error_quit("该目录的日志数已达上限"); exit; break; case -4: