Отладочная информация:
Время генерации страницы:
Time: 0,18 sec.
QUERY STRING:
lang=&link=catalog/396/3236.html
Шаблон страницы:
_index46.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM gz_rus_pages USE INDEX (PRIMARY) WHERE id = 296
[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 gz_rus_pages as p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0 ) , gz_rus_pages_blocks as pb , gz_rus_pages_templates as pt , modules as m WHERE p.id = 296
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='gz' AND S.id = site_id AND M.id=module_id AND active
[3] => 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 gz_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 76 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
[4] => UPDATE gz_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='76'
[5] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
[6] => SELECT id, title, if(alias is not null and alias!='', alias, id) as alias, 0 as cnt, img as ctg_img FROM gz_rus_catalog_categories WHERE parent_id=1 and active=1 ORDER BY rank
[7] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=36 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[8] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=6 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[9] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=16 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[10] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=26 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[11] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=46 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[12] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=56 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[13] => SELECT CH.id FROM gz_rus_catalog_categories AS P, gz_rus_catalog_categories AS CH WHERE P.id=66 AND CH.cleft >= P.cleft AND CH.cright <= P.cright AND CH.active
[14] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
[15] => select P.id, if(P.alias is not null and P.alias!='',LCASE(P.alias),P.id) AS prod_alias, if(C.alias is not null and C.alias!='',LCASE(C.alias),C.id) AS ctgr_alias FROM`gz_rus_catalog_products` P INNER JOIN `gz_rus_catalog_categories` C ON P.category_id=C.id HAVING prod_alias='3236' AND ctgr_alias='396'
[16] => SELECT a.id AS id,
a.category_id AS category_id,
a.group_id AS group_id,
a.alias,
a.ptype_id AS ptype_id,
a.product_code AS product_code,
a.product_title AS product_title,
a.product_inf AS product_inf,
a.product_description AS product_description,
a.currency AS currency,
a.price_1 AS price_1,
a.price_2 AS price_2,
a.price_3 AS price_3,
a.price_4 AS price_4,
a.price_5 AS price_5,
a.image_middle AS image_middle,
a.image_big AS image_big,
a.product_availability AS product_availability,
a.active AS active,
a.rank AS rank,
a.description AS description,
a.keywords AS keywords,
if(a.alias is not null and a.alias!='', a.alias, a.id) as product_alias,
b.ptype_name AS ptype_title,
b.link AS ptype_link,
c.title AS categ_title,
d.group_title AS prod_grp,
c.page_description AS ctg_description,
c.keywords AS ctg_keywords,
if(c.alias is not null and c.alias!='', c.alias, c.id) as ctg_alias
FROM gz_rus_catalog_products a
INNER JOIN gz_rus_catalog_categories c ON a.category_id = c.id
LEFT JOIN gz_rus_catalog_ptypes b ON a.ptype_id = b.id
LEFT JOIN gz_rus_catalog_groups d ON d.id = a.group_id
WHERE a.id = 3236
[17] => SELECT PT.*, P.search, P.range, P.ord FROM gz_rus_catalog_properties_table AS PT LEFT JOIN gz_rus_catalog_properties AS P ON P.group_id=0 AND P.property_id=PT.id WHERE P.property_id IS NOT NULL ORDER BY P.ord
[18] => SELECT * FROM gz_rus_catalog_property_values WHERE product_id=3236
[19] => SELECT C.*, product_title, product_code, category_id, product_inf, currency, price_1, price_2, price_3, price_4, price_5, image_middle, image_big, product_availability, P.active, leader, novelty, ptype_name, PT.link AS ptype_link, if(P.alias is not null and P.alias!='', P.alias, P.id) as prod_alias, if(CT.alias is not null and CT.alias!='', CT.alias, CT.id) as ctg_alias FROM gz_rus_catalog_concerned_products AS C INNER JOIN gz_rus_catalog_products AS P ON C.concrn_id = P.id INNER JOIN gz_rus_catalog_categories CT ON CT.id=P.category_id LEFT JOIN gz_rus_catalog_ptypes AS PT ON P.ptype_id = PT.id WHERE C.type=0 AND C.prod_id = 3236 AND P.active ORDER BY P.rank
[20] => SELECT C.*, product_title, product_code, category_id, product_inf, currency, price_1, price_2, price_3, price_4, price_5, image_middle, image_big, product_availability, P.active, leader, novelty, ptype_name, PT.link AS ptype_link, if(P.alias is not null and P.alias!='', P.alias, P.id) as prod_alias, if(CT.alias is not null and CT.alias!='', CT.alias, CT.id) as ctg_alias FROM gz_rus_catalog_concerned_products AS C INNER JOIN gz_rus_catalog_products AS P ON C.concrn_id = P.id INNER JOIN gz_rus_catalog_categories CT ON CT.id=P.category_id LEFT JOIN gz_rus_catalog_ptypes AS PT ON P.ptype_id = PT.id WHERE C.type=1 AND C.prod_id = 3236 AND P.active ORDER BY P.rank
[21] => UPDATE gz_rus_catalog_products SET hits=IF(hits > 0, hits + 1, 1) WHERE id='3236'
[22] => SELECT p.id, if(p.alias is not null and p.alias!='', p.alias, p.id) as alias, 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 gz_rus_catalog_products AS p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0) WHERE category_id = 396 AND active=1 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 rank, ptype_id
[23] => SELECT id, img, preview, rank FROM gz_rus_catalog_img WHERE prod_id=3236 ORDER BY rank, img
[24] => SELECT prop_val_id FROM gz_rus_catalog_order_prop_val WHERE prod_id=3236
[25] => SELECT * FROM gz_rus_catalog_properties_table WHERE 3=type
[26] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
[27] => SELECT C.*, IF(C.owner_id = 0, 1 , 0) as is_owner,
IF(C.owner_id = 0,
C.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(C.rights & 0xF0) >> 4,
C.rights & 0xF
)
) AS user_rights FROM gz_rus_news_categories AS C LEFT JOIN core_users_groups ug ON (ug.group_id = C.usr_group_id AND ug.user_id = 0) WHERE `id` = 1 AND IF( C.owner_id = 0,
C.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(C.rights & 0xF0) >> 4,
C.rights & 0xF
)
) > 0
[28] => SELECT count(*) as cnt FROM gz_rus_news_ctgr NC INNER JOIN gz_rus_news n ON NC.news_id=n.id LEFT JOIN gz_rus_news_themes t ON n.theme_id = t.id LEFT JOIN core_users_groups ug ON (ug.group_id = n.usr_group_id AND ug.user_id = 0) WHERE NC.ctgr_id =1 AND n.date <= NOW() AND n.active = 1 AND IF( n.owner_id = 0,
n.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(n.rights & 0xF0) >> 4,
n.rights & 0xF
)
) > 0
[29] => SELECT n.id, n.title, t.title as theme_title, n.announce, n.active, n.rss_link, n.announce_with_links, NOW() as d, DATE_FORMAT(date,'%d.%m.%Y') as news_date, n.img, IF(n.owner_id = 0, 1 , 0) as is_owner,
IF(n.owner_id = 0,
n.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(n.rights & 0xF0) >> 4,
n.rights & 0xF
)
) AS user_rights FROM gz_rus_news_ctgr NC INNER JOIN gz_rus_news n ON NC.news_id=n.id LEFT JOIN gz_rus_news_themes t ON n.theme_id = t.id LEFT JOIN core_users_groups ug ON (ug.group_id = n.usr_group_id AND ug.user_id = 0) WHERE NC.ctgr_id =1 AND n.date <= NOW() AND n.active = 1 AND IF( n.owner_id = 0,
n.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(n.rights & 0xF0) >> 4,
n.rights & 0xF
)
) > 0 ORDER BY date DESC LIMIT 0,2
[30] => SELECT C.id FROM gz_rus_news_ctgr NC INNER JOIN gz_rus_news_categories C ON C.id=NC.ctgr_id WHERE news_id IN (474,473) AND rss_auto_update AND (DATE_ADD(`rss_last_update`, INTERVAL `rss_update_interval` MINUTE) < NOW() OR `rss_last_update` IS NULL)
[31] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
[32] => SELECT * FROM gz_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
[33] => SELECT id, parent_id, title, address
FROM gz_rus_pages USE INDEX (index_3)
WHERE parent_id IN (286,296,406,596,336,587,316,526,536,546,436,446,589,466,476,486,496,556,566,366,591,592,586,577,578,595) AND
active = 1
ORDER BY parent_id, id
[34] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
[35] => SELECT permission_type FROM gz_rus_pages USE INDEX (PRIMARY) WHERE id = 296
[36] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='gz' AND S.id = site_id AND M.id=module_id AND active
)
Cache: use_cache =
Array
(
)
Вызываемые функции:
Array
(
[1886] => $PAGE["modules"]["article"] = new Article('showarticle', '/catalog/?', Array
(
[1] => 76
[2] =>
[3] =>
[4] =>
[5] =>
)
)
[1546] => $PAGE["modules"]["catalog"] = new Catalog('showcatmenu', '/catalog/?', Array
(
[1] =>
[2] => all
[3] =>
[4] =>
[5] =>
)
)
[1536] => $PAGE["modules"]["catalog"]->Catalog('novelties', '/catalog/?', Array
(
[1] =>
[2] => all
[3] =>
[4] =>
[5] =>
)
)
[1406] => $PAGE["modules"]["news"] = new News('tlist_archive', '/news/?', Array
(
[1] => 1
[2] => 2
[3] =>
[4] =>
[5] =>
)
)
[-1] => $PAGE["modules"]["pages"] = new Pages('showmenu', '', Array
(
)
)
[-3] => $PAGE["modules"]["pages"]->Pages('showheadtitle', '', Array
(
)
)
[-4] => $PAGE["modules"]["pages"]->Pages('showpath', '', Array
(
)
)
)
Переменные сессии:
Array
(
[session_cur_site_id] => 6
[session_cur_lang_id] => 6
[catalog_rates] => Array
(
[USD/USD] => 1
[BYR/BYR] => 1
[USD/BYR] => 1
[BYR/USD] => 1
[EUR/EUR] => 1
[EUR/BYR] => 2
[BYR/EUR] => 0,5
[EUR/USD] => 1
[USD/EUR] => 1
)
)
Last-modified:
Sat, 07 Dec 2019 17:08:19