<?='<?xml version="1.0" encoding="UTF-8"?>'; ?>
<?
include("include/db.php");
echo '
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';

$result = mysql_query("SELECT id FROM articles ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/articles.php?id='.$myrow['id'].'</loc>
			<priority>0.9</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));




$result = mysql_query("SELECT id FROM users ORDER BY id DESC LIMIT 0,3000");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/user_info.php?id='.$myrow['id'].'</loc>
			<priority>0.9</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));




$result = mysql_query("SELECT id FROM news ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/news.php?id='.$myrow['id'].'</loc>
			<priority>0.8</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));




$result = mysql_query("SELECT id FROM term ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/term.php?id='.$myrow['id'].'</loc>
			<priority>0.9</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));




$result = mysql_query("SELECT id, category_id FROM `quest-answer` ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/quest-answer.php?id='.$myrow['id'].'</loc>
			<priority>0.9</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));




$result = mysql_query("SELECT id FROM blog ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/blog.php?id='.$myrow['id'].'</loc>
			<priority>0.9</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));





$result = mysql_query("SELECT id,title,category_id FROM forum_themes ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		$result_section = mysql_query("SELECT section_id FROM forum_category WHERE id=".$myrow['category_id']);
		$myrow_section = mysql_fetch_array($result_section);
						
		echo '
		<url>
			<loc>http://mashintop.ru/forum.php?id='.$myrow['id'].'</loc>
			<priority>0.6</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));

				
				


$result = mysql_query("SELECT id FROM review_auto ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/review_see.php?id='.$myrow['id'].'</loc>
			<priority>0.7</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));





$result = mysql_query("SELECT id FROM video ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/video.php?id='.$myrow['id'].'</loc>
			<priority>0.5</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));






$result = mysql_query("SELECT id FROM photo ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/photo.php?id='.$myrow['id'].'</loc>
			<priority>0.3</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));






$result = mysql_query("SELECT id FROM announcement_auto ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/announcement_auto.php?id='.$myrow['id'].'</loc>
			<priority>0.6</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));





$result = mysql_query("SELECT id FROM skatalog ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/skatalog.php?id='.$myrow['id'].'</loc>
			<priority>0.6</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));


$result = mysql_query("SELECT id FROM katalog ORDER BY id DESC LIMIT 0,50");
$myrow = mysql_fetch_array($result);
do
	{
		echo '
		<url>
			<loc>http://mashintop.ru/katalog.php?id='.$myrow['id'].'</loc>
			<priority>0.6</priority>
   		</url>';
	}
while($myrow = mysql_fetch_array($result));

				
echo '</urlset>';

?>