core/api/modules/qsitemap/index.php

14 lines
461 B
PHP
Raw Normal View History

2023-01-02 21:33:36 +05:00
<?php
2023-01-07 18:55:55 +05:00
//604800 - неделя
2023-01-02 21:33:36 +05:00
header( 'Content-Type: text/xml' );
2023-01-07 18:55:55 +05:00
header("Cache-Control: public");
header("Expires: " . date("r", time() + 604800));
2023-01-02 21:33:36 +05:00
ini_set( 'display_errors', 0 );
$smarty -> caching = true;
2023-01-07 18:55:55 +05:00
$smarty -> cache_lifetime = 604800;
2023-01-02 21:33:36 +05:00
$data=date( "Y-m-d" );
$smarty -> assign( 'data', $data );
2023-01-07 18:55:55 +05:00
#читаем карту сайта
$link= \DB::getAll( 'SELECT `link` FROM `sitemap` WHERE `status`=1' );
$smarty -> assign( 'link', $link );
2023-01-02 21:33:36 +05:00
?>