HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/baretube.com/sitemapTags.php
<?
ini_set('max_execution_time', 86400);
ini_set('memory_limit', '1G');
include('mb.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:image="http://www.google.com/schemas/sitemap-image/1.1" 
  xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
';

$max = 10000;
$from = is_numeric($_GET['offset']) ? (int) $_GET['offset'] : 0;

$result = dbQuery("SELECT * FROM keywords ORDER BY word ASC LIMIT $from, $max");
foreach ($result as $row) {
    $link = "$basehttp/search/".clearString($row['word'])."/";
    ?>
    <url>
        <loc><? echo $link; ?></loc>
        <priority>0.8</priority>
        <changefreq>weekly</changefreq>
        <lastmod><? echo date('c'); ?></lastmod>
    </url>
<? } ?>
</urlset>