Initial commit

This commit is contained in:
2019-11-20 07:44:43 +01:00
commit 5bf49c4a81
41188 changed files with 5459177 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Google sitemap
## About
Generate your Google sitemap file
## Contributing
PrestaShop modules are open-source extensions to the PrestaShop e-commerce solution. Everyone is welcome and even encouraged to contribute with their own improvements.
### Requirements
Contributors **must** follow the following rules:
* **Make your Pull Request on the "dev" branch**, NOT the "master" branch.
* Do not update the module's version number.
* Follow [the coding standards][1].
### Process in details
Contributors wishing to edit a module's files should follow the following process:
1. Create your GitHub account, if you do not have one already.
2. Fork the gsitemap project to your GitHub account.
3. Clone your fork to your local machine in the ```/modules``` directory of your PrestaShop installation.
4. Create a branch in your local clone of the module for your changes.
5. Change the files in your branch. Be sure to follow [the coding standards][1]!
6. Push your changed branch to your fork in your GitHub account.
7. Create a pull request for your changes **on the _'dev'_ branch** of the module's project. Be sure to follow [the commit message norm][2] in your pull request. If you need help to make a pull request, read the [Github help page about creating pull requests][3].
8. Wait for one of the core developers either to include your change in the codebase, or to comment on possible improvements you should make to your code.
That's it: you have contributed to this open-source project! Congratulations!
[1]: https://devdocs.prestashop.com/1.7/development/coding-standards
[2]: https://devdocs.prestashop.com/1.7/contribute/contribution-guidelines/
[3]: https://help.github.com/articles/about-pull-requests/

View File

View File

@@ -0,0 +1,19 @@
{
"name": "prestashop/gsitemap",
"description": "PrestaShop module gsitemap",
"homepage": "https://github.com/PrestaShop/gsitemap",
"license": "AFL-3.0",
"authors": [
{
"name": "PrestaShop SA",
"email": "contact@prestashop.com"
}
],
"require": {
"php": ">=5.6.0"
},
"config": {
"preferred-install": "dist"
},
"type": "prestashop-module"
}

19
web/modules/gsitemap/composer.lock generated Normal file
View File

@@ -0,0 +1,19 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "81f58249ac992a89afb46c09274434a9",
"packages": [],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": ">=5.6.0"
},
"platform-dev": []
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>gsitemap</name>
<displayName><![CDATA[Google sitemap]]></displayName>
<version><![CDATA[4.1.0]]></version>
<description><![CDATA[Generate your Google sitemap file]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[seo]]></tab>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8" ?>
<module>
<name>gsitemap</name>
<displayName><![CDATA[Google sitemap]]></displayName>
<version><![CDATA[4.1.0]]></version>
<description><![CDATA[Generate your Google sitemap file]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[seo]]></tab>
<confirmUninstall><![CDATA[Are you sure you want to uninstall this module?]]></confirmUninstall>
<is_configurable>1</is_configurable>
<need_instance>0</need_instance>
<limited_countries></limited_countries>
</module>

View File

@@ -0,0 +1,22 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google Sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Generieren Sie Ihre Google Sitemap-Datei';
$_MODULE['<{gsitemap}prestashop>gsitemap_5bbdad908e423585a7ecc6b61b66b313'] = 'Kann nicht erstellt werden';
$_MODULE['<{gsitemap}prestashop>gsitemap_09fa1e865bdcf4d3215d5b0005b93154'] = 'sitemap.xml Datei.';
$_MODULE['<{gsitemap}prestashop>gsitemap_5a517cec50ac8e742f6583c6c404c4e9'] = 'Sitemap-Datei erfolgreich erzeugt';
$_MODULE['<{gsitemap}prestashop>gsitemap_0a6ee1a4f10278211d74152e633d0ed0'] = 'Fehler beim Erstellen der Sitemap-Datei';
$_MODULE['<{gsitemap}prestashop>gsitemap_eb175747116b689caadea1b84202f513'] = 'Ihr Google-Sitemap-Datei ist online unter folgender Adresse:';
$_MODULE['<{gsitemap}prestashop>gsitemap_39d616ecc73e174052f1877ac2b3c853'] = 'Aktualisierung:';
$_MODULE['<{gsitemap}prestashop>gsitemap_b908c2f34052b5276e0bf50f0e042211'] = 'Dateigröße:';
$_MODULE['<{gsitemap}prestashop>gsitemap_3f69f5c6c3c90eee482f28ae77390cb9'] = 'Indizierte Seiten:';
$_MODULE['<{gsitemap}prestashop>gsitemap_b8cb67a25f16d9000d8c974e30441b59'] = 'Die Sitemap enthält auch Produkte der nicht aktivierten Kategorien';
$_MODULE['<{gsitemap}prestashop>gsitemap_60ee4e03c30c4827c80eb31bfd27130d'] = 'Die Sitemap enthält auch CMS-Seiten die nicht in einem CMS-Block sind';
$_MODULE['<{gsitemap}prestashop>gsitemap_8103220a578f92ec726809c3d47adc6e'] = 'Sitemap-Datei erzeugen';
$_MODULE['<{gsitemap}prestashop>gsitemap_0033cf1fdbd4354facfaa51f6f0de6a4'] = 'Sitemap-Datei aktualisieren';
$_MODULE['<{gsitemap}prestashop>gsitemap_f5a592018c8b55d2c968515ad7c58c91'] = 'Search Engine Optimization';
$_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Siehe';
$_MODULE['<{gsitemap}prestashop>gsitemap_8334797b9b3383d4f48d98178b8845ea'] = 'diese Seite';
$_MODULE['<{gsitemap}prestashop>gsitemap_abf27597777430142de13ed6eea36d75'] = 'für weitere Informationen';

View File

@@ -0,0 +1,6 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google Sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Genere su fichero de Google Sitemap';

View File

@@ -0,0 +1,39 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Génère votre fichier sitemap pour Google';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Vos fichiers sitemap ont été créés avec succès. N\'oubliez pas de configurer l\'URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'dans votre interface Google Webmaster';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Vos fichiers sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Vos sitemaps ont déjà été créées.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Continuer';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Veuillez configurer l\'URL de sitemap suivante dans votre interface Google Webmaster :';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Cette URL correspond au fichier sitemap maître et fait référence à :';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Votre dernière mise à jour a été effectuée le :';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Pour une meilleure utilisation du module, veuillez vous assurer que vous avez';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'défini le paramètre de configuration PHP \"memory_limit\" à au moins 128M';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'défini le paramètre de configuration PHP \"max_execution_time\" à au moins 30 (secondes)';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Vous pouvez éditer ces paramètres dans votre fichier \"php.ini\". Pour plus de détails, veuillez contacter votre hébergeur.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Configurer votre sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Plusieurs fichiers sitemap vont être générés, en fonction de la manière dont votre serveur est configuré et du nombre de produits actifs dans votre catalogue.';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'À quelle fréquence mettez vous à jour votre boutique?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'en permanence';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'toutes les heures';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'tous les jours';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'toutes les semaines';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'tous les mois';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'tous les ans';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'jamais';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Quelles pages voulez vous exclure de votre sitemap?';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Créer votre sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'Cela peut prendre plusieurs minutes';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Vous pouvez générer votre sitemap de deux manières :';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manuellement :';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'en utilisant le formulaire ci-dessus (aussi souvent que nécessaire)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-ou-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automatiquement :';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Demandez à votre hébergeur de mettre en place une \"tâche Cron\" pour charger l\'URL suivante à la fréquence de votre choix :';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Cela générera automatiquement vos fichiers sitemap XML.';

View File

@@ -0,0 +1,62 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
/*
* This file can be called using a cron to generate Google sitemap files automatically
*/
include(dirname(__FILE__) . '/../../config/config.inc.php');
include(dirname(__FILE__) . '/../../init.php');
/* Check security token */
if (!Tools::isPHPCLI()) {
if (Tools::substr(Tools::encrypt('gsitemap/cron'), 0, 10) != Tools::getValue('token') || !Module::isInstalled('gsitemap')) {
die('Bad token');
}
}
$gsitemap = Module::getInstanceByName('gsitemap');
/* Check if the module is enabled */
if ($gsitemap->active) {
/* Check if the requested shop exists */
$shops = Db::getInstance()->ExecuteS('SELECT id_shop FROM `' . _DB_PREFIX_ . 'shop`');
$list_id_shop = array();
foreach ($shops as $shop) {
$list_id_shop[] = (int) $shop['id_shop'];
}
$id_shop = (Tools::getIsset(Tools::getValue('id_shop')) && in_array(Tools::getValue('id_shop'), $list_id_shop)) ? (int) Tools::getValue('id_shop') : (int) Configuration::get('PS_SHOP_DEFAULT');
$gsitemap->cron = true;
/* for the main run initiat the sitemap's files name stored in the database */
if (!Tools::getIsset(Tools::getValue('continue'))) {
$gsitemap->emptySitemap((int) $id_shop);
}
/* Create the Google sitemap's files */
$gsitemap->createSitemap((int) $id_shop);
}

View File

@@ -0,0 +1,797 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
if (!defined('_PS_VERSION_')) {
exit;
}
class Gsitemap extends Module
{
const HOOK_ADD_URLS = 'gSitemapAppendUrls';
public $cron = false;
protected $sql_checks = array();
public function __construct()
{
$this->name = 'gsitemap';
$this->tab = 'seo';
$this->version = '4.1.0';
$this->author = 'PrestaShop';
$this->need_instance = 0;
$this->bootstrap = true;
parent::__construct();
$this->displayName = $this->trans('Google sitemap', array(), 'Modules.Gsitemap.Admin');
$this->description = $this->trans('Generate your Google sitemap file', array(), 'Modules.Gsitemap.Admin');
$this->ps_versions_compliancy = array(
'min' => '1.7.1.0',
'max' => _PS_VERSION_,
);
$this->confirmUninstall = $this->trans('Are you sure you want to uninstall this module?', array(), 'Admin.Notifications.Warning');
$this->type_array = array(
'home',
'meta',
'product',
'category',
'cms',
'module',
);
$metas = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'meta` ORDER BY `id_meta` ASC');
$disabled_metas = explode(',', Configuration::get('GSITEMAP_DISABLE_LINKS'));
foreach ($metas as $meta) {
if (in_array($meta['id_meta'], $disabled_metas)) {
if (($key = array_search($meta['page'], $this->type_array)) !== false) {
unset($this->type_array[$key]);
}
}
}
}
/**
* Google sitemap installation process:
*
* Step 1 - Pre-set Configuration option values
* Step 2 - Install the Addon and create a database table to store sitemap files name by shop
*
* @return bool Installation result
*/
public function install()
{
foreach (array(
'GSITEMAP_PRIORITY_HOME' => 1.0,
'GSITEMAP_PRIORITY_PRODUCT' => 0.9,
'GSITEMAP_PRIORITY_CATEGORY' => 0.8,
'GSITEMAP_PRIORITY_CMS' => 0.7,
'GSITEMAP_FREQUENCY' => 'weekly',
'GSITEMAP_CHECK_IMAGE_FILE' => false,
'GSITEMAP_LAST_EXPORT' => false,
) as $key => $val) {
if (!Configuration::updateValue($key, $val)) {
return false;
}
}
return parent::install() && Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'gsitemap_sitemap` (`link` varchar(255) DEFAULT NULL, `id_shop` int(11) DEFAULT 0) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8;') && $this->installHook();
}
/**
* Registers hook(s)
*
* @return bool
*/
protected function installHook()
{
$hook = new Hook();
$hook->name = self::HOOK_ADD_URLS;
$hook->title = 'GSitemap Append URLs';
$hook->description = 'This hook allows a module to add URLs to a generated sitemap';
$hook->position = true;
return $hook->save();
}
/**
* Google sitemap uninstallation process:
*
* Step 1 - Remove Configuration option values from database
* Step 2 - Remove the database containing the generated sitemap files names
* Step 3 - Uninstallation of the Addon itself
*
* @return bool Uninstallation result
*/
public function uninstall()
{
foreach (array(
'GSITEMAP_PRIORITY_HOME' => '',
'GSITEMAP_PRIORITY_PRODUCT' => '',
'GSITEMAP_PRIORITY_CATEGORY' => '',
'GSITEMAP_PRIORITY_CMS' => '',
'GSITEMAP_FREQUENCY' => '',
'GSITEMAP_CHECK_IMAGE_FILE' => '',
'GSITEMAP_LAST_EXPORT' => '',
) as $key => $val) {
if (!Configuration::deleteByName($key)) {
return false;
}
}
$hook = new Hook(Hook::getIdByName(self::HOOK_ADD_URLS));
if (Validate::isLoadedObject($hook)) {
$hook->delete();
}
return parent::uninstall() && $this->removeSitemap();
}
/**
* Delete all the generated sitemap files and drop the addon table.
*
* @return bool
*/
public function removeSitemap()
{
$links = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'gsitemap_sitemap`');
if ($links) {
foreach ($links as $link) {
if (!@unlink($this->normalizeDirectory(_PS_ROOT_DIR_) . $link['link'])) {
return false;
}
}
}
if (!Db::getInstance()->Execute('DROP TABLE `' . _DB_PREFIX_ . 'gsitemap_sitemap`')) {
return false;
}
return true;
}
public function getContent()
{
/* Store the posted parameters and generate a new Google sitemap files for the current Shop */
if (Tools::isSubmit('SubmitGsitemap')) {
Configuration::updateValue('GSITEMAP_FREQUENCY', pSQL(Tools::getValue('gsitemap_frequency')));
Configuration::updateValue('GSITEMAP_INDEX_CHECK', '');
Configuration::updateValue('GSITEMAP_CHECK_IMAGE_FILE', pSQL(Tools::getValue('gsitemap_check_image_file')));
$meta = '';
if (Tools::getValue('gsitemap_meta')) {
$meta .= implode(', ', Tools::getValue('gsitemap_meta'));
}
Configuration::updateValue('GSITEMAP_DISABLE_LINKS', $meta);
$this->emptySitemap();
$this->createSitemap();
/* If no posted form and the variable [continue] is found in the HTTP request variable keep creating sitemap */
} elseif (Tools::getValue('continue')) {
$this->createSitemap();
}
/* Empty the Shop domain cache */
if (method_exists('ShopUrl', 'resetMainDomainCache')) {
ShopUrl::resetMainDomainCache();
}
/* Get Meta pages and remove index page it's managed elsewhere (@see $this->getHomeLink()) */
$store_metas = array_filter(Meta::getMetasByIdLang((int) $this->context->cookie->id_lang), function ($meta) {
return $meta['page'] != 'index';
});
$store_url = $this->context->link->getBaseLink();
$this->context->smarty->assign(array(
'gsitemap_form' => './index.php?tab=AdminModules&configure=gsitemap&token=' . Tools::getAdminTokenLite('AdminModules') . '&tab_module=' . $this->tab . '&module_name=gsitemap',
'gsitemap_cron' => $store_url . 'modules/gsitemap/gsitemap-cron.php?token=' . Tools::substr(Tools::encrypt('gsitemap/cron'), 0, 10) . '&id_shop=' . $this->context->shop->id,
'gsitemap_feed_exists' => file_exists($this->normalizeDirectory(_PS_ROOT_DIR_) . 'index_sitemap.xml'),
'gsitemap_last_export' => Configuration::get('GSITEMAP_LAST_EXPORT'),
'gsitemap_frequency' => Configuration::get('GSITEMAP_FREQUENCY'),
'gsitemap_store_url' => $store_url,
'gsitemap_links' => Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'gsitemap_sitemap` WHERE id_shop = ' . (int) $this->context->shop->id),
'store_metas' => $store_metas,
'gsitemap_disable_metas' => explode(',', Configuration::get('GSITEMAP_DISABLE_LINKS')),
'gsitemap_customer_limit' => array(
'max_exec_time' => (int) ini_get('max_execution_time'),
'memory_limit' => (int) ini_get('memory_limit'),
),
'prestashop_ssl' => Configuration::get('PS_SSL_ENABLED'),
'gsitemap_check_image_file' => Configuration::get('GSITEMAP_CHECK_IMAGE_FILE'),
'shop' => $this->context->shop,
));
return $this->display(__FILE__, 'views/templates/admin/configuration.tpl');
}
/**
* Delete all the generated sitemap files from the files system and the database.
*
* @param int $id_shop
*
* @return bool
*/
public function emptySitemap($id_shop = 0)
{
if (!isset($this->context)) {
$this->context = new Context();
}
if ($id_shop != 0) {
$this->context->shop = new Shop((int) $id_shop);
}
$links = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'gsitemap_sitemap` WHERE id_shop = ' . (int) $this->context->shop->id);
if ($links) {
foreach ($links as $link) {
@unlink($this->normalizeDirectory(_PS_ROOT_DIR_) . $link['link']);
}
return Db::getInstance()->Execute('DELETE FROM `' . _DB_PREFIX_ . 'gsitemap_sitemap` WHERE id_shop = ' . (int) $this->context->shop->id);
}
return true;
}
/**
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param array $new_link contain the link elements
* @param string $lang language of link to add
* @param int $index index of the current Google sitemap file
* @param int $i count of elements added to sitemap main array
* @param int $id_obj identifier of the object of the link to be added to the Gogle sitemap file
*
* @return bool
*/
public function addLinkToSitemap(&$link_sitemap, $new_link, $lang, &$index, &$i, $id_obj)
{
if ($i <= 25000 && memory_get_usage() < 100000000) {
$link_sitemap[] = $new_link;
++$i;
return true;
} else {
$this->recursiveSitemapCreator($link_sitemap, $lang, $index);
if ($index % 20 == 0 && !$this->cron) {
$this->context->smarty->assign(array(
'gsitemap_number' => (int) $index,
'gsitemap_refresh_page' => $this->context->link->getAdminLink('AdminModules', true, array(), array(
'tab_module' => $this->tab,
'module_name' => $this->name,
'continue' => 1,
'type' => $new_link['type'],
'lang' => $lang,
'index' => $index,
'id' => (int) $id_obj,
'id_shop' => $this->context->shop->id,
)),
));
return false;
} elseif ($index % 20 == 0 && $this->cron) {
header('Refresh: 5; url=http' . (Configuration::get('PS_SSL_ENABLED') ? 's' : '') . '://' . Tools::getShopDomain(false, true) . __PS_BASE_URI__ . 'modules/gsitemap/gsitemap-cron.php?continue=1&token=' . Tools::substr(Tools::encrypt('gsitemap/cron'), 0, 10) . '&type=' . $new_link['type'] . '&lang=' . $lang . '&index=' . $index . '&id=' . (int) $id_obj . '&id_shop=' . $this->context->shop->id);
die();
} else {
if ($this->cron) {
Tools::redirect($this->context->link->getBaseLink() . 'modules/gsitemap/gsitemap-cron.php?continue=1&token=' . Tools::substr(Tools::encrypt('gsitemap/cron'), 0, 10) . '&type=' . $new_link['type'] . '&lang=' . $lang . '&index=' . $index . '&id=' . (int) $id_obj . '&id_shop=' . $this->context->shop->id);
} else {
Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', true, array(), array(
'tab_module' => $this->tab,
'module_name' => $this->name,
'continue' => 1,
'type' => $new_link['type'],
'lang' => $lang,
'index' => $index,
'id' => (int) $id_obj,
'id_shop' => $this->context->shop->id,
)));
}
die();
}
}
}
/**
* Hydrate $link_sitemap with home link
*
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang language of link to add
* @param int $index index of the current Google sitemap file
* @param int $i count of elements added to sitemap main array
*
* @return bool
*/
protected function getHomeLink(&$link_sitemap, $lang, &$index, &$i)
{
$link = new Link();
return $this->addLinkToSitemap($link_sitemap, array(
'type' => 'home',
'page' => 'home',
'link' => $link->getPageLink('index', null, $lang['id_lang']),
'image' => false,
), $lang['iso_code'], $index, $i, -1);
}
/**
* Hydrate $link_sitemap with meta link
*
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang language of link to add
* @param int $index index of the current Google sitemap file
* @param int $i count of elements added to sitemap main array
* @param int $id_meta meta object identifier
*
* @return bool
*/
protected function getMetaLink(&$link_sitemap, $lang, &$index, &$i, $id_meta = 0)
{
if (method_exists('ShopUrl', 'resetMainDomainCache')) {
ShopUrl::resetMainDomainCache();
}
$link = new Link();
$metas = Db::getInstance()->ExecuteS('SELECT * FROM `' . _DB_PREFIX_ . 'meta` WHERE `configurable` > 0 AND `id_meta` >= ' . (int) $id_meta . ' AND page <> \'index\' ORDER BY `id_meta` ASC');
foreach ($metas as $meta) {
$url = '';
if (!in_array($meta['id_meta'], explode(',', Configuration::get('GSITEMAP_DISABLE_LINKS')))) {
$url = $link->getPageLink($meta['page'], null, $lang['id_lang']);
if (!$this->addLinkToSitemap($link_sitemap, array(
'type' => 'meta',
'page' => $meta['page'],
'link' => $url,
'image' => false,
), $lang['iso_code'], $index, $i, $meta['id_meta'])) {
return false;
}
}
}
return true;
}
/**
* Hydrate $link_sitemap with products link
*
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang language of link to add
* @param int $index index of the current Google sitemap file
* @param int $i count of elements added to sitemap main array
* @param int $id_product product object identifier
*
* @return bool
*/
protected function getProductLink(&$link_sitemap, $lang, &$index, &$i, $id_product = 0)
{
$link = new Link();
if (method_exists('ShopUrl', 'resetMainDomainCache')) {
ShopUrl::resetMainDomainCache();
}
$products_id = Db::getInstance()->ExecuteS('SELECT `id_product` FROM `' . _DB_PREFIX_ . 'product_shop` WHERE `id_product` >= ' . (int) $id_product . ' AND `active` = 1 AND `visibility` != \'none\' AND `id_shop`=' . $this->context->shop->id . ' ORDER BY `id_product` ASC');
foreach ($products_id as $product_id) {
$product = new Product((int) $product_id['id_product'], false, (int) $lang['id_lang']);
$url = $link->getProductLink($product, $product->link_rewrite, htmlspecialchars(strip_tags($product->category)), $product->ean13, (int) $lang['id_lang'], (int) $this->context->shop->id, 0);
$id_image = Product::getCover((int) $product_id['id_product']);
if (isset($id_image['id_image'])) {
$image_link = $this->context->link->getImageLink($product->link_rewrite, $product->id . '-' . (int) $id_image['id_image'], ImageType::getFormattedName('large'));
$image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace(array(
'https',
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri,
), array(
'http',
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri . Context::getContext()->shop->virtual_uri,
), $image_link) : $image_link;
}
$file_headers = (Configuration::get('GSITEMAP_CHECK_IMAGE_FILE')) ? @get_headers($image_link) : true;
$image_product = array();
if (isset($image_link) && ($file_headers[0] != 'HTTP/1.1 404 Not Found' || $file_headers === true)) {
$image_product = array(
'title_img' => htmlspecialchars(strip_tags($product->name)),
'caption' => htmlspecialchars(strip_tags($product->description_short)),
'link' => $image_link,
);
}
if (!$this->addLinkToSitemap($link_sitemap, array(
'type' => 'product',
'page' => 'product',
'lastmod' => $product->date_upd,
'link' => $url,
'image' => $image_product,
), $lang['iso_code'], $index, $i, $product_id['id_product'])) {
return false;
}
unset($image_link);
}
return true;
}
/**
* Hydrate $link_sitemap with categories link
*
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang language of link to add
* @param int $index index of the current Google sitemap file
* @param int $i count of elements added to sitemap main array
* @param int $id_category category object identifier
*
* @return bool
*/
protected function getCategoryLink(&$link_sitemap, $lang, &$index, &$i, $id_category = 0)
{
$link = new Link();
if (method_exists('ShopUrl', 'resetMainDomainCache')) {
ShopUrl::resetMainDomainCache();
}
$categories_id = Db::getInstance()->ExecuteS('SELECT c.id_category FROM `' . _DB_PREFIX_ . 'category` c
INNER JOIN `' . _DB_PREFIX_ . 'category_shop` cs ON c.`id_category` = cs.`id_category`
WHERE c.`id_category` >= ' . (int) $id_category . ' AND c.`active` = 1 AND c.`id_category` != ' . (int) Configuration::get('PS_ROOT_CATEGORY') . ' AND c.id_category != ' . (int) Configuration::get('PS_HOME_CATEGORY') . ' AND c.id_parent > 0 AND c.`id_category` > 0 AND cs.`id_shop` = ' . (int) $this->context->shop->id . ' ORDER BY c.`id_category` ASC');
foreach ($categories_id as $category_id) {
$category = new Category((int) $category_id['id_category'], (int) $lang['id_lang']);
$url = $link->getCategoryLink($category, urlencode($category->link_rewrite), (int) $lang['id_lang']);
if ($category->id_image) {
$image_link = $this->context->link->getCatImageLink($category->link_rewrite, (int) $category->id_image, ImageType::getFormattedName('category'));
$image_link = (!in_array(rtrim(Context::getContext()->shop->virtual_uri, '/'), explode('/', $image_link))) ? str_replace(array(
'https',
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri,
), array(
'http',
Context::getContext()->shop->domain . Context::getContext()->shop->physical_uri . Context::getContext()->shop->virtual_uri,
), $image_link) : $image_link;
}
$file_headers = (Configuration::get('GSITEMAP_CHECK_IMAGE_FILE')) ? @get_headers($image_link) : true;
$image_category = array();
if (isset($image_link) && ($file_headers[0] != 'HTTP/1.1 404 Not Found' || $file_headers === true)) {
$image_category = array(
'title_img' => htmlspecialchars(strip_tags($category->name)),
'caption' => Tools::substr(htmlspecialchars(strip_tags($category->description)), 0, 350),
'link' => $image_link,
);
}
if (!$this->addLinkToSitemap($link_sitemap, array(
'type' => 'category',
'page' => 'category',
'lastmod' => $category->date_upd,
'link' => $url,
'image' => $image_category,
), $lang['iso_code'], $index, $i, (int) $category_id['id_category'])) {
return false;
}
unset($image_link);
}
return true;
}
/**
* return the link elements for the CMS object
*
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang the language of link to add
* @param int $index the index of the current Google sitemap file
* @param int $i the count of elements added to sitemap main array
* @param int $id_cms the CMS object identifier
*
* @return bool
*/
protected function getCmsLink(&$link_sitemap, $lang, &$index, &$i, $id_cms = 0)
{
$link = new Link();
if (method_exists('ShopUrl', 'resetMainDomainCache')) {
ShopUrl::resetMainDomainCache();
}
$cmss_id = Db::getInstance()->ExecuteS('SELECT c.`id_cms` FROM `' . _DB_PREFIX_ . 'cms` c INNER JOIN `' . _DB_PREFIX_ . 'cms_lang` cl ON c.`id_cms` = cl.`id_cms` ' . ($this->tableColumnExists(_DB_PREFIX_ . 'supplier_shop') ? 'INNER JOIN `' . _DB_PREFIX_ . 'cms_shop` cs ON c.`id_cms` = cs.`id_cms` ' : '') . 'INNER JOIN `' . _DB_PREFIX_ . 'cms_category` cc ON c.id_cms_category = cc.id_cms_category AND cc.active = 1
WHERE c.`active` =1 AND c.`indexation` =1 AND c.`id_cms` >= ' . (int) $id_cms . ($this->tableColumnExists(_DB_PREFIX_ . 'supplier_shop') ? ' AND cs.id_shop = ' . (int) $this->context->shop->id : '') . ' AND cl.`id_lang` = ' . (int) $lang['id_lang'] . ' GROUP BY c.`id_cms` ORDER BY c.`id_cms` ASC');
if (is_array($cmss_id)) {
foreach ($cmss_id as $cms_id) {
$cms = new CMS((int) $cms_id['id_cms'], $lang['id_lang']);
$cms->link_rewrite = urlencode((is_array($cms->link_rewrite) ? $cms->link_rewrite[(int) $lang['id_lang']] : $cms->link_rewrite));
$url = $link->getCMSLink($cms, null, null, $lang['id_lang']);
if (!$this->addLinkToSitemap($link_sitemap, array(
'type' => 'cms',
'page' => 'cms',
'link' => $url,
'image' => false,
), $lang['iso_code'], $index, $i, $cms_id['id_cms'])) {
return false;
}
}
}
return true;
}
/**
* Returns link elements generated by modules subscribes to hook gsitemap::HOOK_ADD_URLS
*
* The hook expects modules to return a vector of associative arrays each of them being acceptable by
* the gsitemap::_addLinkToSitemap() second attribute (minus the 'type' index).
* The 'type' index is automatically set to 'module' (not sure here, should we be safe or trust modules?).
*
* @param array $link_sitemap by ref. accumulator for all the links for the Google sitemap file to be generated
* @param string $lang the language being processed
* @param int $index the index of the current Google sitemap file
* @param int $i the count of elements added to sitemap main array
* @param int $num_link restart at link number #$num_link
*
* @return bool
*/
protected function getModuleLink(&$link_sitemap, $lang, &$index, &$i, $num_link = 0)
{
$modules_links = Hook::exec(self::HOOK_ADD_URLS, array(
'lang' => $lang,
), null, true);
if (empty($modules_links) || !is_array($modules_links)) {
return true;
}
$links = array();
foreach ($modules_links as $module_links) {
$links = array_merge($links, $module_links);
}
foreach ($links as $n => $link) {
if ($num_link > $n) {
continue;
}
$link['type'] = 'module';
if (!$this->addLinkToSitemap($link_sitemap, $link, $lang['iso_code'], $index, $i, $n)) {
return false;
}
}
return true;
}
/**
* Create the Google sitemap by Shop
*
* @param int $id_shop Shop identifier
*
* @return bool
*/
public function createSitemap($id_shop = 0)
{
if (@fopen($this->normalizeDirectory(_PS_ROOT_DIR_) . '/test.txt', 'wb') == false) {
$this->context->smarty->assign('google_maps_error', $this->trans('An error occured while trying to check your file permissions. Please adjust your permissions to allow PrestaShop to write a file in your root directory.', array(), 'Modules.Gsitemap.Admin'));
return false;
} else {
@unlink($this->normalizeDirectory(_PS_ROOT_DIR_) . 'test.txt');
}
if ($id_shop != 0) {
$this->context->shop = new Shop((int) $id_shop);
}
$type = Tools::getValue('type') ? Tools::getValue('type') : '';
$languages = Language::getLanguages(true, $this->context->shop->id);
$lang_stop = Tools::getValue('lang') ? true : false;
$id_obj = Tools::getValue('id') ? (int) Tools::getValue('id') : 0;
foreach ($languages as $lang) {
$i = 0;
$index = (Tools::getValue('index') && Tools::getValue('lang') == $lang['iso_code']) ? (int) Tools::getValue('index') : 0;
if ($lang_stop && $lang['iso_code'] != Tools::getValue('lang')) {
continue;
} elseif ($lang_stop && $lang['iso_code'] == Tools::getValue('lang')) {
$lang_stop = false;
}
$link_sitemap = array();
foreach ($this->type_array as $type_val) {
if ($type == '' || $type == $type_val) {
$function = 'get' . Tools::ucfirst($type_val) . 'Link';
if (!$this->$function($link_sitemap, $lang, $index, $i, $id_obj)) {
return false;
}
$type = '';
$id_obj = 0;
}
}
$this->recursiveSitemapCreator($link_sitemap, $lang['iso_code'], $index);
$page = '';
$index = 0;
}
$this->createIndexSitemap();
Configuration::updateValue('GSITEMAP_LAST_EXPORT', date('r'));
Tools::file_get_contents('https://www.google.com/webmasters/sitemaps/ping?sitemap=' . urlencode($this->context->link->getBaseLink() . $this->context->shop->physical_uri . $this->context->shop->virtual_uri . $this->context->shop->id));
if ($this->cron) {
die();
}
Tools::redirectAdmin('index.php?tab=AdminModules&configure=gsitemap&token=' . Tools::getAdminTokenLite('AdminModules') . '&tab_module=' . $this->tab . '&module_name=gsitemap&validation');
die();
}
/**
* Store the generated sitemap file to the database
*
* @param string $sitemap the name of the generated Google sitemap file
*
* @return bool
*/
protected function saveSitemapLink($sitemap)
{
if ($sitemap) {
return Db::getInstance()->Execute('INSERT INTO `' . _DB_PREFIX_ . 'gsitemap_sitemap` (`link`, id_shop) VALUES (\'' . pSQL($sitemap) . '\', ' . (int) $this->context->shop->id . ')');
}
return false;
}
/**
* @param array $link_sitemap contain all the links for the Google sitemap file to be generated
* @param string $lang the language of link to add
* @param int $index the index of the current Google sitemap file
*
* @return bool
*/
protected function recursiveSitemapCreator($link_sitemap, $lang, &$index)
{
if (!count($link_sitemap)) {
return false;
}
$sitemap_link = $this->context->shop->id . '_' . $lang . '_' . $index . '_sitemap.xml';
$write_fd = fopen($this->normalizeDirectory(_PS_ROOT_DIR_) . $sitemap_link, 'wb');
fwrite($write_fd, '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">' . PHP_EOL);
foreach ($link_sitemap as $key => $file) {
fwrite($write_fd, '<url>' . PHP_EOL);
$lastmod = (isset($file['lastmod']) && !empty($file['lastmod'])) ? date('c', strtotime($file['lastmod'])) : null;
$this->addSitemapNode($write_fd, htmlspecialchars(strip_tags($file['link'])), $this->getPriorityPage($file['page']), Configuration::get('GSITEMAP_FREQUENCY'), $lastmod);
if ($file['image']) {
$this->addSitemapNodeImage($write_fd, htmlspecialchars(strip_tags($file['image']['link'])), isset($file['image']['title_img']) ? htmlspecialchars(str_replace(array(
"\r\n",
"\r",
"\n",
), '', $this->removeControlCharacters(strip_tags($file['image']['title_img'])))) : '', isset($file['image']['caption']) ? htmlspecialchars(str_replace(array(
"\r\n",
"\r",
"\n",
), '', strip_tags($file['image']['caption']))) : '');
}
fwrite($write_fd, '</url>' . PHP_EOL);
}
fwrite($write_fd, '</urlset>' . PHP_EOL);
fclose($write_fd);
$this->saveSitemapLink($sitemap_link);
++$index;
return true;
}
/**
* return the priority value set in the configuration parameters
*
* @param string $page
*
* @return float|string|bool
*/
protected function getPriorityPage($page)
{
return Configuration::get('GSITEMAP_PRIORITY_' . Tools::strtoupper($page)) ? Configuration::get('GSITEMAP_PRIORITY_' . Tools::strtoupper($page)) : 0.1;
}
/**
* Add a new line to the sitemap file
*
* @param resource $fd file system object resource
* @param string $loc string the URL of the object page
* @param string $priority
* @param string $change_freq
* @param int $last_mod the last modification date/time as a timestamp
*/
protected function addSitemapNode($fd, $loc, $priority, $change_freq, $last_mod = null)
{
fwrite($fd, '<loc>' . (Configuration::get('PS_REWRITING_SETTINGS') ? '<![CDATA[' . $loc . ']]>' : $loc) . '</loc>' . PHP_EOL . ($last_mod ? '<lastmod>' . date('c', strtotime($last_mod)) . '</lastmod>' : '') . PHP_EOL . '<changefreq>' . $change_freq . '</changefreq>' . PHP_EOL . '<priority>' . number_format($priority, 1, '.', '') . '</priority>' . PHP_EOL);
}
protected function addSitemapNodeImage($fd, $link, $title, $caption)
{
fwrite($fd, '<image:image>' . PHP_EOL . '<image:loc>' . (Configuration::get('PS_REWRITING_SETTINGS') ? '<![CDATA[' . $link . ']]>' : $link) . '</image:loc>' . PHP_EOL . '<image:caption><![CDATA[' . $caption . ']]></image:caption>' . PHP_EOL . '<image:title><![CDATA[' . $title . ']]></image:title>' . PHP_EOL . '</image:image>' . PHP_EOL);
}
/**
* Create the index file for all generated sitemaps
*
* @return bool
*/
protected function createIndexSitemap()
{
$sitemaps = Db::getInstance()->ExecuteS('SELECT `link` FROM `' . _DB_PREFIX_ . 'gsitemap_sitemap` WHERE id_shop = ' . $this->context->shop->id);
if (!$sitemaps) {
return false;
}
$xml = '<?xml version="1.0" encoding="UTF-8"?><sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"></sitemapindex>';
$xml_feed = new SimpleXMLElement($xml);
foreach ($sitemaps as $link) {
$sitemap = $xml_feed->addChild('sitemap');
$sitemap->addChild('loc', $this->context->link->getBaseLink() . $link['link']);
$sitemap->addChild('lastmod', date('c'));
}
file_put_contents($this->normalizeDirectory(_PS_ROOT_DIR_) . $this->context->shop->id . '_index_sitemap.xml', $xml_feed->asXML());
return true;
}
protected function tableColumnExists($table_name, $column = null)
{
if (array_key_exists($table_name, $this->sql_checks)) {
if (!empty($column) && array_key_exists($column, $this->sql_checks[$table_name])) {
return $this->sql_checks[$table_name][$column];
} else {
return $this->sql_checks[$table_name];
}
}
$table = Db::getInstance()->ExecuteS('SHOW TABLES LIKE \'' . $table_name . '\'');
if (empty($column)) {
if (count($table) < 1) {
return $this->sql_checks[$table_name] = false;
} else {
$this->sql_checks[$table_name] = true;
}
} else {
$table = Db::getInstance()->ExecuteS('SELECT * FROM `' . $table_name . '` LIMIT 1');
return $this->sql_checks[$table_name][$column] = array_key_exists($column, current($table));
}
return true;
}
protected function normalizeDirectory($directory)
{
$last = $directory[Tools::strlen($directory) - 1];
if (in_array($last, array(
'/',
'\\',
))) {
$directory[Tools::strlen($directory) - 1] = DIRECTORY_SEPARATOR;
return $directory;
}
$directory .= DIRECTORY_SEPARATOR;
return $directory;
}
protected function removeControlCharacters($text)
{
$text = (string) preg_replace('/[^\x{0009}\x{000a}\x{000d}\x{0020}-\x{D7FF}\x{E000}-\x{FFFD}]+/u', ' ', $text);
$text = (string) preg_replace('!\s+!', ' ', $text);
return $text;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,22 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Genera il tuo file sitemap di Google';
$_MODULE['<{gsitemap}prestashop>gsitemap_5bbdad908e423585a7ecc6b61b66b313'] = 'Non è possibile creare';
$_MODULE['<{gsitemap}prestashop>gsitemap_09fa1e865bdcf4d3215d5b0005b93154'] = 'file sitemap.xml.';
$_MODULE['<{gsitemap}prestashop>gsitemap_5a517cec50ac8e742f6583c6c404c4e9'] = 'File Sitemap generato con successo';
$_MODULE['<{gsitemap}prestashop>gsitemap_0a6ee1a4f10278211d74152e633d0ed0'] = 'Errore durante la creazione del file sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_eb175747116b689caadea1b84202f513'] = 'Il tuo file sitemap di Google è online al seguente indirizzo:';
$_MODULE['<{gsitemap}prestashop>gsitemap_39d616ecc73e174052f1877ac2b3c853'] = 'Aggiornamento:';
$_MODULE['<{gsitemap}prestashop>gsitemap_b908c2f34052b5276e0bf50f0e042211'] = 'Dimensioni:';
$_MODULE['<{gsitemap}prestashop>gsitemap_3f69f5c6c3c90eee482f28ae77390cb9'] = 'Pagine indicizzate:';
$_MODULE['<{gsitemap}prestashop>gsitemap_b8cb67a25f16d9000d8c974e30441b59'] = 'Mappa del sito comprende anche prodotti dalle categorie inattivi';
$_MODULE['<{gsitemap}prestashop>gsitemap_60ee4e03c30c4827c80eb31bfd27130d'] = 'Mappa del sito include anche pagine CMS che non sono in un blocco CMS';
$_MODULE['<{gsitemap}prestashop>gsitemap_8103220a578f92ec726809c3d47adc6e'] = 'Genera file sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_0033cf1fdbd4354facfaa51f6f0de6a4'] = 'Aggiornamento file sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_f5a592018c8b55d2c968515ad7c58c91'] = 'Search Engine Optimization';
$_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Vedi';
$_MODULE['<{gsitemap}prestashop>gsitemap_8334797b9b3383d4f48d98178b8845ea'] = 'questa pagina';
$_MODULE['<{gsitemap}prestashop>gsitemap_abf27597777430142de13ed6eea36d75'] = 'per maggiori informazioni';

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

@@ -0,0 +1,36 @@
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of Shop
*
* @author youness
*/
class Shop extends ShopCore
{
public $domain;
public $virtual_uri;
public $base_uri;
public function __construct()
{
parent::__construct();
$this->domain = Tools::getShopDomain(true);
$this->virtual_uri = '';
$this->base_uri = '';
}
public function getBaseURL()
{
if (!isset($this->domain) || !$this->domain)
return false;
return 'http://'.$this->domain.$this->base_uri;
}
}

View File

@@ -0,0 +1,119 @@
<div style="width: 700px; margin: 0 auto;">
</div>
{if isset($smarty.get.validation)}
<div class="conf confirm" style="width: 710px; margin: 0 auto;">
{l s='Your Sitemaps were successfully created. Please do not forget to setup the url' mod='gsitemap'} <a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="text-decoration: underline;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</a></span> {l s='in your Google Webmaster account' mod='gsitemap'}.
</div>
<br/>
{/if}
{if isset($google_maps_error)}
<div class="error" style="width: 710px; margin: 0 auto;">
{$google_maps_error|escape:'htmlall':'UTF-8'}<br />
</div>
{/if}
{if isset($gsitemap_refresh_page)}
<fieldset style="width: 700px; margin: 0 auto; text-align: center;">
<legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Your Sitemaps' mod='gsitemap'}</legend>
<p>{$gsitemap_number|intval} {l s='Sitemaps were already created.' mod='gsitemap'}<br/>
</p>
<br/>
<form action="{$gsitemap_refresh_page|escape:'htmlall':'UTF-8'}" method="post" id="gsitemap_generate_sitmap">
<img src="../img/loader.gif" alt=""/>
<input type="submit" class="button" value="{l s='Continue' mod='gsitemap'}" style="display: none;"/>
</form>
</fieldset>
{else}
{if $gsitemap_links}
<fieldset style="width: 700px; margin: 0 auto;">
<legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Your Sitemaps' mod='gsitemap'}</legend>
{l s='Please set up the following Sitemap URL in your Google Webmaster account:' mod='gsitemap'}<br/>
<a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank"><span style="color: blue;">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</span></a><br/><br/>
{l s='This URL is the master Sitemap and refers to:' mod='gsitemap'}
<div style="max-height: 220px; overflow: auto;">
<ul>
{foreach from=$gsitemap_links item=gsitemap_link}
<li><a target="_blank" style="color: blue;" href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$gsitemap_link.link|escape:'htmlall':'UTF-8'}">{$gsitemap_link.link|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
<p>{l s='Your last update was:' mod='gsitemap'} {$gsitemap_last_export|escape:'htmlall':'UTF-8'}</p>
</fieldset>
{/if}
<br/>
{if ($gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0) || ($gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0)}
<div class="warn" style="width: 700px; margin: 0 auto;">
<p>{l s='For a better use of the module, please make sure that you have' mod='gsitemap'}<br/>
<ul>
{if $gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0}
<li>{l s='a minimum memory limit of 128MB' mod='gsitemap'}</li>
{/if}
{if $gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0}
<li>{l s='a minimum max execution time of 30 sec' mod='gsitemap'}</li>
{/if}
</ul>
{l s='You can edit these limits in your php.ini. For more details, please contact your hosting providers.' mod='gsitemap'}</p>
</div>
{/if}
<br/>
<form action="{$gsitemap_form|escape:'htmlall':'UTF-8'}" method="post">
<fieldset style="width: 700px; margin: 0 auto;">
<legend><img src="{$module_dir|escape:'htmlall':'UTF-8'}logo.gif" alt="" />{l s='Configure your Sitemap' mod='gsitemap'}</legend>
<p>{l s='Several Sitemaps will be generated depending on how your server is configured and on the number of products activated in your catalog.' mod='gsitemap'}<br/></p>
<div class="margin-form">
<label for="gsitemap_frequency" style="width: 235px;">{l s='How often do you update your store?' mod='gsitemap'}
<select name="gsitemap_frequency">
<option{if $gsitemap_frequency == 'always'} selected="selected"{/if} value='always'>{l s='always' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'hourly'} selected="selected"{/if} value='hourly'>{l s='hourly' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'daily'} selected="selected"{/if} value='daily'>{l s='daily' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'weekly' || $gsitemap_frequency == ''} selected="selected"{/if} value='weekly'>{l s='weekly' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'monthly'} selected="selected"{/if} value='monthly'>{l s='monthly' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'yearly'} selected="selected"{/if} value='yearly'>{l s='yearly' mod='gsitemap'}</option>
<option{if $gsitemap_frequency == 'never'} selected="selected"{/if} value='never'>{l s='never' mod='gsitemap'}</option>
</select></label>
</div>
<label for="ggsitemap_check_image_file" style="width: 526px;">{l s='Check this box if you wish to check the presence of the image files on the server' mod='gsitemap'}
<input type="checkbox" name="gsitemap_check_image_file" value="1" {if $gsitemap_check_image_file}checked{/if}></label>
<label for="ggsitemap_check_all" style="width: 526px;"><span>{l s='check all' mod='gsitemap'}</span>
<input type="checkbox" name="gsitemap_check_all" value="1" class="check"></label>
<br class="clear" />
<p for="gsitemap_meta">{l s='Which page don\'t you want to include in your Sitemap:' mod='gsitemap'}</p>
<ul>
{foreach from=$store_metas item=store_meta}
<li style="float: left; width: 200px; margin: 1px;">
<input type="checkbox" class="gsitemap_metas" name="gsitemap_meta[]"{if in_array($store_meta.id_meta, $gsitemap_disable_metas)} checked="checked"{/if} value="{$store_meta.id_meta|intval}" /> {$store_meta.title|escape:'htmlall':'UTF-8'} [{$store_meta.page|escape:'htmlall':'UTF-8'}]
</li>
{/foreach}
</ul>
<br/>
<div class="margin-form" style="clear: both;">
<input type="submit" style="margin: 20px;" class="button" name="SubmitGsitemap" onclick="$('#gsitemap_loader').show();" value="{l s='Generate Sitemap' mod='gsitemap'}" />{l s='This can take several minutes' mod='gsitemap'}
</div>
<p id="gsitemap_loader" style="text-align: center; display: none;"><img src="../img/loader.gif" alt=""/></p>
</fieldset>
</form><br />
<p class="info" style="width: 680px; margin: 10px auto;{if $prestashop_version == '1.4'} background: url('../img/admin/help2.png') no-repeat scroll 6px 6px #BDE5F8; border: 1px solid #00529B; border-radius: 3px 3px 3px 3px; color: #00529B; font-family: Arial,Verdana,Helvetica,sans-serif; font-size: 12px; margin-bottom: 15px; min-height: 32px; padding: 10px 5px 5px 40px;{/if}">
<b style="display: block; margin-top: 5px; margin-left: 3px;">{l s='You have two ways to generate Sitemap:' mod='gsitemap'}</b><br /><br />
1. <b>{l s='Manually:' mod='gsitemap'}</b> {l s='using the form above (as often as needed)' mod='gsitemap'}<br />
<br /><span style="font-style: italic;">{l s='-or-' mod='gsitemap'}</span><br /><br />
2. <b>{l s='Automatically:' mod='gsitemap'}</b> {l s='Ask your hosting provider to setup a "Cron task" to load the following URL at the time you would like:' mod='gsitemap'}
<a href="{$gsitemap_cron|escape:'htmlall':'UTF-8'}" target="_blank">{$gsitemap_cron|escape:'htmlall':'UTF-8'}</a><br /><br />
{l s='It will automatically generate your XML Sitemaps.' mod='gsitemap'}<br /><br />
</p>
{/if}
<script type="text/javascript">
$(document).ready(function() {
if ($('.gsitemap_metas:checked').length == $('.gsitemap_metas').length)
$('.check').parent('label').children('span').html("{l s='uncheck all' mod='gsitemap'}");
$('.check').toggle(function() {
$('.gsitemap_metas').attr('checked', 'checked');
$(this).parent('label').children('span').html("{l s='uncheck all' mod='gsitemap'}");
}, function() {
$('.gsitemap_metas').removeAttr('checked');
$(this).parent('label').children('span').html("{l s='check all' mod='gsitemap'}");
});
});
</script>

View File

@@ -0,0 +1,44 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Mapa sítě Google [Google sitemap]';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Umožní vám vygenerovat Google sitemap xml soubor';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Vaše Mapa stránek Google byla úspěšně vytvořena. Nezapomeňte nastavit URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 've svém účtu Google pro webmastery';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Vaše Mapa stránek';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Mapa stránek již byla vytvořena.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Pokračovat';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Nastavte následující adresu URL mapy stránek Google ve svém účtu Google Webmaster:';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Tato adresa URL je hlavní Mapa stránek a týká se:';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Vaše poslední aktualizace byla provedena:';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Pro lepší využití modulu se ujistěte, že máte';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'minimální \"memory limit\" (limit paměti) 128MB';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'minimální hodnotu \"max execution time\" 30 sekund';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Tyto limity můžete upravit v souboru php.ini. Pro více informací, se obraťte na poskytovatele hostingu.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Konfigurovat Mapu stránek (Sitemap)';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Některé Mapy stránek budou generovány v závislosti na tom, jak je nastaven váš server a podle počtu aktivovaných produktů v katalogu.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'Jak často si aktualizujete svůj obchod?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'pořád';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'každou hodinu';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'denně';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'týdně';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'měsíčně';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'ročně';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'nikdy';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Které stránky nechcete zahrnout do souboru Sitemap:';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Generovat Mapu stránek (Sitemap)';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'To může trvat i několik minut';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Máte dvě možnosti, jak generovat Mapu stránek (Sitemap):';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manuálně:';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'pomocí výše uvedeného formuláře (tak často, jak je potřeba)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-nebo-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automaticky:';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Zeptejte se svého poskytovatele hostingu jak nastavit \"cron\" aby spustil skript na následující adrese URL v požadované době:';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Soubor XML Sitemap (mapa stránek) se bude automaticky generovat.';
$_MODULE['<{gsitemap}prestashop>gsitemap_b52bf50c73995780892b9945ddc98708'] = 'Došlo k chybě při pokusu o kontrolu oprávnění k souborům. Upravte své oprávnění umožňující PrestaShopu zapsat soubor do kořenového adresáře.';
$_MODULE['<{gsitemap}prestashop>configuration_e51d91c7bfa9fc658b11afca4d84653c'] = 'Zaškrtněte toto políčko, pokud chcete zkontrolovat přítomnost souborů obrázků na serveru';
$_MODULE['<{gsitemap}prestashop>configuration_05ff8159ccaef6f0f8391c61a6d0e631'] = 'označit vše';
$_MODULE['<{gsitemap}prestashop>configuration_98a9d595be84a0687c4b26887977e0c3'] = 'odznačit vše';

View File

@@ -0,0 +1,44 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google Sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Generieren Sie Ihre Google Sitemap-Datei';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Ihre Sitemaps wurden erfolgreich erstellt. Bitte vergessen Sie nicht, Ihre URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'in Ihrem Google Webmaster-Account einzutragen';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Ihre Sitemaps';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Sitemaps bereits erstellt.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Weiter';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Bitte tragen Sie die folgende Sitemap-URL in Ihren Google Webmaster-Account ein:';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Diese URL ist die Stamm-Sitemap und bezieht sich auf:';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Letztes Update am:';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Zur optimalen Nutzung des Moduls sollten Sie über Folgendes verfügen';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'Speicher von mindestens 128MB (memory_limit 128M)';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'Audführungszeit von mindestens 30 s (max_execution_time 30sec)';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Sie können diese Begrenzungen in der php.ini, ggf. auch in der .htaccess Ihre Shops ändern. Bitte sprechen Sie mit Ihren Provider.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Sitemap einrichten';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Abhängig von der Anzahl der Produkte in IhremKatalog und der Konfiguration Ihres Servers werden mehrere Sitemaps erstellt.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'Wie häufig ändern Sie Ihr Angebot?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'immer';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'stündlich';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'täglich';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'wöchentlich';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'monatlich';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'jährlich';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'nie';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Seiten, die NICHT in Ihrer Sitemap erscheinen sollen:';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Sitemap erstellen';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'Das kann ein paar Miunten dauern ...';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Sitmaps können auf zweierlei Weise erstellen werden:';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manuell:';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'übr das obige Formular (so häufig wie erforderlich)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '- oder -';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automatisch:';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Bitte Sie Ihren Provider, einen \"Cronjob\" zu erstellen, um die folgenden URL zur festgelegten Zeit zu laden:';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Erstellt automatisch Ihre XML-Sitemaps.';
$_MODULE['<{gsitemap}prestashop>gsitemap_b52bf50c73995780892b9945ddc98708'] = 'Beim Versuch der Überprüfung Ihrer Dateirechte ist ein Fehler aufgetretem. Bitte passen Sie Rechte an, damit PrestaShop eine Datei im Hauptverzeichnis anlegen kann.';
$_MODULE['<{gsitemap}prestashop>configuration_e51d91c7bfa9fc658b11afca4d84653c'] = 'Hier klicken, wenn sie überprüfen wollen, ob die Bild-Dateien auf dsem Server sind';
$_MODULE['<{gsitemap}prestashop>configuration_05ff8159ccaef6f0f8391c61a6d0e631'] = 'Alle aktivieren';
$_MODULE['<{gsitemap}prestashop>configuration_98a9d595be84a0687c4b26887977e0c3'] = 'Alle deaktivieren';

View File

@@ -0,0 +1,44 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google Sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Genere su fichero de Google Sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Tu Sitemap se ha creado satisfactoriamente. Por favor no olvides configurar la url';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'en tu cuenta de Google Webmaster';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Tu Sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'El Sitemap ya ha sido creado.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Seguir';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Por favor configura la URL de tu Sitemap en tu cuenta de Google Webmaster:';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Esta es la URL de tu Sitemap:';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Tu última actualización fue:';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Para un mejor aprovechamiento de este módulo, asegúrese de que usted tiene';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'un límite de memoria de mínimo 128MB';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'un tiempo de ejecución mínimo de 30 seg';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Puedes editar estos límites en el fichero php.ini. Para más detalles contacta con tu proveedor de hosting.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Configura tu Sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Varios Mapas del sitio se generarán en función de la configuración del servidor y en el número de productos activados en su catálogo.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = '¿Con qué frecuencia se actualiza su tienda?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'siempre';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'cada hora';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'cada día';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'semanalmente';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'mensualmente';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'anualmente';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'nunca';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Esta página no ha sido incluida en el Sitemap:';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Generar Sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'Esto puede llevar unos minutos';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Tienes dos formas de generar el Sitemap:';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manualmente:';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'utilizando el formulario de arriba (las veces que sea necesario)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-o-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automáticamente:';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Pregunta a tu proveedor de hosting cómo configurar una \"tarea de Cron\" que cargue la siguiente URL cada cierto tiempo:';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Esto generará automáticamente el XML de tu Sitemap.';
$_MODULE['<{gsitemap}prestashop>gsitemap_b52bf50c73995780892b9945ddc98708'] = 'Ocurrió un error mientras intentábamos comprobar los permisos de tu fichero. Por favor ajusta tus permisos para permitir a PrestaShop escribir un fichero en tu directorio raiz.';
$_MODULE['<{gsitemap}prestashop>configuration_e51d91c7bfa9fc658b11afca4d84653c'] = 'Marque esta casilla si deseas comprobar la presencia de los ficheros de imagen en el servidor';
$_MODULE['<{gsitemap}prestashop>configuration_05ff8159ccaef6f0f8391c61a6d0e631'] = 'marcar todas';
$_MODULE['<{gsitemap}prestashop>configuration_98a9d595be84a0687c4b26887977e0c3'] = 'desmarcar todas';

View File

@@ -0,0 +1,21 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google-sivukartta';
$_MODULE['<{gsitemap}prestashop>gsitemap_ea5d9ad08653eae5509e2fc70171a0d6'] = 'Luo Google sitemap tiedoston';
$_MODULE['<{gsitemap}prestashop>gsitemap_0ce45c4c029ee2c598033b5c3a7fdadd'] = 'Sivukartta tiedostossa';
$_MODULE['<{gsitemap}prestashop>gsitemap_401149c95366caa82ed416edb5eb66a3'] = 'Virhe luotaessa sivustokarttatiedosto';
$_MODULE['<{gsitemap}prestashop>gsitemap_eb175747116b689caadea1b84202f513'] = 'Google Sitemap-tiedosto on verkossa osoitteessa:';
$_MODULE['<{gsitemap}prestashop>gsitemap_39d616ecc73e174052f1877ac2b3c853'] = 'Päivitä';
$_MODULE['<{gsitemap}prestashop>gsitemap_b908c2f34052b5276e0bf50f0e042211'] = 'Tiedoston koko:';
$_MODULE['<{gsitemap}prestashop>gsitemap_3f69f5c6c3c90eee482f28ae77390cb9'] = 'Indeksoidut sivut:';
$_MODULE['<{gsitemap}prestashop>gsitemap_1c29b1fc86e14218feccb4bf5e3c3331'] = 'Sivukartta myös tuotteita aktiivinen luokkia';
$_MODULE['<{gsitemap}prestashop>gsitemap_5f93333d7d018796366e82a1fa763d47'] = 'Sivukartta myös CMS sivuja, jotka eivät CMS lohko';
$_MODULE['<{gsitemap}prestashop>gsitemap_ed238c7f4f41153f6f7e02041d193381'] = 'Luo sivustokartta';
$_MODULE['<{gsitemap}prestashop>gsitemap_0a376e01c0139491a901b3f965a6978d'] = 'Päivitä sivustokartta';
$_MODULE['<{gsitemap}prestashop>gsitemap_f1c0f389e0aade719b421f28bad33807'] = 'Hakukoneoptimointi';
$_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Katso';
$_MODULE['<{gsitemap}prestashop>gsitemap_5e4ace6a96971949d519e8b1885652aa'] = 'tämä sivu';
$_MODULE['<{gsitemap}prestashop>gsitemap_d13de4a83d7b44c2e65495def8ef1c7b'] = 'lisää';

View File

@@ -0,0 +1,44 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Génère votre fichier sitemap pour Google';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Vos fichiers sitemap ont été créés avec succès. N\'oubliez pas de configurer l\'URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'dans votre interface Google Webmaster';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Vos fichiers sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Vos sitemaps ont déjà été créées.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Continuer';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Veuillez configurer l\'URL de sitemap suivante dans votre interface Google Webmaster :';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Cette URL correspond au fichier sitemap maître et fait référence à :';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Votre dernière mise à jour a été effectuée le :';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Pour une meilleure utilisation du module, veuillez vous assurer que vous avez';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'défini le paramètre de configuration PHP \"memory_limit\" à au moins 128M';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'défini le paramètre de configuration PHP \"max_execution_time\" à au moins 30 (secondes)';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Vous pouvez éditer ces paramètres dans votre fichier \"php.ini\". Pour plus de détails, veuillez contacter votre hébergeur.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Configurer votre sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Plusieurs fichiers sitemap vont être générés, en fonction de la manière dont votre serveur est configuré et du nombre de produits actifs dans votre catalogue.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'À quelle fréquence mettez vous à jour votre boutique?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'en permanence';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'toutes les heures';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'tous les jours';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'toutes les semaines';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'tous les mois';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'tous les ans';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'jamais';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Quelles pages voulez vous exclure de votre sitemap?';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Créer votre sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'Cela peut prendre plusieurs minutes';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Vous pouvez générer votre sitemap de deux manières :';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manuellement :';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'en utilisant le formulaire ci-dessus (aussi souvent que nécessaire)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-ou-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automatiquement :';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Demandez à votre hébergeur de mettre en place une \"tâche Cron\" pour charger l\'URL suivante à la fréquence de votre choix :';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Cela générera automatiquement vos fichiers sitemap XML.';
$_MODULE['<{gsitemap}prestashop>gsitemap_b52bf50c73995780892b9945ddc98708'] = 'Une erreur est survenue : Impossible d\'écrire à la racine de votre site web. Veuillez ajuster les permissions afin que PrestaShop puisse enregistrer un fichier à la racine de votre site web.';
$_MODULE['<{gsitemap}prestashop>configuration_e51d91c7bfa9fc658b11afca4d84653c'] = 'Cochez cette case si vous souhaitez vérifier la présence des fichiers d\'images sur le serveur';
$_MODULE['<{gsitemap}prestashop>configuration_05ff8159ccaef6f0f8391c61a6d0e631'] = 'Tout cocher';
$_MODULE['<{gsitemap}prestashop>configuration_98a9d595be84a0687c4b26887977e0c3'] = 'Tout décocher';

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,44 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Genera il tuo file sitemap di Google';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'La tua mappa del sito è stata creata con successo. Non scordarti di impostare l\'URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'nel tuo account di Google Webamster';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Le tue mappe del sito';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Le mappe del sito sono state già create.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Continua';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Prego imposta l\'URL della mappa del sito nel tuo account di Google Webmaster:';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Questa URL è la mappa del sito principale e si riferisce a:';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Il tuo ultimo aggiornamento è stato:';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Per un miglior uso del modulo, controlla che tu abbia';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'almeno 128 MB di memoria disponibile';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'almeno 30 secondi di tempo di esecuzione massima';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Puoi editare questi limiti nel tuo file php.ini. per maggiori dettagli contatta il tuo fornitore di hosting.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Configura la tua Mappa del sito';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Alcune Mappe del Sito saranno generate in relazione alla configurazione dei nostri server e al numero di prodotti attivati nel tuo catalogo.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'Quanto spesso aggiorni il tuo negozio?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'sempre';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'ogni ora';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'ogni giorno';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'ogni settimana';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'ogni mese';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'ogni anno';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'mai';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Quale pagina non vuoi includere nella tua Mappa del Sito:';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Genera Mappa del Sito';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'Questo potrebbe impiegare alcuni minuti';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Hai due modi di generare la Mappa del Sito:';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Manualmente:';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'usando il form seguente (ogni volta che sia necessario)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-oppure-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automaticamente:';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Chiedi al tuo fornitore di hosting di impostare un \"Cron Task\" per caricare questa URL al tempo che desideri:';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Questo genererà automaticamente la tua Mappa del Sito XML.';
$_MODULE['<{gsitemap}prestashop>gsitemap_b52bf50c73995780892b9945ddc98708'] = 'Si è verificato un errore mentre si tentava di verificare il file di permesso. Per favore aggiusta i tuoi permessi per permettere a PrestaShop per scrivere i file nella tua root.';
$_MODULE['<{gsitemap}prestashop>configuration_e51d91c7bfa9fc658b11afca4d84653c'] = 'Spunta questa casella se vuoi controllare la presenza di file immagine sul server.';
$_MODULE['<{gsitemap}prestashop>configuration_05ff8159ccaef6f0f8391c61a6d0e631'] = 'seleziona tutti';
$_MODULE['<{gsitemap}prestashop>configuration_98a9d595be84a0687c4b26887977e0c3'] = 'deseleziona tutti';

View File

@@ -0,0 +1,25 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_ea5d9ad08653eae5509e2fc70171a0d6'] = 'Genereer uw Google sitemap bestand';
$_MODULE['<{gsitemap}prestashop>gsitemap_ecf80a15b9595df825e451eb4def853b'] = 'Kan %ssitemap.xml bestand niet aanmaken.';
$_MODULE['<{gsitemap}prestashop>gsitemap_0ce45c4c029ee2c598033b5c3a7fdadd'] = 'Sitemap bestand aangemaakt.';
$_MODULE['<{gsitemap}prestashop>gsitemap_401149c95366caa82ed416edb5eb66a3'] = 'Fout opgetreden tijdens het aanmaken van het sitemap bestand';
$_MODULE['<{gsitemap}prestashop>gsitemap_dbca7bedb74f116f17eea44cddf9761f'] = 'Sitemap index';
$_MODULE['<{gsitemap}prestashop>gsitemap_eb175747116b689caadea1b84202f513'] = 'Uw Google sitemap bestand is online op het volgende adres:';
$_MODULE['<{gsitemap}prestashop>gsitemap_4851323bb81fbc4aa65c1b37af8a1d1d'] = 'Sitemap voor:';
$_MODULE['<{gsitemap}prestashop>gsitemap_39d616ecc73e174052f1877ac2b3c853'] = 'Bijwerken:';
$_MODULE['<{gsitemap}prestashop>gsitemap_b908c2f34052b5276e0bf50f0e042211'] = 'Bestandsgrootte:';
$_MODULE['<{gsitemap}prestashop>gsitemap_3f69f5c6c3c90eee482f28ae77390cb9'] = 'Geïndexeerde pagina\'s:';
$_MODULE['<{gsitemap}prestashop>gsitemap_1c29b1fc86e14218feccb4bf5e3c3331'] = 'Sitemap bevat ook producten van inactieve categorieën';
$_MODULE['<{gsitemap}prestashop>gsitemap_5f93333d7d018796366e82a1fa763d47'] = 'Sitemap bevat ook CMS pagina\'s die niet in een CMS blok zitten';
$_MODULE['<{gsitemap}prestashop>gsitemap_ed238c7f4f41153f6f7e02041d193381'] = 'Sitemap bestand aanmaken';
$_MODULE['<{gsitemap}prestashop>gsitemap_0a376e01c0139491a901b3f965a6978d'] = 'Sitemap bestand bijwerken';
$_MODULE['<{gsitemap}prestashop>gsitemap_be35982b0637fe74565dde00768e3534'] = 'Gebruik een cron job om uw sitemap te herbouwen';
$_MODULE['<{gsitemap}prestashop>gsitemap_f1c0f389e0aade719b421f28bad33807'] = 'Zoekmachine optimalisatie';
$_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Bekijk';
$_MODULE['<{gsitemap}prestashop>gsitemap_5e4ace6a96971949d519e8b1885652aa'] = 'deze pagina';
$_MODULE['<{gsitemap}prestashop>gsitemap_d13de4a83d7b44c2e65495def8ef1c7b'] = 'voor meer informatie';

View File

@@ -0,0 +1,20 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_ea5d9ad08653eae5509e2fc70171a0d6'] = 'Generere din Google Sitemap-filen';
$_MODULE['<{gsitemap}prestashop>gsitemap_0ce45c4c029ee2c598033b5c3a7fdadd'] = 'Sitemap-filen genererte';
$_MODULE['<{gsitemap}prestashop>gsitemap_401149c95366caa82ed416edb5eb66a3'] = 'Feil under oppretting av Sitemap-fil';
$_MODULE['<{gsitemap}prestashop>gsitemap_eb175747116b689caadea1b84202f513'] = 'Google Sitemap-filen er på nettet på følgende adresse:';
$_MODULE['<{gsitemap}prestashop>gsitemap_39d616ecc73e174052f1877ac2b3c853'] = 'Oppdater';
$_MODULE['<{gsitemap}prestashop>gsitemap_b908c2f34052b5276e0bf50f0e042211'] = 'Størrelse:';
$_MODULE['<{gsitemap}prestashop>gsitemap_3f69f5c6c3c90eee482f28ae77390cb9'] = 'Indekserte sider:';
$_MODULE['<{gsitemap}prestashop>gsitemap_1c29b1fc86e14218feccb4bf5e3c3331'] = 'Sitemap omfatter også produkter fra inaktive kategorier';
$_MODULE['<{gsitemap}prestashop>gsitemap_5f93333d7d018796366e82a1fa763d47'] = 'Sitemap inkluderer også CMS sider som ikke er i en CMS blokk';
$_MODULE['<{gsitemap}prestashop>gsitemap_ed238c7f4f41153f6f7e02041d193381'] = 'Generer sitemap fil';
$_MODULE['<{gsitemap}prestashop>gsitemap_0a376e01c0139491a901b3f965a6978d'] = 'Oppdatering sitemap fil';
$_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Se';
$_MODULE['<{gsitemap}prestashop>gsitemap_5e4ace6a96971949d519e8b1885652aa'] = 'denne siden';
$_MODULE['<{gsitemap}prestashop>gsitemap_d13de4a83d7b44c2e65495def8ef1c7b'] = 'Mer';

View File

@@ -0,0 +1,40 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Mapa strony Google';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Generuj plik mapy strony Google';
$_MODULE['<{gsitemap}prestashop>configuration_4c14e1b81ea0602638ce9f332c9c9d90'] = 'Twoje mapy strony zostały pomyślnie utworzone. Nie zapomnij podać adres URL';
$_MODULE['<{gsitemap}prestashop>configuration_0a755adb6df10be5d7e2caf7b6e39eda'] = 'w Twoim koncie Google Webmaster';
$_MODULE['<{gsitemap}prestashop>configuration_1c95b77d135b55c84429588c11697ea4'] = 'Twoje Mapy Stron';
$_MODULE['<{gsitemap}prestashop>configuration_aa17b80751f4ae53ab8e3ed2fe99e94d'] = 'Utworzono już mapy stron.';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Dalej';
$_MODULE['<{gsitemap}prestashop>configuration_9ab08b9ceeef857df07ad10e1de9301e'] = 'Podaj następujący adres URL mapy strony w Twoim koncie Google Webmaster:';
$_MODULE['<{gsitemap}prestashop>configuration_dd0b289d223c626bf0d969d566c5c810'] = 'Ten adres URL jest główną mapą strony i odnosi się do:';
$_MODULE['<{gsitemap}prestashop>configuration_2aecc5a14d05dbff0947b87a842a06d4'] = 'Twoja ostatnia aktualizacja była:';
$_MODULE['<{gsitemap}prestashop>configuration_6d37779958434303f8397436a1484ed8'] = 'Dla lepszego użycia modułu, upewnij się że masz';
$_MODULE['<{gsitemap}prestashop>configuration_b4bbb75d3bb15e35a224aec921fdbf8e'] = 'minimalny limit pamięci na poziomie 128MB';
$_MODULE['<{gsitemap}prestashop>configuration_ed912abcfe6601c499223ced3ed9c94f'] = 'minimalny czas maksymalnego wykonania skryptu na poziomie 30 sek';
$_MODULE['<{gsitemap}prestashop>configuration_c9fcd512ef78a883a08df175682d2e77'] = 'Możesz edytować te limity w Twoim pliku php.ini. Dla uzyskania większej ilości szczegółów, skontaktuj się proszę ze swoim usługodawcą hostingu.';
$_MODULE['<{gsitemap}prestashop>configuration_0b9b4b91e0a8f59e264202a23d9c57a6'] = 'Skonfiguruj swoją Mapę strony';
$_MODULE['<{gsitemap}prestashop>configuration_76938f1f902bcdba6517983d15c8d86d'] = 'Zostanie wygenerowanych kilka map w zależności od tego jak Twój serwer został skonfigurowany i od ilości produktów aktywowanych w Twoim katalogu.';
$_MODULE['<{gsitemap}prestashop>configuration_5107e076ab1dd29e614d59568f5b70f7'] = '\' mod=\'gsitemap';
$_MODULE['<{gsitemap}prestashop>configuration_7f751d19f85d49a411d5691f5bb0b5f2'] = 'Jak często aktualizujesz swój sklep?';
$_MODULE['<{gsitemap}prestashop>configuration_f9f90eeaf400d228facde6bc48da5cfb'] = 'zawsze';
$_MODULE['<{gsitemap}prestashop>configuration_745fd0ea7f576f350a0eed4b8c48a8e2'] = 'co godzinę';
$_MODULE['<{gsitemap}prestashop>configuration_bea79186fd7af2da67e59b4b15df5a26'] = 'codziennie';
$_MODULE['<{gsitemap}prestashop>configuration_4a11fc05ed694c195f0703605b64da90'] = 'co tydzień';
$_MODULE['<{gsitemap}prestashop>configuration_708638881f3bac9d9c8c742c79502811'] = 'co miesiąc';
$_MODULE['<{gsitemap}prestashop>configuration_1bf712896e6077fa0b708e911d8ee0b3'] = 'co rok';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'nigdy';
$_MODULE['<{gsitemap}prestashop>configuration_2f29b8a4255211c4e94f18757a0fe329'] = 'Której strony nie chcesz zawrzeć w Twojej mapie strony:';
$_MODULE['<{gsitemap}prestashop>configuration_2ec111ec9826a83509c02bf5e6b797f1'] = 'Generuj mapę strony';
$_MODULE['<{gsitemap}prestashop>configuration_ca99f8a0d484faef3a057fe7a5da3141'] = 'To może zająć kilka minut';
$_MODULE['<{gsitemap}prestashop>configuration_162b34489ed8df561be1720f04fe6d42'] = 'Masz dwie możliwości wygenerowania mapy strony:';
$_MODULE['<{gsitemap}prestashop>configuration_6caa369fd774beef106abbc5cc1e3368'] = 'Ręcznie:';
$_MODULE['<{gsitemap}prestashop>configuration_4ed0b6a0097c3d38c43d756fe2653962'] = 'używając powyższego formularza (tak często jak to potrzebne)';
$_MODULE['<{gsitemap}prestashop>configuration_3d263eb0233f14872193733387840c80'] = '-lub-';
$_MODULE['<{gsitemap}prestashop>configuration_957d27165d1dc5947fb00e57967ffcce'] = 'Automatycznie:';
$_MODULE['<{gsitemap}prestashop>configuration_024d2d2f6d7fd575701fd1b30cc5c0c2'] = 'Poproś swojego usługodawcę hostingowego aby stworzył \"zadanie Cron\" ładujące następujący adres URL w wybranym przez Ciebie czasie:';
$_MODULE['<{gsitemap}prestashop>configuration_8076be06e575e50c7f9585271c8842ad'] = 'Wygeneruje automatycznie Twoje mapy strony XML.';

View File

@@ -0,0 +1,9 @@
<?php
global $_MODULE;
$_MODULE = array();
$_MODULE['<{gsitemap}prestashop>gsitemap_3aaaafde6f9b2701f9e6eb9292e95521'] = 'Карта сайта Google sitemap';
$_MODULE['<{gsitemap}prestashop>gsitemap_935a6bc13704a117d22333c3155b5dae'] = 'Сгенерировать файл Google sitemap';
$_MODULE['<{gsitemap}prestashop>configuration_a0bfb8e59e6c13fc8d990781f77694fe'] = 'Продолжить';
$_MODULE['<{gsitemap}prestashop>configuration_c7561db7a418dd39b2201dfe110ab4a4'] = 'никогда';

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,43 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
if (!defined('_PS_VERSION_')) {
exit;
}
function upgrade_module_2_2($object, $install = false)
{
if ($object->active || $install) {
Configuration::updateValue('GSITEMAP_PRIORITY_HOME', 1.0);
Configuration::updateValue('GSITEMAP_PRIORITY_PRODUCT', 0.9);
Configuration::updateValue('GSITEMAP_PRIORITY_CATEGORY', 0.8);
Configuration::updateValue('GSITEMAP_PRIORITY_CMS', 0.7);
Configuration::updateValue('GSITEMAP_FREQUENCY', 'weekly');
Configuration::updateValue('GSITEMAP_LAST_EXPORT', false);
return Db::getInstance()->Execute('DROP TABLE IF EXISTS `' . _DB_PREFIX_ . 'gsitemap_sitemap`') && Db::getInstance()->Execute('CREATE TABLE IF NOT EXISTS `' . _DB_PREFIX_ . 'gsitemap_sitemap` (`link` varchar(255) DEFAULT NULL, `id_shop` int(11) DEFAULT 0) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8;');
}
$object->upgrade_detail['2.2'][] = 'GSitemap upgrade error !';
return false;
}

View File

@@ -0,0 +1,7 @@
<?php
// autoload.php @generated by Composer
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit5c614cebb8073ddeb1f4a4500d7b03f4::getLoader();

View File

@@ -0,0 +1,445 @@
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Autoload;
/**
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
*
* $loader = new \Composer\Autoload\ClassLoader();
*
* // register classes with namespaces
* $loader->add('Symfony\Component', __DIR__.'/component');
* $loader->add('Symfony', __DIR__.'/framework');
*
* // activate the autoloader
* $loader->register();
*
* // to enable searching the include path (eg. for PEAR packages)
* $loader->setUseIncludePath(true);
*
* In this example, if you try to use a class in the Symfony\Component
* namespace or one of its children (Symfony\Component\Console for instance),
* the autoloader will first look for the class under the component/
* directory, and it will then fallback to the framework/ directory if not
* found before giving up.
*
* This class is loosely based on the Symfony UniversalClassLoader.
*
* @author Fabien Potencier <fabien@symfony.com>
* @author Jordi Boggiano <j.boggiano@seld.be>
* @see http://www.php-fig.org/psr/psr-0/
* @see http://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
// PSR-4
private $prefixLengthsPsr4 = array();
private $prefixDirsPsr4 = array();
private $fallbackDirsPsr4 = array();
// PSR-0
private $prefixesPsr0 = array();
private $fallbackDirsPsr0 = array();
private $useIncludePath = false;
private $classMap = array();
private $classMapAuthoritative = false;
private $missingClasses = array();
private $apcuPrefix;
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
return call_user_func_array('array_merge', $this->prefixesPsr0);
}
return array();
}
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}
public function getClassMap()
{
return $this->classMap;
}
/**
* @param array $classMap Class to filename map
*/
public function addClassMap(array $classMap)
{
if ($this->classMap) {
$this->classMap = array_merge($this->classMap, $classMap);
} else {
$this->classMap = $classMap;
}
}
/**
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
*/
public function add($prefix, $paths, $prepend = false)
{
if (!$prefix) {
if ($prepend) {
$this->fallbackDirsPsr0 = array_merge(
(array) $paths,
$this->fallbackDirsPsr0
);
} else {
$this->fallbackDirsPsr0 = array_merge(
$this->fallbackDirsPsr0,
(array) $paths
);
}
return;
}
$first = $prefix[0];
if (!isset($this->prefixesPsr0[$first][$prefix])) {
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
return;
}
if ($prepend) {
$this->prefixesPsr0[$first][$prefix] = array_merge(
(array) $paths,
$this->prefixesPsr0[$first][$prefix]
);
} else {
$this->prefixesPsr0[$first][$prefix] = array_merge(
$this->prefixesPsr0[$first][$prefix],
(array) $paths
);
}
}
/**
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
if (!$prefix) {
// Register directories for the root namespace.
if ($prepend) {
$this->fallbackDirsPsr4 = array_merge(
(array) $paths,
$this->fallbackDirsPsr4
);
} else {
$this->fallbackDirsPsr4 = array_merge(
$this->fallbackDirsPsr4,
(array) $paths
);
}
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
// Register directories for a new namespace.
$length = strlen($prefix);
if ('\\' !== $prefix[$length - 1]) {
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
}
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
$this->prefixDirsPsr4[$prefix] = (array) $paths;
} elseif ($prepend) {
// Prepend directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
(array) $paths,
$this->prefixDirsPsr4[$prefix]
);
} else {
// Append directories for an already registered namespace.
$this->prefixDirsPsr4[$prefix] = array_merge(
$this->prefixDirsPsr4[$prefix],
(array) $paths
);
}
}
/**
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 base directories
*/
public function set($prefix, $paths)
{
if (!$prefix) {
$this->fallbackDirsPsr0 = (array) $paths;
} else {
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
}
}
/**
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*/
public function setPsr4($prefix, $paths)
{
if (!$prefix) {
$this->fallbackDirsPsr4 = (array) $paths;
} else {
$length = strlen($prefix);
if ('\\' !== $prefix[$length - 1]) {
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
}
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
$this->prefixDirsPsr4[$prefix] = (array) $paths;
}
}
/**
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
*/
public function setUseIncludePath($useIncludePath)
{
$this->useIncludePath = $useIncludePath;
}
/**
* Can be used to check if the autoloader uses the include path to check
* for classes.
*
* @return bool
*/
public function getUseIncludePath()
{
return $this->useIncludePath;
}
/**
* Turns off searching the prefix and fallback directories for classes
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
$this->classMapAuthoritative = $classMapAuthoritative;
}
/**
* Should class lookup fail if not found in the current class map?
*
* @return bool
*/
public function isClassMapAuthoritative()
{
return $this->classMapAuthoritative;
}
/**
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*/
public function setApcuPrefix($apcuPrefix)
{
$this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null;
}
/**
* The APCu prefix in use, or null if APCu caching is not enabled.
*
* @return string|null
*/
public function getApcuPrefix()
{
return $this->apcuPrefix;
}
/**
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
*/
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
}
/**
* Unregisters this instance as an autoloader.
*/
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));
}
/**
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
*/
public function loadClass($class)
{
if ($file = $this->findFile($class)) {
includeFile($file);
return true;
}
}
/**
* Finds the path to the file where the class is defined.
*
* @param string $class The name of the class
*
* @return string|false The path if found, false otherwise
*/
public function findFile($class)
{
// class map lookup
if (isset($this->classMap[$class])) {
return $this->classMap[$class];
}
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false;
}
if (null !== $this->apcuPrefix) {
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
if ($hit) {
return $file;
}
}
$file = $this->findFileWithExtension($class, '.php');
// Search for Hack files if we are running on HHVM
if (false === $file && defined('HHVM_VERSION')) {
$file = $this->findFileWithExtension($class, '.hh');
}
if (null !== $this->apcuPrefix) {
apcu_add($this->apcuPrefix.$class, $file);
}
if (false === $file) {
// Remember that this class does not exist.
$this->missingClasses[$class] = true;
}
return $file;
}
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
$first = $class[0];
if (isset($this->prefixLengthsPsr4[$first])) {
$subPath = $class;
while (false !== $lastPos = strrpos($subPath, '\\')) {
$subPath = substr($subPath, 0, $lastPos);
$search = $subPath.'\\';
if (isset($this->prefixDirsPsr4[$search])) {
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
foreach ($this->prefixDirsPsr4[$search] as $dir) {
if (file_exists($file = $dir . $pathEnd)) {
return $file;
}
}
}
}
}
// PSR-4 fallback dirs
foreach ($this->fallbackDirsPsr4 as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
return $file;
}
}
// PSR-0 lookup
if (false !== $pos = strrpos($class, '\\')) {
// namespaced class name
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
} else {
// PEAR-like class name
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
}
if (isset($this->prefixesPsr0[$first])) {
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
if (0 === strpos($class, $prefix)) {
foreach ($dirs as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
return $file;
}
}
}
}
}
// PSR-0 fallback dirs
foreach ($this->fallbackDirsPsr0 as $dir) {
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
return $file;
}
}
// PSR-0 include paths.
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file;
}
return false;
}
}
/**
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*/
function includeFile($file)
{
include $file;
}

View File

@@ -0,0 +1,21 @@
Copyright (c) Nils Adermann, Jordi Boggiano
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,9 @@
<?php
// autoload_classmap.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);

View File

@@ -0,0 +1,9 @@
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);

View File

@@ -0,0 +1,9 @@
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
);

View File

@@ -0,0 +1,52 @@
<?php
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit5c614cebb8073ddeb1f4a4500d7b03f4
{
private static $loader;
public static function loadClassLoader($class)
{
if ('Composer\Autoload\ClassLoader' === $class) {
require __DIR__ . '/ClassLoader.php';
}
}
public static function getLoader()
{
if (null !== self::$loader) {
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit5c614cebb8073ddeb1f4a4500d7b03f4', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit5c614cebb8073ddeb1f4a4500d7b03f4', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit5c614cebb8073ddeb1f4a4500d7b03f4::getInitializer($loader));
} else {
$map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) {
$loader->set($namespace, $path);
}
$map = require __DIR__ . '/autoload_psr4.php';
foreach ($map as $namespace => $path) {
$loader->setPsr4($namespace, $path);
}
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
$loader->addClassMap($classMap);
}
}
$loader->register(true);
return $loader;
}
}

View File

@@ -0,0 +1,15 @@
<?php
// autoload_static.php @generated by Composer
namespace Composer\Autoload;
class ComposerStaticInit5c614cebb8073ddeb1f4a4500d7b03f4
{
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
}, null, ClassLoader::class);
}
}

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../');
exit;

View File

@@ -0,0 +1,156 @@
{*
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if isset($smarty.get.validation)}
<div class="alert alert-success" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<p class="alert-text">{l s='Your sitemaps were successfully created. Please do not forget to setup the URL' d='Modules.Gsitemap.Admin'} <a class="alert-link" href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</a> {l s='in your Google Webmaster account.' d='Modules.Gsitemap.Admin'}</p>
</div>
{/if}
<div class="panel">
{if isset($google_maps_error)}
<div class="error">
{$google_maps_error|escape:'htmlall':'UTF-8'}<br>
</div>
{/if}
{if isset($gsitemap_refresh_page)}
<h3><i class="icon icon-sitemap"></i> {l s='Your sitemaps' d='Modules.Gsitemap.Admin'}</h3>
<p>{$gsitemap_number|intval} {l s='Sitemaps were already created.' d='Modules.Gsitemap.Admin'}</p>
<br><br>
<form action="{$gsitemap_refresh_page|escape:'htmlall':'UTF-8'}" method="post" id="gsitemap_generate_sitmap">
<img src="../img/loader.gif" alt=""/>
<input type="submit" class="button" value="{l s='Continue' d='Admin.Actions'}" style="display: none;"/>
</form>
{else}
{if $gsitemap_links}
<h3><i class="icon icon-sitemap"></i> {l s='Your sitemaps' d='Modules.Gsitemap.Admin'}</h3>
{l s='Please set up the following sitemap URL in your Google Webmaster account:' d='Modules.Gsitemap.Admin'}<br>
<a href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml" target="_blank">{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$shop->id|intval}_index_sitemap.xml</a><br><br>
{l s='The above URL is the master sitemap file. It refers to the following sub-sitemap files:' d='Modules.Gsitemap.Admin'}
<div style="max-height: 220px; overflow: auto;">
<ul>
{foreach from=$gsitemap_links item=gsitemap_link}
<li><a target="_blank" href="{$gsitemap_store_url|escape:'htmlall':'UTF-8'}{$gsitemap_link.link|escape:'htmlall':'UTF-8'}">{$gsitemap_link.link|escape:'htmlall':'UTF-8'}</a></li>
{/foreach}
</ul>
</div>
<p>{l s='Your last update was made on this date:' d='Modules.Gsitemap.Admin'} {$gsitemap_last_export|escape:'htmlall':'UTF-8'}</p>
{else}
<h3><i class="icon icon-sitemap"></i> {l s='Your sitemaps' d='Modules.Gsitemap.Admin'}</h3>
<p>{l s='This shop has no sitemap yet.' d='Modules.Gsitemap.Admin'}<br>
</p>
{/if}
{if ($gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0) || ($gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0)}
<br>
<div class="alert alert-warning" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<p>{l s='For a better use of the module, please make sure that you have' d='Modules.Gsitemap.Admin'}<br>
<ul>
{if $gsitemap_customer_limit.memory_limit < 128 && $gsitemap_customer_limit.memory_limit > 0}
<li>{l s='A minimum memory_limit value of 128 MB.' d='Modules.Gsitemap.Admin'}</li>
{/if}
{if $gsitemap_customer_limit.max_exec_time < 30 && $gsitemap_customer_limit.max_exec_time > 0}
<li>{l s='A minimum max_execution_time value of 30 seconds.' d='Modules.Gsitemap.Admin'}</li>
{/if}
</ul>
{l s='You can edit these limits in your php.ini file. For more details, please contact your hosting provider.' d='Modules.Gsitemap.Admin'}</p>
</div>
{/if}
</div>
<div class="panel">
<form action="{$gsitemap_form|escape:'htmlall':'UTF-8'}" method="post">
<h3><i class="icon icon-wrench"></i> {l s='Configure your sitemap' d='Modules.Gsitemap.Admin'}</h3>
<p>{l s='Several sitemap files will be generated depending on how your server is configured and on the number of activated products in your catalog.' d='Modules.Gsitemap.Admin'}<br></p>
<div class="margin-form">
<label for="gsitemap_frequency" >{l s='How often do you update your store?' d='Modules.Gsitemap.Admin'}
<select name="gsitemap_frequency">
<option{if $gsitemap_frequency == 'always'} selected="selected"{/if} value='always'>{l s='always' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'hourly'} selected="selected"{/if} value='hourly'>{l s='hourly' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'daily'} selected="selected"{/if} value='daily'>{l s='daily' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'weekly' || $gsitemap_frequency == ''} selected="selected"{/if} value='weekly'>{l s='weekly' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'monthly'} selected="selected"{/if} value='monthly'>{l s='monthly' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'yearly'} selected="selected"{/if} value='yearly'>{l s='yearly' d='Modules.Gsitemap.Admin'}</option>
<option{if $gsitemap_frequency == 'never'} selected="selected"{/if} value='never'>{l s='never' d='Modules.Gsitemap.Admin'}</option>
</select></label>
</div>
<label><input type="checkbox" name="gsitemap_check_image_file" value="1" {if $gsitemap_check_image_file}checked{/if}> {l s='Check this box if you wish to check the presence of the image files on the server' d='Modules.Gsitemap.Admin'}</label>
<br>
<p>{l s='Indicate the pages that you do not want to include in your sitemap files:' d='Modules.Gsitemap.Admin'}</p>
<button class="btn btn-secondary" id="check">{l s='Uncheck all' d='Modules.Gsitemap.Admin'}</button>
<br>
<br class="clear" />
<ul>
{foreach from=$store_metas item=store_meta}
<li style="float: left; width: 400px; margin-bottom: 15px">
<label><input type="checkbox" class="gsitemap_metas" name="gsitemap_meta[]" {if in_array($store_meta.id_meta, $gsitemap_disable_metas)} checked="checked"{/if} value="{$store_meta.id_meta|intval}"> {$store_meta.title|escape:'htmlall':'UTF-8'} [{$store_meta.page|escape:'htmlall':'UTF-8'}]</label>
</li>
{/foreach}
</ul>
<br>
<div class="margin-form" style="clear: both;">
<br>
<button type="submit" class="btn btn-primary btn-lg" name="SubmitGsitemap" onclick="$('#gsitemap_loader').show();">{l s='Generate sitemap' d='Modules.Gsitemap.Admin'}</button>
<br><br>
<div class="alert alert-info" role="alert">
{l s='Generating a sitemap can take several minutes' d='Modules.Gsitemap.Admin'}</p>
</div>
</div>
<p id="gsitemap_loader" style="text-align: center; display: none;"><img src="../img/loader.gif" alt=""/></p>
</form>
</div>
<div class="panel">
<h3><i class="icon icon-tags"></i> {l s='Information' d='Modules.Gsitemap.Admin'}</h3>
<p>
<strong>{l s='You have two ways to generate sitemaps.' d='Modules.Gsitemap.Admin'}</strong><br><br>
1. <strong>{l s='Manually:' d='Modules.Gsitemap.Admin'}</strong> {l s='Using the form above (as often as needed)' d='Modules.Gsitemap.Admin'}<br>
<br><span style="font-style: italic;">{l s='-or-' d='Modules.Gsitemap.Admin'}</span><br><br>
2. <strong>{l s='Automatically:' d='Modules.Gsitemap.Admin'}</strong> {l s='Ask your hosting provider to setup a "Cron job" to load the following URL at the time you would like:' d='Modules.Gsitemap.Admin'}
<a href="{$gsitemap_cron|escape:'htmlall':'UTF-8'}" target="_blank">{$gsitemap_cron|escape:'htmlall':'UTF-8'}</a><br>
{l s='It will automatically generate your XML sitemaps.' d='Modules.Gsitemap.Admin'}
</p>
{/if}
</p>
</div>
<script type="text/javascript">
$(document).ready(function() {
if ($('.gsitemap_metas:checked').length == $('.gsitemap_metas').length)
$('#check').html("{l s='Uncheck all' d='Modules.Gsitemap.Admin'}");
$('#check').toggle(function() {
$('.gsitemap_metas').removeAttr('checked');
$(this).html("{l s='Check all' d='Modules.Gsitemap.Admin'}");
}, function() {
$('.gsitemap_metas').attr('checked', 'checked');
$(this).html("{l s='Uncheck all' d='Modules.Gsitemap.Admin'}");
});
});
</script>

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../../');
exit;

View File

@@ -0,0 +1,35 @@
<?php
/**
* 2007-2018 PrestaShop.
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* https://opensource.org/licenses/AFL-3.0
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to https://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2018 PrestaShop SA
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Pragma: no-cache');
header('Location: ../../');
exit;