english/components/com_aicontactsafe/models/captcha.php
// generate a new captcha code ( IE6 only )
generate a new captcha code ( IE6 only )
generate a new captcha code ( IE6 only )
function newCaptcha() {
		$set_rand = JRequest::getVar('set_rand', 0, 'request', 'int');
		$pf = JRequest::getVar('pf', 0, 'request', 'int');
		$r_id = JRequest::getVar('r_id', 0, 'request', 'int');
		$jfcookie = JRequest::getVar('jfcookie', null ,"COOKIE");
		$lang = '';
		if (isset($jfcookie["lang"]) && $jfcookie["lang"] != "") {
			$lang = JFilterInput::clean($jfcookie["lang"], 'cmd');
		}
		if (strlen($lang) == 0) {
			$lang = $this->_app->getUserState('application.lang', 'en');
			$lang = substr($lang,0,2);
		}
		$lg = JRequest::getCmd('lang', $lang);
		$captcha_file = JURI::root().'index.php?option=com_aicontactsafe&sTask=captcha&task=captcha&pf='.$pf.'&r_id='.$r_id.'&lang='.$lg.'&format=raw&set_rand='.$set_rand;
		echo '<img src="'.$captcha_file.'" alt="&nbsp;" id="captcha" border="0" />';
	}
function newCaptcha ( ) { $ set_rand = JRequest :: getVar ( 'set_rand' , 0 , 'request' , 'int' ) ; $ pf = JRequest :: getVar ( 'pf' , 0 , 'request' , 'int' ) ; $ r_id = JRequest :: getVar ( 'r_id' , 0 , 'request' , 'int' ) ; $ jfcookie = JRequest :: getVar ( 'jfcookie' , null , " COOKIE " ) ; $ lang = '' ; if ( isset ( $ jfcookie [ " lang " ] ) && $ jfcookie [ " lang " ] != " " ) { $ lang = JFilterInput :: clean ( $ jfcookie [ " lang " ] , 'cmd' ) ; } if ( strlen ( $ lang ) == 0 ) { $ lang = $ this -> _app -> getUserState ( 'application.lang' , 'en' ) ; $ lang = substr ( $ lang , 0 , 2 ) ; } $ lg = JRequest :: getCmd ( 'lang' , $ lang ) ; $ captcha_file = JURI :: root ( ) . 'index.php?option=com_aicontactsafe&sTask=captcha&task=captcha&pf=' . $ pf . '&r_id=' . $ r_id . '&lang=' . $ lg . '&format=raw&set_rand=' . $ set_rand ; echo '<img src="' . $ captcha_file . '" alt="&nbsp;" id="captcha" border="0" />' ; }
generate a new captcha code ( IE6 only )
generate a new captcha code ( IE6 only )