![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/gositeme.com/public_html/quickqr/php/ |
<?php
header('Content-type: text/xml');
function text_replace_for_xml($text){
$text = str_replace("&","&",stripslashes($text));
$text = str_replace('<','<',$text);
$text = str_replace('>','>',$text);
return $text;
}
if($config['xml_latest'] == 1){
echo '<?xml version="1.0" encoding="UTF-8"?>';
echo '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:pagemap="http://www.google.com/schemas/sitemap-pagemap/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">';
$rows = ORM::for_table($config['db']['pre'].'restaurant')
->order_by_desc('id')
->find_many();
foreach ($rows as $info)
{
$slug = create_slug($info['name']);
$url = $config['site_url'].$info['slug'];
echo '<url>';
echo '<loc>' . $url . '</loc>';
echo '<changefreq>daily</changefreq>';
echo '<priority>1</priority>';
echo '</url>';
}
echo '</urlset>';
}