Отладочная информация:
Время генерации страницы:
Time: 0.079 sec.
QUERY STRING:
lang=&link=catalog/boats/79
Шаблон страницы:
_index1.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM www_rus_pages USE INDEX (PRIMARY) WHERE id = 139
[1] => SELECT pb.*, pb.id as block_id, m.name, m.title, m.id as mod_id, p.usr_group_id, number_of_fields, IF(p.owner_id = 0, 1 , 0) as is_owner,
IF(p.owner_id = 0,
p.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(p.rights & 0xF0) >> 4,
p.rights & 0xF
)
) AS user_rights FROM www_rus_pages as p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0 ) , www_rus_pages_blocks as pb , www_rus_pages_templates as pt , modules as m WHERE p.id = 139
AND p.tpl_id = pt.id AND p.id = pb.page_id
AND m.id = pb.module_id AND IF( p.owner_id = 0,
p.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(p.rights & 0xF0) >> 4,
p.rights & 0xF
)
) > 0 ORDER BY block_rank
[2] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[3] => show columns from `www_rus_catalog_categories`
[4] => show columns from `www_rus_catalog_products`
[5] => SELECT C.id, C.parent_id, C.title, C.clevel, C.rank, COUNT(P.id) as cnt FROM www_rus_catalog_categories AS C
LEFT JOIN www_rus_catalog_categories AS C1 ON ( C1.cleft >= C.cleft AND C1.cright <= C.cright)
LEFT JOIN www_rus_catalog_products AS P ON category_id=C1.id AND P.active=1 WHERE C.active=1
GROUP BY C.id ORDER BY C.rank, C.id
[6] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(83)
[7] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(64)
[8] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(1)
[9] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(0)
[10] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(65)
[11] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(79)
[12] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(85)
[13] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(67)
[14] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(81)
[15] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(68)
[16] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(1)
[17] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(0)
[18] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(71)
[19] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(69)
[20] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(1)
[21] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(0)
[22] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(72)
[23] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(73)
[24] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(74)
[25] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(75)
[26] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(76)
[27] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(77)
[28] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_categories where id in(78)
[29] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[30] => SELECT p.*, pt.ptype_name, pt.link as ptype_link
FROM www_rus_catalog_products p
LEFT JOIN www_rus_catalog_ptypes pt ON p.ptype_id = pt.id
WHERE 1 AND active = 1 AND leader
ORDER BY rank DESC LIMIT 0,2
[31] => select id, category_id, if(alias is not null and alias!='',alias,id) as path from www_rus_catalog_products where id = 183
[32] => SELECT rank, sum(percent) value FROM www_rus_shop_taxes
WHERE active = 1
GROUP BY rank
ORDER BY rank
[33] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[34] => SELECT * FROM www_rus_catalog_categories WHERE clevel = 1 AND active = 1 ORDER BY rank
[35] => SELECT id, title, description, img
FROM www_rus_catalog_categories
WHERE parent_id = 64 AND active = 1
ORDER BY rank
[36] => SELECT id, title, description, img
FROM www_rus_catalog_categories
WHERE parent_id = 68 AND active = 1
ORDER BY rank
[37] => SELECT id, title, description, img
FROM www_rus_catalog_categories
WHERE parent_id = 69 AND active = 1
ORDER BY rank
[38] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[39] => SELECT a.*, IF(a.owner_id = 0, 1 , 0) as is_owner,
IF(a.owner_id = 0,
a.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(a.rights & 0xF0) >> 4,
a.rights & 0xF
)
) AS user_rights FROM www_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 40 AND active=1 AND IF( a.owner_id = 0,
a.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(a.rights & 0xF0) >> 4,
a.rights & 0xF
)
) > 0
[40] => UPDATE www_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='40'
[41] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[42] => SELECT a.*, IF(a.owner_id = 0, 1 , 0) as is_owner,
IF(a.owner_id = 0,
a.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(a.rights & 0xF0) >> 4,
a.rights & 0xF
)
) AS user_rights FROM www_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 42 AND active=1 AND IF( a.owner_id = 0,
a.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(a.rights & 0xF0) >> 4,
a.rights & 0xF
)
) > 0
[43] => UPDATE www_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='42'
[44] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[45] => SELECT *
FROM www_rus_pages USE INDEX (index_2)
WHERE ((parent_id = 0 OR branch!="" )
AND active = 1)
OR is_default = 1
ORDER BY level, page_rank DESC
[46] => SELECT id, parent_id, title, address
FROM www_rus_pages USE INDEX (index_3)
WHERE parent_id IN (218,257,208,290,139,206,255,198,269,266,267,265,268,297,284,264,263,262,261,260,259,258,256,295,280,278,277,276,275,274,273,293,292,291,279,212,296,201,285,283,286,287,289,281,282,288,294,229) AND
active = 1
ORDER BY id
[47] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[48] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[49] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[50] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[51] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[52] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[53] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[54] => SELECT id, parent_id, title, address
FROM www_rus_pages USE INDEX (index_3)
WHERE parent_id IN (218,257,208,290,139,206,255,198,269,266,267,265,268,297,284,264,263,262,261,260,259,258,256,295,280,278,277,276,275,274,273,293,292,291,279,212,296,201,285,283,286,287,289,281,282,288,294,229) AND
active = 1
ORDER BY id
[55] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=139
[56] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[57] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
[58] => SELECT permission_type FROM www_rus_pages USE INDEX (PRIMARY) WHERE id = 139
[59] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='www' AND S.id = site_id AND M.id=module_id AND active
)
Cache: use_cache =
Array
(
)
Вызываемые функции:
Array
(
[1127] => $PAGE["modules"]["catalog"] = new Catalog('showtree', '/catalog/?', Array
(
[1] =>
[2] =>
[3] => 1
[4] => 139
[5] =>
)
)
[1041] => $PAGE["modules"]["catalog"]->Catalog('showleaders', '/catalog/?', Array
(
[1] => 2
[2] => all
[3] =>
[4] => 139
[5] =>
)
)
[1307] => $PAGE["modules"]["catalog"]->Catalog('showtoplevels', '/catalog/catsearch/?', Array
(
[1] =>
[2] =>
[3] =>
[4] => 139
[5] =>
)
)
[1281] => $PAGE["modules"]["article"] = new Article('showarticle', '/catalog/', Array
(
[1] => 40
[2] =>
[3] =>
[4] => 139
[5] =>
)
)
[1284] => $PAGE["modules"]["article"]->Article('showarticle', '/catalog/', Array
(
[1] => 42
[2] =>
[3] =>
[4] => 139
[5] =>
)
)
[-1] => $PAGE["modules"]["pages"] = new Pages('showmenu', '', Array
(
[4] => 139
)
)
[-2] => $PAGE["modules"]["pages"]->Pages('showsubmenu', '', Array
(
[4] => 139
)
)
[-10] => $PAGE["modules"]["pages"]->Pages('showchilds', '', Array
(
[4] => 139
)
)
[-3] => $PAGE["modules"]["pages"]->Pages('showheadtitle', '', Array
(
[4] => 139
)
)
[-4] => $PAGE["modules"]["pages"]->Pages('showpath', '', Array
(
[4] => 139
)
)
)
Переменные сессии:
Array
(
[session_cur_site_id] => 1
[session_cur_lang_id] => 1
[catalog_rates] => Array
(
[USD/USD] => 1
[RUR/RUR] => 1
[USD/RUR] => 28.4356
[RUR/USD] => 0.0351671847965
[EUR/EUR] => 1
[EUR/RUR] => 39.3151
[RUR/EUR] => 0.0254355196858
[EUR/USD] => 1.3826
[USD/EUR] => 0.723274989151
)
)
Last-modified:
Sat, 04 Feb 2012 08:06:36