Пример #1
0
{
	BX.showWait(BX('auth_result'));
	BX.ajax.loadJSON('/freetrix/tools/seo_google.php?action=nullify_auth&sessid=' + BX.freetrix_sessid(), function(){
		window.lastSeoResult = null;
		BX.closeWait(BX('auth_result'));
		BX('auth_result').style.display = 'none';
		BX('auth_button').style.display = 'block';
	});
}

function makeAuth()
{
	BX('auth_button').style.display = 'none';
	BX('auth_code').style.display = 'block';
	var wnd = BX.util.popup('<?php 
echo CUtil::JSEscape($engine->getAuthUrl());
?>
', 700, 500);
}
</script>
<?php 
echo BeginNote();
?>
<div id="auth_button" style="display: <?php 
echo $bNeedAuth ? 'block' : 'none';
?>
">
	<p><?php 
echo Loc::getMessage('SEO_AUTH_HINT');
?>
</p>