'; //шаблон ноды $t=' http://moto-tools.com.ua@0 '.$lastmod.' 1 daily '; $tItems=array(); include 'globals.inc'; include '_includes/u_dbworker.inc'; $dbw=new u_dbworker($dbhost,$dbname,$dbuser_u,$dbpassword_u,'postgres'); //основные страницы $tItems[]=str_replace('@0','/',$t); $tItems[]=str_replace('@0','/catalogue/',$t); $tItems[]=str_replace('@0','/articles/',$t); $tItems[]=str_replace('@0','/dictionaries/',$t); $tItems[]=str_replace('@0','/about/',$t); $tItems[]=str_replace('@0','/our-showcase/',$t); $tItems[]=str_replace('@0','/lease/',$t); $tItems[]=str_replace('@0','/stock/',$t); $tItems[]=str_replace('@0','/service/',$t); $tItems[]=str_replace('@0','/buy/',$t); $tItems[]=str_replace('@0','/contacts/',$t); $tItems[]=str_replace('@0','/map/',$t); //каталог $sr=$dbw->Qry('select id as url from "VCat" where isleave=true'); if ($sr[0]!='error') foreach ($sr as $v) $tItems[]=str_replace('@0','/catalogue/'.$v->url.'/',$t); //статьи $sr=$dbw->Qry('select url from "DArt" where ishtml=true'); if ($sr[0]!='error') foreach ($sr as $v) $tItems[]=str_replace('@0','/articles/'.$v->url.'/',$t); //справочники $sr=$dbw->Qry('select url from "DDict" where ishtml=true'); if ($sr[0]!='error') foreach ($sr as $v) $tItems[]=str_replace('@0','/dictionaries/'.$v->url.'/',$t); //товары $sr=$dbw->Qry('select id as url from "IGoods" where vis=true'); if ($sr[0]!='error') foreach ($sr as $v) $tItems[]=str_replace('@0','/goods/'.$v->url.'/',$t); // echo implode("\n",$tItems); echo ''; ?>