<?php
/**
 * Magento
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE_AFL.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@magentocommerce.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Magento to newer
 * versions in the future. If you wish to customize Magento for your
 * needs please refer to http://www.magentocommerce.com for more information.
 *
 * @category   design_default
 * @package    MTurbo
 * @copyright  Copyright (c) Artio 2010 (www.artio.net)
 * @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?php
	$version = Mage::getVersionInfo();
	$formkeyInstalled = Mage::helper('core')->isModuleEnabled('Artio_FormKey');
	$formkeyEnabled   = (bool) Mage::getStoreConfig('web/formkey/disable_formkey');
?>
<?php if ($version['major'] >= 1 && $version['minor'] >= 8): ?>
	<?php if (!$formkeyInstalled): ?>
		<div style="background-color:#F5EFEA;border:1px solid #A49586;color:#663D11;margin:20px 20px 20px 10px;padding:10px">
			<p>
				Warning: You are using M&#x2011;Turbo on Magento 1.8.x or higher.
			</p>
			<p>
				If you want to use M&#x2011;Turbo on this version then you need to install module Artio&nbsp;FormKey. It will disable "formkey" protection introduced to latest Magento versions.
			</p>
			<p>
				With "formkey" protection Magento will behave strange (customer will not be able to login or add a product to the cart etc).
			</p>
			<p>
				You can download Artio&nbsp;FormKey <a href="http://www.artio.net/downloads/magento/m-turbo/magento-artio-formkey/details" title="Artio_FormKey">here</a> for free.<br />
			</p>
		</div>
	<?php elseif (!$formkeyEnabled): ?>
		<div style="background-color:#F5EFEA;border:1px solid #A49586;color:#663D11;margin:20px 20px 20px 10px;padding:10px">
			<p>
				Warning: You are using M&#x2011;Turbo on Magento 1.8.x or higher with activated "formkey" protection.
			</p>
			<p>
				With "formkey" protection Magento will behave strange (customer will not be able to login or add a product to the cart etc).
			</p>
			<p>
				You can enable it <a href="<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/system_config/edit', array('section' => 'web')) ?>" title="Artio_FormKey">here</a>.<br />
			</p>
		</div>
	<?php endif; ?>
<?php endif;
