specialBlock
global $rlXajax, $block_keys;

			if ( array_key_exists( 'massmailer_newsletter_block', $block_keys) )
			{
				$GLOBALS['reefless'] -> loadClass('MassmailerNewsletter', null, 'massmailer_newsletter');
				$rlXajax -> registerFunction( array( 'subscribe', $GLOBALS['rlMassmailerNewsletter'], 'ajaxSubscribe' ) );
			}
			

apTplHeader

			global $controller;
			
			if ( $controller == 'massmailer_newsletter' )
			{
				echo '<link href="'. RL_PLUGINS_URL .'massmailer_newsletter/static/aStyle.css" type="text/css" rel="stylesheet" />';
			}
		

tplFooter

			global $rlSmarty, $page_info, $tpl_settings;
			
			if ( $tpl_settings['type'] == 'responsive_42' ) {
				return;
			}

			if ( in_array($page_info['Key'], array('registration', 'my_profile')) ) {
				$rlSmarty -> display( RL_PLUGINS . 'massmailer_newsletter' . RL_DS . 'footer.tpl' );
			}
		

registerSuccess

			global $rlDb;
			
			if ( !$_POST['profile']['mn_subscribe'] )
			{
				$max_id = $rlDb -> getRow("SELECT MAX(`ID`) AS `ID` FROM `". RL_DBPREFIX ."accounts`");
				$account_id = $max_id['ID'];

				$sql = "UPDATE `". RL_DBPREFIX ."accounts` SET `Subscribe` = '0' WHERE `ID` = '{$account_id}' LIMIT 1";
				$rlDb -> query($sql);
			}
		

profileEditProfileDone

			global $rlDb, $account_info;
			
			$subscribe = (int)$_POST['profile']['mn_subscribe'];

			$sql = "UPDATE `". RL_DBPREFIX ."accounts` SET `Subscribe` = '{$subscribe}' WHERE `ID` = '{$account_info['ID']}' LIMIT 1";
			$rlDb -> query($sql);
		

profileController

			global $profile_info;
			
			if ( !$_POST['fromPost_profile'] )
			{
				$_POST['profile']['mn_subscribe'] = $profile_info['Subscribe'];
			}
		

tplRegistrationCheckbox

			global $tpl_settings, $rlSmarty;
			
			if ( $tpl_settings['type'] != 'responsive_42' ) {
				return;
			}

			$rlSmarty -> display(RL_PLUGINS .'massmailer_newsletter'. RL_DS .'checkbox.tpl');
		

tplProfileCheckbox

			global $tpl_settings, $rlSmarty;
			
			if ( $tpl_settings['type'] != 'responsive_42' ) {
				return;
			}

			$rlSmarty -> display(RL_PLUGINS .'massmailer_newsletter'. RL_DS .'checkbox.tpl');
		

tplHeader

			global $blocks, $tpl_settings;

			if ( $blocks['massmailer_newsletter_block'] && $tpl_settings['type'] == 'responsive_42' ) {
				echo '<link href="'.RL_PLUGINS_URL.'massmailer_newsletter/static/style.css" type="text/css" rel="stylesheet" />';
			}
		

