header("Content-type: text/xml");
header('HTTP/1.1 200 OK');
require 'zb_system/function/c_system_base.php';
global $zbp;
$zbp->host = 'http://' . $_SERVER['SERVER_NAME'] . '/';
$str = '<?xml version="1.0" encoding="UTF-8"?>';
$str .= '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">';
if (!isset($_GET['index'])) {
$str .= '<url>';
$str .= '<loc>' . $zbp->host . '</loc>';
$str .= '<mobile:mobile type="pc,mobile"/>';
$str .= '<last