Project

General

Profile

Bug #2792 ยป 2792.patch

krileon, 06 July 2012 20:27

View differences:

components/com_comprofiler/plugin/user/plug_cbcaptcha/cb.captcha.php
if ( $this->params->get( 'captchaUrlMode', 1 ) == 1 ) {
$imageUrl = $_CB_framework->getCfg( 'live_site' ) . '/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchaindex.php?captchaurlmode=image&captchasid=' . $this->_sessionId();
} else {
$imageUrl = $_CB_framework->getCfg( 'live_site' )
. '/'
. str_replace( array( 'index.php?', 'plugin=cbcaptcha'), array( 'index2.php?', 'plugin=cb.captcha' ), $this->_getAbsURLwithParam( array( 'urlmode' => 'image', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', false ) )
. '&no_html=1&format=raw';
$imageUrl = str_replace( 'cbcaptcha', 'cb.captcha', $this->_getAbsURLwithParam( array( 'urlmode' => 'image', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', true, null, 'raw' ) );
}
$width = $this->params->get('captchaWidth', '95');
$height = $this->params->get('captchaHeight', '30');
......
if ( $this->params->get( 'captchaUrlMode', 1 ) == 1 ) {
$audioURL = $_CB_framework->getCfg( 'live_site' ) . '/components/com_comprofiler/plugin/user/plug_cbcaptcha/captchaindex.php?captchaurlmode=audio&captchasid=' . $this->_sessionId();
} else {
$audioURL = $_CB_framework->getCfg( 'live_site' )
. '/'
. str_replace( array( 'index.php?', 'plugin=cbcaptcha'), array( 'index2.php?', 'plugin=cb.captcha' ), $this->_getAbsURLwithParam( array( 'urlmode' => 'audio', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', false ) )
. '&no_html=1&format=raw';
$audioURL = str_replace( 'cbcaptcha', 'cb.captcha', $this->_getAbsURLwithParam( array( 'urlmode' => 'audio', 'sid' => $this->_sessionId(), 'Itemid' => 0 ), 'pluginclass', true, null, 'raw' ) );
}
$captchavieweros = $this->_CheckUserOS();
    (1-1/1)