mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
еще sitemap
This commit is contained in:
parent
83ea7ea77e
commit
65d37b1f5a
1 changed files with 2 additions and 3 deletions
|
@ -14,12 +14,11 @@ if(request_var('submit', '')) {
|
|||
bb_die('<a href="admin_sitemap.php">'. $lang['GO_BACK'] .'</a>');
|
||||
}
|
||||
|
||||
$s_mess = $lang['SITEMAP_CREATED'].': <b>'.bb_date($new['sitemap_time'], $bb_cfg['post_date_format']).'</b> '.$lang['SITEMAP_AVAILABLE'].': <a href="'.make_url('sitemap.xml').'" target="_blank">'.make_url('sitemap.xml').'</a>';
|
||||
$message = (@file_exists(BB_ROOT. "/internal_data/sitemap/sitemap.xml")) ? $s_mess : $lang['SITEMAP_NOT_CREATED'];
|
||||
$s_mess = $lang['SITEMAP_CREATED'].': <b>'. bb_date($new['sitemap_time'], $bb_cfg['post_date_format']) .'</b> '. $lang['SITEMAP_AVAILABLE'] .': <a href="'. make_url('sitemap.xml') .'" target="_blank">'. make_url('sitemap.xml') .'</a>';
|
||||
|
||||
$template->assign_vars(array(
|
||||
'STATIC_SITEMAP' => $new['static_sitemap'],
|
||||
'MESSAGE' => $message,
|
||||
'MESSAGE' => (file_exists(INT_DATA_DIR ."sitemap/sitemap.xml")) ? $s_mess : $lang['SITEMAP_NOT_CREATED'],
|
||||
));
|
||||
|
||||
print_page('admin_sitemap.tpl', 'admin');
|
Loading…
Add table
Add a link
Reference in a new issue