// 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:
Executable
+19
@@ -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();
|
||||
Reference in New Issue
Block a user