Google sitemap CS Cart 2.0.8 with SEO

I have a google sitemap who run perfectly under 1.3.5 CS cart Version.

Today I try to modify it to the 2.0.8 version and even if i have doing modification, i have allways syntax error. Do you know if the functions fn_convert_php_urls have allways the same name or not and where is it ?

Thanks for your help.

<?php<br />
//======================================================================= <br />
// File: GOOGLE_SITEMAP.PHP <br />
// Description: Google Sitemap Generator. <br />
// Created: 2006-10-12 <br />
// Ver: $Id: google_sitemap.php 2 2006-10-12 00:0:00Z lsb $ <br />
// <br />
// Copyright 2006 (c) RENS Management, LLC. All rights reserved. <br />
//======================================================================== <br />
<br />
if ( !defined('AREA') ) { die('Access denied'); }<br />
<br />
$products=$categories=array();<br />
$categories_all=db_get_array("category_id SELECT FROM $db_tables[categories] WHERE membership_id=0 && status='A'");<br />
$products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='A'");<br />
while (list(, $cats) = each($categories_all)) $categories[]=$cats['category_id'];<br />
while (list(, $items) = each($products_all)) $products[]=$items['product_id'];<br />
header("Content-Type: text/xml;charset=utf-8");<br />
$lastmod = date("Y-m-d", time());<br />
$siteurl = utf8_encode(htmlentities("$http_location"));<br />
echo <<<START<br />
<?xml version='1.0' encoding='UTF-8'?><br />
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
         xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9<br />
         http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"<br />
         xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><br />
<url><br />
<loc>$siteurl</loc><br />
<lastmod>$lastmod</lastmod><br />
<changefreq>daily</changefreq><br />
<priority>1.0</priority><br />
</url>\n<br />
START;<br />
<br />
// process categories<br />
foreach ($categories as $category) {<br />
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=categories&category_id=$category"));fn_convert_php_urls($link);<br />
echo <<<LINKS<br />
<url><br />
<loc>$siteurl/$link</loc><br />
<lastmod>$lastmod</lastmod><br />
<changefreq>daily</changefreq><br />
<priority>0.5</priority><br />
</url>\n<br />
LINKS;<br />
}<br />
echo <<<END<br />
<br />
</urlset><br />
END;<br />
exit;<br />
?>

the 2.08+ version is available free here:

[url]http://www.snorocket.com/forums/showthread.php?t=222[/url]

Thanks and congratulation for this very good addon.