From c3b30c4422ea2a1acdafd91101254e4eaaba12da Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Thu, 8 Mar 2012 08:44:54 +0000 Subject: [PATCH] // Gsitemap: Add cron url git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13953 b9a71923-0436-4b27-9f14-aed3839534dd --- modules/gsitemap/gsitemap-cron.php | 19 +++++++++++++++++++ modules/gsitemap/gsitemap.php | 6 +++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100755 modules/gsitemap/gsitemap-cron.php diff --git a/modules/gsitemap/gsitemap-cron.php b/modules/gsitemap/gsitemap-cron.php new file mode 100755 index 000000000..e8ae96de2 --- /dev/null +++ b/modules/gsitemap/gsitemap-cron.php @@ -0,0 +1,19 @@ +link = new Link(); + +echo $gsitemap->generateSitemapIndex(); \ No newline at end of file diff --git a/modules/gsitemap/gsitemap.php b/modules/gsitemap/gsitemap.php index e20f19309..adbeab364 100644 --- a/modules/gsitemap/gsitemap.php +++ b/modules/gsitemap/gsitemap.php @@ -94,7 +94,7 @@ class Gsitemap extends Module * * @return bool */ - private function generateSitemapIndex() + public function generateSitemapIndex() { $xmlString = << @@ -416,10 +416,10 @@ XML; -


+

'.$this->l('Use cron job to re-build the sitemap:').'

- '.$domain.Tools::htmlentitiesUTF8(dirname($_SERVER['REQUEST_URI'])).'?controller=adminmodules&configure=gsitemap&token='.Tools::getValue('token').'&btnSubmit&GSITEMAP_ALL_CMS='.((int)Configuration::get('GSITEMAP_ALL_CMS')).'&GSITEMAP_ALL_PRODUCTS='.((int)Configuration::get('GSITEMAP_ALL_PRODUCTS')).' + '.$domain.__PS_BASE_URI__.'modules/gsitemap/gsitemap-cron?&token='.substr(Tools::encrypt('gsitemap/cron'),0,10).'&GSITEMAP_ALL_CMS='.((int)Configuration::get('GSITEMAP_ALL_CMS')).'&GSITEMAP_ALL_PRODUCTS='.((int)Configuration::get('GSITEMAP_ALL_PRODUCTS')).'

'; }