the link wasn't working at all so I read the boards and then went into
mosemailcloak.php file and found this -
Code: Select all
$_MAMBOTS->registerFunction( 'onPrepareContent', 'botMosEmailCloak' );
/**
* Mambot that Cloaks all emails in content from spambots via javascript
*/
function botMosEmailCloak( $published, &$row, &$params, $page=0 ) {
global $database, $_MAMBOTS;
// check whether mambot has been unpublished
if ( !$published ) {
return true;
}
// simple performance check to determine whether bot should process further
if ( strpos( $row->text, '@' ) === false ) {
return true;
}
// simple check to allow disabling of bot
$regex = '{emailcloak=off}';
if ( strpos( $row->text, $regex ) !== false ) {
$row->text = str_replace( $regex, '', $row->text );
return true;
}
// check if param query has previously been processed
if ( !isset($_MAMBOTS->_content_mambot_params['mosemailcloak']) ) {
// load mambot params info
$query = "SELECT params"
. "\n FROM #__mambots"
. "\n WHERE element = 'mosemailcloak'"
. "\n AND folder = 'content'"
Code: Select all
$_MAMBOTS->registerFunction( 'onPrepareContent', 'botMosEmailCloak' );
/**
* Mambot that Cloaks all emails in content from spambots via javascript
*/
function botMosEmailCloak( $published, &$row, &$params, $page=0 ) {
global $database, $_MAMBOTS;
// check whether mambot has been unpublished
if ( !$published ) {
return true;
}
// simple performance check to determine whether bot should process further
if ( strpos( $row->text, '@' ) === false ) {
return true;
}
// simple check to allow disabling of bot
$regex = '{emailcloak=off}';
if ( strpos( $row->text, $regex ) == false ) {
$row->text = str_replace( $regex, '', $row->text );
return true;
}
// check if param query has previously been processed
if ( !isset($_MAMBOTS->_content_mambot_params['mosemailcloak']) ) {
// load mambot params info
$query = "SELECT params"
. "\n FROM #__mambots"
. "\n WHERE element = 'mosemailcloak'"
. "\n AND folder = 'content'"