You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
1.2 KiB

7 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  3. <url><loc><?php echo sysconfig('CMS_BASEHOST'); ?>/</loc><changefreq>daily</changefreq><priority>1.0</priority></url>
  4. <url><loc><?php echo sysconfig('CMS_BASEHOST'); ?>/contact.html</loc></url>
  5. <?php $posts=arclist(array("row"=>300));foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
  6. <?php $posts=arclist(array("row"=>100,"orderby"=>'rand()'));foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
  7. <?php $posts=dataList("arctype");foreach($posts as $row){ ?><url><loc><?php echo sysconfig('CMS_BASEHOST'); ?><?php echo get_front_url(array("catid"=>$row['id'],"type"=>'list')); ?></loc></url><?php } ?>
  8. </urlset>