/**
 * Event handler for onAfterStart
 */
function cbpaidSysPlugin_onAfterStart()
{
    $_CBPAID_SYSPLUG = new cbpaidSysPlugin();
    $_CBPAID_SYSPLUG->checkExpireMe();
    $_CBPAID_SYSPLUG->triggerSysPlugins();
}
			$row->fulltext		=	preg_replace_callback( '/\{cbsubs:plan:(\d+):(.*?)\}/s', array( $cbpaidBot, 'replacePlanSubstitutions' ), $row->fulltext );
		}

		if ( isset( $row->text ) ) {
			$row->text			=	preg_replace_callback( '/\{cbsubs:plan:(\d+):(.*?)\}/s', array( $cbpaidBot, 'replacePlanSubstitutions' ), $row->text );
		}
	}
	cbpaidErrorHandler::off();

}
/**
 * J1.6: need to fix the hardcoded MC in the VIEW of the "MVC" of 1.6:
 */
function cbpaidsubsbot_onAfterRender( ) {
	$text			=	JResponse::getBody();
	$text			=	preg_replace( '#<a [^>]+>\\s*</a>(<a class="cbregPayToViewRedirectLink" href=")#', '$1', $text );
	JResponse::setBody( $text );
}

/**
 * Trigger listener for OnAlittleMoreAfterStart.
 *
 * @return void
 */
function cbpaidContentOnAlittleMoreAfterStart( ) {
	cbpaidBot::getInstance()->onAlittleMoreAfterStart();
}
cbpaidSysPlugin::registerOnRealStart( 'cbpaidContentOnAlittleMoreAfterStart' );

cbpaidErrorHandler::off();