Any ideas why I would get this error?
Parse error: parse error, unexpected T_SL, expecting ',' or ';' in /home/tooloutf/public_html/include/customer/google_sitemap.php on line 26
<?php
//=======================================================================
// File: GOOGLE_SITEMAP.PHP
// Description: Google Sitemap Generator.
// Created: 2006-10-12
// Ver: $Id: google_sitemap.php 2 2006-10-12 00:0:00Z lsb $
//
// SEO modifications by Zyles
//
// Copyright 2006 (c) RENS Management, LLC. All rights reserved.
//========================================================================
if ( !defined('IN_CSCART') ) { die('Access denied'); }
$products=$categories=array();
$categories_all=db_get_array("SELECT category_id FROM $db_tables[categories] WHERE membership_id=0 && avail='Y'");
$products_all=db_get_array("SELECT product_id FROM $db_tables[products] WHERE avail='Y'");
$manufacturers_all=db_get_array("SELECT manufacturer_id FROM $db_tables[manufacturers] WHERE avail='Y'");
while (list(, $cats) = each($categories_all)) $categories[]=$cats['category_id'];
while (list(, $items) = each($products_all)) $products[]=$items['product_id'];
while (list(, $manufacs) = each($manufacturers_all)) $manufacturers[]=$manufacs['manufacturer_id'];
header("Content-Type: text/xml;charset=utf-8");
$lastmod = date("Y-m-d", time());
$siteurl = utf8_encode(htmlentities("$http_location"));
echo <<<START
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
<url>
<loc>$siteurl</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>\n
START;
// process categories
foreach ($categories as $category) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=categories&category_id=$category"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
// process products
foreach ($products as $product) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=products&product_id=$product"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
// process manufacturers
foreach ($manufacturers as $manufacturer) {
$link = utf8_encode(htmlentities("$http_location/$index_script?$target_name=manufacturers&manufacturer_id=$manufacturer"));
fn_convert_php_urls($link);
echo <<<LINKS
<url>
<loc>$link</loc>
<lastmod>$lastmod</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>\n
LINKS;
}
echo <<<END
</urlset>
END;
exit;
?>