Exemplo n.º 1
0
 /**
  * Compression GZ + ping Google
  */
 private function compressedGooglePing($create)
 {
     $sitemap = new magixcjquery_xml_sitemap();
     if (!extension_loaded('zlib')) {
         $sitemap->sendSitemapGoogle(substr(magixcjquery_html_helpersHtml::getUrl(), 7), 'sitemap.xml');
     } else {
         $this->compressed();
         $sitemap->sendSitemapGoogle(substr(magixcjquery_html_helpersHtml::getUrl(), 7), 'sitemap.xml.gz');
     }
     $this->message->getNotify('pinguer');
 }
Exemplo n.º 2
0
 /**
  * URL index du module suivant la langue
  * @param $idlang
  */
 public function sitemap_uri_index($idlang)
 {
     $sitemap = new magixcjquery_xml_sitemap();
     // Table des langues
     $lang = new backend_db_block_lang();
     // Retourne le code ISO
     $db = $lang->s_data_iso($idlang);
     if ($db != null) {
         $sitemap->writeMakeNode(magixcjquery_html_helpersHtml::getUrl() . magixglobal_model_rewrite::filter_plugins_root_url($db['iso'], 'contact', true), $this->lastmod_dateFormat(), 'always', 0.7);
     }
 }