<?php
//code by hoangthikd@gmail.com
require_once(dirname(__FILE__). '/app.php');
header('Content-type: application/xml; charset=utf-8');

$cates = DB::LimitQuery('cate', array(
	'condition' => array('display' => 'Y'),
	'order' => 'ORDER BY id DESC',
));
$staticpages = DB::LimitQuery('staticpage', array(
	'condition' => array('display' => 'Y'),
	'order' => 'ORDER BY id DESC',
));
$posts = DB::LimitQuery('news', array(
	'condition' => array('display' => 'Y'),
	'order' => 'ORDER BY id DESC',
));
$products = DB::LimitQuery('product', array(
	'condition' => array('display' => 'Y'),
	'order' => 'ORDER BY id DESC',
));

include template('sitemap');
?>