File: /home/httpd/html/porn.tw/public_html/sitemap.php
<?
@session_start();
include('admin/db.php');
header('Content-type: text/xml; charset=UTF-8');
echo '<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
';
?>
<sitemap>
<loc><? echo $basehttp; ?>/sitemapMain.php</loc>
<lastmod><? echo date('c'); ?></lastmod>
</sitemap>
<sitemap>
<loc><? echo $basehttp; ?>/sitemapUsers.php</loc>
<lastmod><? echo date('c'); ?></lastmod>
</sitemap>
<?
$count = count(dbQuery("SELECT record_num FROM content WHERE enabled = 1 and photos = 0"));
$i = 0;
while($i < $count) {
?>
<sitemap>
<loc><? echo $basehttp; ?>/sitemapVideoPages.php?offset=<? echo $i; ?></loc>
<lastmod><? echo date('c'); ?></lastmod>
</sitemap>
<?
$i = $i + 10000;
}
?>
<?
$count = count(dbQuery("SELECT record_num FROM keywords"));
$i = 0;
while($i < $count) {
?>
<sitemap>
<loc><? echo $basehttp; ?>/sitemapTags.php?offset=<? echo $i; ?></loc>
<lastmod><? echo date('c'); ?></lastmod>
</sitemap>
<?
$i = $i + 10000;
}
?>
<? if(count(dbQuery("SELECT record_num FROM pornstars")) > 0) { ?>
<sitemap>
<loc><? echo $basehttp; ?>/sitemapPornstars.php</loc>
<lastmod><? echo date('c'); ?></lastmod>
</sitemap>
<? } ?>
</sitemapindex>