mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Removed sitemap ping because is deprecated (#1738)
* Removed sitemap ping because is deprecated * Update CHANGELOG.md * Update Sitemap.php * Update main.php * Update config.php * Update sitemap.php * Updated * Update admin_sitemap.tpl * Update admin_sitemap.tpl * Update admin_sitemap.tpl
This commit is contained in:
parent
7a84cdd5c3
commit
4cc6fa0e6c
7 changed files with 99 additions and 179 deletions
|
@ -30,22 +30,6 @@ switch ($mode) {
|
|||
}
|
||||
break;
|
||||
|
||||
case 'search_update':
|
||||
if (!is_file(SITEMAP_DIR . '/sitemap.xml')) {
|
||||
$map->createSitemap();
|
||||
}
|
||||
|
||||
$map_link = make_url(hide_bb_path(SITEMAP_DIR . '/sitemap.xml'));
|
||||
|
||||
foreach ($bb_cfg['sitemap_sending'] as $source_name => $source_link) {
|
||||
if ($map->sendSitemap($source_link, $map_link)) {
|
||||
$html .= '<br />' . $lang['SITEMAP_NOTIFY_SEARCH'] . ' ' . $source_name . ' : <span style="color: green;">' . $lang['SITEMAP_SENT'] . '</span>';
|
||||
} else {
|
||||
$html .= '<br />' . $lang['SITEMAP_NOTIFY_SEARCH'] . ' ' . $source_name . ' : <span style="color: red;">' . $lang['SITEMAP_ERROR'] . '</span> URL: <a href="' . $source_link . urlencode($map_link) . '" target="_blank">' . $source_link . $map_link . '</a>';
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
$this->ajax_die("Invalid mode: $mode");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue