S::gp(array('comments_content', 'tid', 'aid')); if (!$comments_content || $tid < 1 || $aid < 1) { Showmsg('undefined_action'); } $pingService = L::loadClass('ping', 'forum'); if ($pingService->checkReplyRight($tid) !== true) { Showmsg('您不能对帖子进行回复'); } $comments_content = $comments_content . "\r\n\r\n[size=2][color=#a5a5a5]内容来自[/color][color=#4f81bd][url=" . $db_bbsurl . "/slide.php?tid=" . $tid . "#" . $aid . "][图酷][/url][/color] [/size]"; $pingService->addPost($tid, $comments_content); echo "success"; ajax_footer(); } elseif ($a == 'stopiccommentbox') { if (!$winduid) { S::gp(array('requesturl')); require_once printEOT('m_ajax'); } else { echo 'have_login'; } ajax_footer(); } elseif ($a == 'pingpage') { S::gp(array('tid', 'page', 'count', 'pid', 'fid')); $pingPerPage = 10; $tid = intval($tid); $page = intval($page); $count = intval($count); $pid = intval($pid); if ($tid < 1 || $count < 1 || $fid < 1) { Showmsg('undefined_action'); } global $db;
//帖子管理权限 list($admincheck, $superdelete, $superedit) = $_searchHelper->getThreadLevel($type, $fid); //关键字统计功能 $_POST['step'] == 2 && $_searchHelper->keywordStatistic($keyword); //热门关键字更新 $_searchHelper->updateHotwords(); //热门搜索 $hotwords = $db_hotwords ? explode(",", $db_hotwords) : array(); //导航 $_Navbar = $_searchHelper->getSearchNav(); //扩展搜索服务 $extendSearcher = L::loadClass('extendsearcher', 'search'); $rightSearchResult = $extendSearcher->invokeSearcher('right_search', array('keyword' => $keyword, 'type' => $type), false); require_once printEOT('searcher_header'); require_once printEOT('searcher_headbar'); require_once printEOT('searcher'); //require_once printEOT('searcher_footer'); footer(); /** * 视图 * @author luomingqu 2010-11-16 * @version phpwind 8.3 */ class PW_SearchHelper { function PW_SearchHelper() { } function getTypeTitle($type, $condition) { if ($type && $condition) {