mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
18 lines
543 B
PHP
18 lines
543 B
PHP
|
<?php
|
||
|
|
||
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
||
|
|
||
|
require(CLASS_DIR .'sitemap.php');
|
||
|
|
||
|
$map = new sitemap();
|
||
|
$map->create();
|
||
|
|
||
|
if (@file_exists(BB_ROOT. "/sitemap/sitemap.xml"))
|
||
|
{
|
||
|
$map_link = make_url('/sitemap/sitemap.xml');
|
||
|
|
||
|
$map->send_url("http://google.com/webmasters/sitemaps/ping?sitemap=", $map_link);
|
||
|
$map->send_url("http://ping.blogs.yandex.ru/ping?sitemap=", $map_link);
|
||
|
$map->send_url("http://www.bing.com/ping?sitemap=", $map_link);
|
||
|
$map->send_url("http://rpc.weblogs.com/pingSiteForm?name=InfraBlog&url=", $map_link);
|
||
|
}
|