Files
PrestaShop/modules/gsitemap/gsitemap-cron.php
mDeflotte c3b30c4422 // Gsitemap: Add cron url
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13953 b9a71923-0436-4b27-9f14-aed3839534dd
2012-03-08 08:44:54 +00:00

19 lines
561 B
PHP
Executable File

<?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();