﻿<?php
require_once(dirname(__FILE__).'/include/config.inc.php');
header("Content-type:text/xml"); //输出xml作为文档的头部
echo '<?xml version="1.0" encoding="UTF-8"?>

<urlset xmlns="http://www.google.com/schemas/sitemap/0.84"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.84
       http://www.google.com/schemas/sitemap/0.9/sitemap.xsd">';

echo '
<url>
<loc>https://www.zngh.com</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>always</changefreq> 
<priority>1.0</priority>
</url>
<url>
<loc>https://www.zngh.com/index.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>always</changefreq> 
<priority>0.9</priority>
</url>
<url>
<loc>https://www.zngh.com/video.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.9</priority>
</url>
<url>
<loc>https://www.zngh.com/video_znzxx.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.6</priority>
</url>
<url>
<loc>https://www.zngh.com/video_djpc.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.6</priority>
</url>
<url>
<loc>https://www.zngh.com/video_dyxc.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>always</changefreq> 
<priority>0.6</priority>
</url>
<url>
<loc>https://www.zngh.com/video_dkft.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>always</changefreq> 
<priority>0.6</priority>
</url>
<url>
<loc>https://www.zngh.com/video_zxsj.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>always</changefreq> 
<priority>0.6</priority>
</url>
<url>
<loc>https://www.zngh.com/article_jiadian.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/article_yingjian.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/article_jiaju.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/article_smartcar.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/article_pingce.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/topic.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>daily</changefreq> 
<priority>0.8</priority>
</url>
<url>
<loc>https://www.zngh.com/consortia.php</loc>
<lastmod>'.date("Y-m-d").'</lastmod>
<changefreq>monthly</changefreq> 
<priority>0.5</priority>
</url>

';


    $dosql->Execute("SELECT * FROM `#@__infolist` WHERE delstate='' AND checkinfo=true AND posttime<=$nowtime ORDER BY posttime DESC ");
	while($row = $dosql->GetArray())
		{
		$flagtext=$row['flag'];
		$str=strstr($flagtext,'s');
		if(!$str){
		$gourl = 'articleshow.php?cid='.$row['classid'].'&amp;id='.$row['id'];}
		else{
		$gourl = 'videoshow.php?cid='.$row['classid'].'&amp;id='.$row['id'];}
		$ptime=GetDateMk($row['posttime']);


            echo '
<url>
<loc>https://www.zngh.com/'.$gourl.'</loc>
<lastmod>'.$ptime.'</lastmod>
<changefreq>never</changefreq> 
<priority>0.5</priority>
</url>
';
 }


?></urlset>