Support jOOmla! Autoit!
Akocomment 出现验证码错误的修正方法 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-09-10 | View Count View: 12623 | Digg Count Digg: 59

标题不知道怎么写了,这个情况只适用与 当你的 globals.php里 define( 'RG_EMULATION', 1 ); 改为 :define( 'RG_EMULATION', 0 ); 后, Akocomment [带验证码的 ver<= (2.0) 1.1.3] 将总是出现 验证码错误的修正方法:

修改 akocomment.php 里,将

# Don't allow direct linking
  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

替换为:

# Don't allow direct linking
  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
   //BBTEMPFIX:
  $acitemid = (int) mosGetParam( $_POST, "acitemid" );
  $contentid = (int) mosGetParam( $_POST, "contentid" );
  $title = mosGetParam( $_POST, "title" );
  $comment = mosGetParam( $_POST, "comment" );
  $acname = mosGetParam( $_POST, "acname" );
  # Added one extra line to make the security images solution by DPaulus to work - Reind Dooyeweerd  
  $akocode = mosGetParam( $_POST, "akocode" );  
  //end of BBTEMPFIX

admin.akocomment.php 14行左右的 switch 语句前面增加:

//BBTEMPFIX
$task = mosGetParam( $_REQUEST, 'task', null );
$cid = mosGetParam( $_REQUEST, 'cid', array( 0 ) );
$uid = mosGetParam( $_REQUEST, 'uid', array( 0 ) );
if (!is_array( $cid )) {
$ocid=$cid;
$cid = array ();
$cid[]=$ocid;
mosArrayToInts($cid);
}
//END OF BBTEMPFIX 

摘录自: forum.joomla.org

 


Permanent URL: http://www.autoit.cn/index.php/content/view/77/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: Ako  comment  验证码  

 
注册用户权限相关的一些 hack   最新文章模块增加发布时间的hack