Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
header("Content-type: text/xml; charset=utf-8");
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<urlset
xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd\">";
$site_url="http://dwdvideo.com/";
print "<url>
<loc>".$site_url."</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>1.00</priority>
</url>
<url>
<loc>".$site_url."forum/</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.82</priority>
</url>
<url>
<loc>".$site_url."програми</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.62</priority>
</url>
<url>
<loc>".$site_url."вип</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.62</priority>
</url>
<url>
<loc>".$site_url."бира</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.62</priority>
</url>
<url>
<loc>".$site_url."контакти</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.52</priority>
</url>";
include ("blocks/bd.php");
$result = mysql_query("SELECT `id` FROM `categories` ORDER BY `id` DESC") or die ("<p>Грешка1</p>");
if ($myrow = mysql_fetch_array($result))
{
do
{
printf ("<url>
<loc>".$site_url."категория-%s</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.90</priority>
</url>",$myrow["id"]);
}
while ($myrow = mysql_fetch_array($result));
}
$result = mysql_query("SELECT data.`id`,data.`description`,data.`title`,categories.`id` as `catid` FROM `data` LEFT JOIN `categories` ON data.`cat` = categories.`id` WHERE `secret`=0 ORDER BY `id` DESC") or die ("<p>Грешка2</p>");
if ($myrow = mysql_fetch_array($result))
{
do
{
printf ("<url>
<loc>http://dwdvideo.com/урок-%s-%s</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.80</priority>
</url>",$myrow["catid"],$myrow["id"]);
}
while ($myrow = mysql_fetch_array($result));
}
$result = mysql_query("SELECT * FROM `download` ORDER BY `title`") or die ("<p>Грешка2</p>");
if ($myrow = mysql_fetch_array($result))
{
do
{
printf ("<url>
<loc>http://dwdvideo.com/изтегли-%s</loc>
<lastmod>".date("Y-m-d")."</lastmod>
<changefreq>daily</changefreq>
<priority>0.80</priority>
</url>",$myrow["filename"]);
}
while ($myrow = mysql_fetch_array($result));
}
echo "</urlset>";
?>