// Gsitemap: Add cron url

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13953 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mDeflotte
2012-03-08 08:44:54 +00:00
parent 448fcb90d3
commit c3b30c4422
2 changed files with 22 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
<?php
include(dirname(__FILE__).'/../../config/config.inc.php');
include(dirname(__FILE__).'/gsitemap.php');
if (substr(Tools::encrypt('gsitemap/cron'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('gsitemap'))
die('Bad token');
$gsitemap = new Gsitemap();
if (!defined('_PS_BASE_URL_'))
define('_PS_BASE_URL_', Tools::getShopDomain(true));
if (!defined('_PS_BASE_URL_SSL_'))
define('_PS_BASE_URL_SSL_', Tools::getShopDomainSsl(true));
$context = Context::getContext();
$context->link = new Link();
echo $gsitemap->generateSitemapIndex();