Beispiel #1
0
/**
 * sitemap xml render start
 *
 * @since 1.2.1
 * @deprecated 2.0.0
 *
 * @package Redaxscript
 * @category Modules
 * @author Henry Ruhs
 */
function sitemap_xml_render_start()
{
    if (FIRST_PARAMETER == 'sitemap_xml') {
        header('content-type: application/xml');
        sitemap_xml();
        define('RENDER_BREAK', 1);
    }
}
Beispiel #2
0
 /**
  * 生成网站地图
  */
 protected function sitemap()
 {
     sitemap_xml();
 }
 /**
  * 更新地图
  */
 public function updatemapAction()
 {
     $fp = @fopen(APP_ROOT . 'finecms_test.txt', 'wb');
     if (!file_exists(APP_ROOT . 'finecms_test.txt') || $fp === false) {
         $this->adminMsg(lang('app-9', array('1' => APP_ROOT)));
     }
     @fclose($fp);
     if (file_exists(APP_ROOT . 'finecms_test.txt')) {
         unlink(APP_ROOT . 'finecms_test.txt');
     }
     $count = sitemap_xml();
     $this->adminMsg(lang('a-ind-39') . '(#' . $count . ')', '', 3, 1, 1);
 }