本帖最后由 横翠科技 于 2014-9-15 15:33 编辑
请问: [应用审核] “HCT问答知道系列之 GBK蓝色版v1.0” 审核失败,现已被撤销 涉及增删改的链接请添加包含formhash的submit判断
这句话是指在模板文件中删除链接上加上formhash么。还是说submit判断文件没有调用上,怎么解释,谢谢,给我说明一下
附上一些代码:
- <script type="text/javascript">
- function delquestion(e) {
- var e = jQuery(e);
- var id = e.attr("data-id");
- jQuery.get("{eval echo U('ajax');}",{"ajax_action":"delquestion","qid":id},function(data) {
- if(data) {
- var t = e.parent().parent().parent();
- t.hide(400,function(){
- t.remove();
- showError('{lang hct_ask:admincp_batch_success_delete}');
- })
- }
- },"text")
- }
- </script>
复制代码- <td width="200">
- <a href="javascript:;" onclick="delquestion(this); return false;" data-id="{$question['id']}" class="act">
- {lang hct_ask:admincp_batch_question_list_cz_del}
- </a>
- <span class="pipe">|</span>
- <a href="{eval echo U('post',array('edit',$question['id']));}"data-id="{$question['id']}" class="act">
- {lang hct_ask:admincp_batch_question_list_cz_edit}
- </a>
- <span class="pipe">|</span>
- <!--{if $question['istop']}-->
- {lang hct_ask:admincp_batch_question_list_cz_ytj}
- <!--{else}-->
- <a href="javascript:;" onclick="showWindow('mods', 'plugin.php?id=hct_ask:index&ac=recommend&qid={$question['id']}&formhash={FORMHASH}');">
- {lang hct_ask:admincp_batch_question_list_cz_tj}
- </a>
- <!--{/if}-->
- </td>
复制代码- /**
- * 删除问题
- */
- if($ajax_action == 'delquestion') {
- $qid = intval($_GET['qid']);
- $uid = DB::result_first("select uid from %t where id = %d",array('hct_ask_question',$qid));
- if($qid) {
- C::t("#hct_ask#hct_ask_question")->delete_question_by_qid($qid);
- C::t("#hct_ask#hct_ask_member")->set($uid,'questions','-',1);
- echo 1;
- }
- }
- /**
- * 删除问题
- */
- if($ajax_action == 'delrec') {
- $qid = intval($_GET['qid']);
- DB::delete('hct_ask_recommend',array('qid'=>$qid));
- echo 1;
- }
复制代码
|