ShowMsg("请指定文档的栏目!", "-1"); exit; } if (empty($channelid)) { ShowMsg("文档为非指定的类型,请检查你发布内容的表单是否合法!", "-1"); exit; } if (!CheckChannel($typeid, $channelid)) { ShowMsg("你所选择的栏目与当前模型不相符,请选择白色的选项!", "-1"); exit; } if (!TestPurview('a_Edit')) { if (TestPurview('a_AccEdit')) { CheckCatalog($typeid, "对不起,你没有操作栏目 {$typeid} 的文档权限!"); } else { CheckArcAdmin($id, $cuserLogin->getUserID()); } } //对保存的内容进行处理 $pubdate = GetMkTime($pubdate); $sortrank = AddDay($pubdate, $sortup); $ismake = $ishtml == 0 ? -1 : 0; $autokey = 1; //$title = htmlspecialchars(cn_substrR($title,$cfg_title_maxlen,ENT_COMPAT ,"GB2312")); $shorttitle = cn_substrR($shorttitle, 36); $color = cn_substrR($color, 7); $writer = cn_substrR($writer, 20); $source = cn_substrR($source, 30); $description = cn_substrR($description, 250); $keywords = trim(cn_substrR($keywords, 60)); $filename = trim(cn_substrR($filename, 40));
if($typeid==0){ ShowMsg("请指定文档的栏目!","-1"); exit(); } if(empty($channelid)){ ShowMsg("文档为非指定的类型,请检查你发布内容的表单是否合法!","-1"); exit(); } if(!CheckChannel($typeid,$channelid) || !CheckChannel($typeid2,$channelid)){ ShowMsg("你所选择的栏目与当前模型不相符,请选择白色的选项!","-1"); exit(); } if(!TestPurview('a_Edit')) { if(TestPurview('a_AccEdit')) CheckCatalog($typeid,"对不起,你没有操作栏目 {$typeid} 的文档权限!"); else CheckArcAdmin($ID,$cuserLogin->getUserID()); } $arcrank = GetCoRank($arcrank,$typeid); //对保存的内容进行处理 //-------------------------------- $iscommend = $iscommend + $isbold; $pubdate = GetMkTime($pubdate); $sortrank = AddDay($senddate,$sortup); $endtime = $senddate + 3600 * 24 * $endtime; $title = cn_substr($title,80); if($keywords!="") $keywords = trim(cn_substr($keywords,60))." ";