torrentpier-lts/library/includes/cron/jobs/sitemap.php

18 lines
367 B
PHP
Raw Normal View History

<?php
if (!defined('BB_ROOT')) die(basename(__FILE__));
require(CLASS_DIR .'sitemap.php');
$map = new sitemap();
$map->create();
2023-04-01 10:55:42 +03:00
if (@file_exists(SITEMAP_DIR. 'sitemap.xml'))
{
2023-04-01 10:55:42 +03:00
$map_link = make_url(hide_bb_path(SITEMAP_DIR. 'sitemap.xml'));
2023-04-01 10:55:42 +03:00
foreach ($bb_cfg['sitemap_sending'] as $source_name => $source_link)
{
2023-08-10 09:35:32 +03:00
$map->send_url($source_link, $map_link);
}
}