PEEL Shopping
Open source ecommerce : PEEL Shopping
get_sitemap.php
Go to the documentation of this file.
1 <?php
2 // This file should be in UTF8 without BOM - Accents examples: éèê
3 // +----------------------------------------------------------------------+
4 // | Copyright (c) 2004-2015 Advisto SAS, service PEEL - contact@peel.fr |
5 // +----------------------------------------------------------------------+
6 // | This file is part of PEEL Shopping 8.0.0, which is subject to an |
7 // | opensource GPL license: you are allowed to customize the code |
8 // | for your own needs, but must keep your changes under GPL |
9 // | More information: https://www.peel.fr/lire/licence-gpl-70.html |
10 // +----------------------------------------------------------------------+
11 // | Author: Advisto SAS, RCS 479 205 452, France, https://www.peel.fr/ |
12 // +----------------------------------------------------------------------+
13 // $Id: get_sitemap.php 46935 2015-09-18 08:49:48Z gboussin $
14 
15 define('LOAD_NO_OPTIONAL_MODULE', true);
16 include("configuration.inc.php");
17 // Yahoo
18 $urrlist_filename = $GLOBALS['dirroot'] . "/urllist_" . substr(md5(get_site_domain(false, $GLOBALS['wwwroot'], false)), 0, 4) . ".txt";
19 // Google
20 $sitemap_filename = $GLOBALS['dirroot'] . "/sitemap_" . substr(md5(get_site_domain(false, $GLOBALS['wwwroot'], false)), 0, 4) . ".xml";
21 
22 // retourne le fichier sitemap correspondant au sous-domaine/domaine utilisé.
23 if (!empty($_GET['file']) && $_GET['file'] == 'sitemap' && file_exists($sitemap_filename)) {
25  $content_type = 'application/xml';
26 } elseif (!empty($_GET['file']) && $_GET['file'] == 'urllist' && file_exists($urrlist_filename)) {
28  $content_type = 'text/plain';
29 } else {
30  // appel incorrect ou fichier inexistant
31  die();
32 }
33 
34 output_xml_http_export_header($_GET['file'], 'utf-8', $content_type, 3600);
$urrlist_filename
Definition: get_sitemap.php:18
static file_get_contents_utf8($filename, $force_filename_in_iso_8859=false, $try_filename_in_iso_8859_if_file_not_found=true)
Renvoie le contenu d'un fichier.
Definition: String.php:836
if(strlen($date2)== '10') if($type== 'users-by-age'&&a_priv('admin_users', true)) elseif($type== 'forums-count'&&a_priv('admin_content', true)) elseif($type== 'forums-categories'&&a_priv('admin_content', true)) elseif($type== 'users-count'&&a_priv('admin_users', true)) elseif($type== 'product-categories'&&a_priv('admin_products', true)) elseif($type== 'users-by-sex'&&a_priv('admin_users', true)) elseif($type== 'users-by-country'&&a_priv('admin_users', true)) elseif($type== 'sales'&&a_priv('admin_sales', true))
Definition: chart-data.php:160
output_xml_http_export_header($filename, $page_encoding, $content_type= 'application/svg+xml', $cache_duration_in_seconds=null)
output_xml_http_export_header()
Definition: format.php:828
$GLOBALS['page_columns_count']
$filename
get_site_domain($return_only_domains=false, $domain=null, $strip_subdomain=true)
Récupère le nom de domaine du site sans http:// et sans sous-domaine.
Definition: fonctions.php:3632
$sitemap_filename
Definition: get_sitemap.php:20

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:29:53 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.