mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-03-01 15:21:02 +03:00
18 lines
376 B
PHP
18 lines
376 B
PHP
<?php
|
|
|
|
if (!defined('BB_ROOT')) die(basename(__FILE__));
|
|
|
|
require(CLASS_DIR .'sitemap.php');
|
|
|
|
$map = new sitemap();
|
|
$map->create();
|
|
|
|
if (@file_exists(SITEMAP_DIR. 'sitemap.xml'))
|
|
{
|
|
$map_link = make_url(hide_bb_path(SITEMAP_DIR. 'sitemap.xml'));
|
|
|
|
foreach ($bb_cfg['sitemap_sending'] as $source_name => $source_link)
|
|
{
|
|
$map->send_url($source_link, $map_link);
|
|
}
|
|
} |