// Merge -> revision 7941
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7948 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -127,6 +127,10 @@ class AdminCurrencies extends AdminTab
|
||||
{
|
||||
parent::displayOptionsList();
|
||||
|
||||
$dir = explode(DIRECTORY_SEPARATOR, dirname(__FILE__));
|
||||
for ($i = 0; $i < 2; ++$i)
|
||||
$adminDir = array_pop($dir);
|
||||
|
||||
echo '<br /><br />
|
||||
<form action="'.self::$currentIndex.'&token='.$this->token.'" method="post">
|
||||
<fieldset>
|
||||
@@ -140,6 +144,12 @@ class AdminCurrencies extends AdminTab
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>';
|
||||
echo '<br /></br />
|
||||
<fieldset>
|
||||
<legend><img src="../img/admin/tab-tools.gif" />'.$this->l('Currency rates update').'</legend>
|
||||
<p>'.$this->l('Place this URL in crontab or call it manually daily').':<br />
|
||||
<b>'.Tools::getShopDomain(true, true).__PS_BASE_URI__.$adminDir.DIRECTORY_SEPARATOR.'cron_currency_rates.php?secure_key='.md5(_COOKIE_KEY_.Configuration::get('PS_SHOP_NAME')).'</b></p>
|
||||
</fieldset>';
|
||||
}
|
||||
|
||||
public function displayForm($isMainTab = true)
|
||||
|
||||
@@ -139,7 +139,14 @@ class AdminGenerator extends AdminTab
|
||||
fwrite($writeFd, "# For more information about the robots.txt standard, see:\n");
|
||||
fwrite($writeFd, "# http://www.robotstxt.org/wc/robots.html\n\n");
|
||||
|
||||
//GoogleBot specific
|
||||
fwrite($writeFd, "# GoogleBot specific\n");
|
||||
fwrite($writeFd, "User-agent: Googlebot\n");
|
||||
foreach ($this->_rbData['GB'] as $GB)
|
||||
fwrite($writeFd, 'Disallow: '.__PS_BASE_URI__.$GB."\n");
|
||||
|
||||
// User-Agent
|
||||
fwrite($writeFd, "# All bots\n\n");
|
||||
fwrite($writeFd, "User-agent: *\n");
|
||||
|
||||
// Directories
|
||||
@@ -178,8 +185,11 @@ class AdminGenerator extends AdminTab
|
||||
$tab['Files'] = array('addresses.php', 'address.php', 'authentication.php', 'cart.php', 'discount.php', 'footer.php',
|
||||
'get-file.php', 'header.php', 'history.php', 'identity.php', 'images.inc.php', 'init.php', 'my-account.php', 'order.php', 'order-opc.php',
|
||||
'order-slip.php', 'order-detail.php', 'order-follow.php', 'order-return.php', 'order-confirmation.php', 'pagination.php', 'password.php',
|
||||
'pdf-invoice.php', 'pdf-order-return.php', 'pdf-order-slip.php', 'product-sort.php', 'search.php', 'statistics.php','attachment.php', 'guest-tracking',
|
||||
'*orderby=','*orderway=','*tag=','*id_currency=','*search_query=','*id_lang=','*back=','*utm_source=','*utm_medium=','*utm_campaign=','*n=');
|
||||
'pdf-invoice.php', 'pdf-order-return.php', 'pdf-order-slip.php', 'product-sort.php', 'search.php', 'statistics.php','attachment.php', 'guest-tracking');
|
||||
|
||||
$tab['GB'] = array(
|
||||
'*orderby=','*orderway=','*tag=','*id_currency=','*search_query=','*id_lang=','*back=','*utm_source=','*utm_medium=','*utm_campaign=','*n='
|
||||
);
|
||||
|
||||
return $tab;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user