2028000 AND message('message', lang('message_too_long')); $thread['top'] > 0 AND thread_top_cache_delete(); $quotepid = param('quotepid', 0); $quotepost = post__read($quotepid); (!$quotepost || $quotepost['tid'] != $tid) AND $quotepid = 0; $post = array( 'tid'=>$tid, 'uid'=>$uid, 'create_date'=>$time, 'userip'=>$longip, 'isfirst'=>0, 'doctype'=>$doctype, 'quotepid'=>$quotepid, 'message'=>$message, ); $pid = post_create($post, $fid, $gid); empty($pid) AND message(-1, lang('create_post_failed')); // thread_top_create($fid, $tid); $post = post_read($pid); $post['floor'] = $thread['posts'] + 2; $postlist = array($post); $allowpost = forum_access_user($fid, $gid, 'allowpost'); $allowupdate = forum_access_mod($fid, $gid, 'allowupdate'); $allowdelete = forum_access_mod($fid, $gid, 'allowdelete'); // hook post_post_end.php // 直接返回帖子的 html // return the html string to browser. $return_html = param('return_html', 0); if($return_html) { $filelist = array(); ob_start(); include _include(APP_PATH.'view/htm/post_list.inc.htm'); $s = ob_get_clean(); message(0, $s); } else { message(0, lang('create_post_sucessfully')); } // 写入库 // 返回状态 echo "你喜欢的颜色是红色!"; break; case 'repyle': echo "你喜欢的颜色是蓝色!"; break; case 'thread': echo "你喜欢的颜色是绿色!"; break; default: echo "你喜欢的颜色不是 红, 蓝, 或绿色!"; }