Отладочная информация:
Время генерации страницы:
Time: 1.049 sec.
QUERY STRING:
lang=&link;=googlemap/
Шаблон страницы:
_index9.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM rems_rus_pages USE INDEX (PRIMARY) WHERE id = 242
[1] => SELECT pb.*, pb.id as block_id, m.name, m.title, m.id as mod_id, p.usr_group_id, number_of_fields, pt.main_module , 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 rems_rus_pages as p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0 ) , rems_rus_pages_blocks as pb , rems_rus_pages_templates as pt , modules as m WHERE p.id = 242
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 field_number, block_rank
[2] => SELECT M.name FROM sites AS S, modules AS M, sites_modules AS SM WHERE alias='rems' AND S.id = site_id AND M.id=module_id AND active
[3] => SELECT * FROM rems_rus_maps_ptypes ORDER BY ptype_name
[4] => SELECT * FROM rems_rus_maps_ptypes ORDER BY id
[5] => SELECT p.id, p.product_title, p.product_inf, p.image_middle, p.image_big,
p.price_1, p.price_2, p.price_3, p.price_4, p.price_5, p.currency,
p.lat, p.lng, p.zoom, p.addr, p.phone, p.open, ptype_id, pt.ptype_name,
pt.link AS ptype_link, pt.icon AS ptype_icon
FROM rems_rus_maps_products p, rems_rus_maps_ptypes pt
WHERE p.active = 1 AND p.ptype_id=pt.id
[6] => select id, category_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_products where id = 2124
[7] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(57)
[8] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(1)
[9] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(0)
[10] => select id, category_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_products where id = 2125
[11] => select id, category_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_products where id = 2126
[12] => SELECT * FROM rems_rus_maps_ptypes ORDER BY ptype_name
[13] => SELECT * FROM rems_rus_maps_ptypes ORDER BY id
[14] => SELECT id, title, img
FROM rems_rus_maps_categories
WHERE clevel = 1 AND active = 1
ORDER BY rank
[15] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(58)
[16] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(1)
[17] => select id, parent_id, if(alias is not null and alias!='',alias,id) as path from rems_rus_maps_categories where id in(0)
[18] => SELECT * FROM rems_rus_scripts WHERE `id` = '6'
[19] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3488738665 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[20] => SELECT b.id, IF(b.owner_id = 0, 1 , 0) as is_owner,
IF(b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) AS user_rights FROM rems_rus_banners b LEFT JOIN core_users_groups ug ON (ug.group_id = b.usr_group_id AND ug.user_id = 0) WHERE category_id = 55 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2015-04-01' BETWEEN show_from AND show_to) AND active AND IF( b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) > 0
[21] => SELECT * FROM rems_rus_banners WHERE id=41
[22] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 41
[23] => SELECT p.*, pt.ptype_name, pt.link as ptype_link, if(c.alias is not null and c.alias!='', c.alias, c.id) as ctg_alias,
if(p.alias is not null and p.alias!='', p.alias, p.id) as prod_alias
FROM rems_rus_catalog_products p INNER JOIN rems_rus_catalog_categories c ON c.id=p.category_id
LEFT JOIN rems_rus_catalog_ptypes pt ON p.ptype_id = pt.id
WHERE 1 AND p.active = 1 AND leader
ORDER BY p.rank DESC LIMIT 0,2
[24] => SELECT rank, sum(percent) value FROM rems_rus_shop_taxes WHERE active = 1 GROUP BY rank ORDER BY rank
[25] => SELECT rank, sum(percent) value FROM rems_rus_shop_taxes WHERE active = 1 GROUP BY rank ORDER BY rank
[26] => SELECT rank, sum(percent) value FROM rems_rus_shop_taxes WHERE active = 1 GROUP BY rank ORDER BY rank
[27] => SELECT rank, sum(percent) value FROM rems_rus_shop_taxes WHERE active = 1 GROUP BY rank ORDER BY rank
[28] => SELECT prod_id, prop_val_id FROM rems_rus_catalog_order_prop_val WHERE prod_id IN (166,215)
[29] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3488738665 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[30] => SELECT b.id, IF(b.owner_id = 0, 1 , 0) as is_owner,
IF(b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) AS user_rights FROM rems_rus_banners b LEFT JOIN core_users_groups ug ON (ug.group_id = b.usr_group_id AND ug.user_id = 0) WHERE category_id = 54 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2015-04-01' BETWEEN show_from AND show_to) AND active AND IF( b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) > 0
[31] => SELECT * FROM rems_rus_banners WHERE id=42
[32] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 42
[33] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3488738665 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[34] => SELECT b.id, IF(b.owner_id = 0, 1 , 0) as is_owner,
IF(b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) AS user_rights FROM rems_rus_banners b LEFT JOIN core_users_groups ug ON (ug.group_id = b.usr_group_id AND ug.user_id = 0) WHERE category_id = 58 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2015-04-01' BETWEEN show_from AND show_to) AND active AND IF( b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) > 0
[35] => SELECT * FROM rems_rus_banners WHERE id=47
[36] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 47
[37] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3488738665 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[38] => SELECT b.id, IF(b.owner_id = 0, 1 , 0) as is_owner,
IF(b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) AS user_rights FROM rems_rus_banners b LEFT JOIN core_users_groups ug ON (ug.group_id = b.usr_group_id AND ug.user_id = 0) WHERE category_id = 62 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2015-04-01' BETWEEN show_from AND show_to) AND active AND IF( b.owner_id = 0,
b.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(b.rights & 0xF0) >> 4,
b.rights & 0xF
)
) > 0
[39] => SELECT * FROM rems_rus_banners WHERE id=55
[40] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 55
[41] => 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 rems_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 182 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
[42] => SELECT id, title, commentable FROM rems_rus_articles WHERE id=182 AND commentable>0
[43] => SELECT * FROM rems_rus_comments_resource WHERE type=4 AND item_id=182
[44] => UPDATE rems_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='182'
[45] => SELECT count(*) as cnt FROM rems_rus_news n LEFT JOIN rems_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 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
[46] => 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 rems_rus_news n LEFT JOIN rems_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 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 GROUP BY n.id ORDER BY date DESC LIMIT 0,3
[47] => SELECT C.id FROM rems_rus_news_ctgr NC INNER JOIN rems_rus_news_categories C ON C.id=NC.ctgr_id WHERE news_id IN (144,143,142) AND rss_auto_update AND (DATE_ADD(`rss_last_update`, INTERVAL `rss_update_interval` MINUTE) < NOW() OR `rss_last_update` IS NULL)
[48] => SELECT * FROM rems_rus_scripts WHERE `id` = '1'
[49] => 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 rems_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 34 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
[50] => SELECT id, title, commentable FROM rems_rus_articles WHERE id=34 AND commentable>0
[51] => SELECT * FROM rems_rus_comments_resource WHERE type=4 AND item_id=34
[52] => UPDATE rems_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='34'
[53] => SELECT * FROM rems_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
[54] => SELECT id, parent_id, title, address
FROM rems_rus_pages USE INDEX (index_3)
WHERE parent_id IN (210,218,314,261,298,300,403,406,490,287,286,418,301,312,139,262,206,264,280,219,291,205,325,216,242,152,198,265,277,307,302,303,365,337,311,288,338,304,306,305,370,366,336,421,419,420,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,289,372,395,214,237,200,208,253,251,212,315,346,440,491,489,488,487,486,485,484,483,482,481,480,479,478,477,476,475,474,472,473,470,469,466,468,465,464,463,462,461,460,459,457,458,456,455,454,453,451,450,449,448,407,271,275,273,272,274,320,321,322,332,333,334,335,339,342,347,362,369,375,376,377,340,392,400,437,438,442,441,443,444,445,446,447,207,290,258,293,292,295,317,318,380,382,345,278,383,326,328,327,330,363,364,368,276,269,351,354,352,353,355,356,417,396,399,357,358,359,360,398,410,402,411,416,390,385,412,384,413,389,404,401,415,386,393,394,405,414,387,409,408,388,391,244,211,296,331,323,349,341,343,379,381,378,344,348) AND
active = 1
ORDER BY page_rank desc
[55] => SELECT id, parent_id, title, address
FROM rems_rus_pages USE INDEX (index_3)
WHERE parent_id IN (210,218,314,261,298,300,403,406,490,287,286,418,301,312,139,262,206,264,280,219,291,205,325,216,242,152,198,265,277,307,302,303,365,337,311,288,338,304,306,305,370,366,336,421,419,420,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,289,372,395,214,237,200,208,253,251,212,315,346,440,491,489,488,487,486,485,484,483,482,481,480,479,478,477,476,475,474,472,473,470,469,466,468,465,464,463,462,461,460,459,457,458,456,455,454,453,451,450,449,448,407,271,275,273,272,274,320,321,322,332,333,334,335,339,342,347,362,369,375,376,377,340,392,400,437,438,442,441,443,444,445,446,447,207,290,258,293,292,295,317,318,380,382,345,278,383,326,328,327,330,363,364,368,276,269,351,354,352,353,355,356,417,396,399,357,358,359,360,398,410,402,411,416,390,385,412,384,413,389,404,401,415,386,393,394,405,414,387,409,408,388,391,244,211,296,331,323,349,341,343,379,381,378,344,348) AND
active = 1
ORDER BY page_rank desc
)
Cache: use_cache =
Array
(
)
Вызываемые функции:
Array
(
[3356] => $PAGE["modules"]["maps"] = new MapsPrototype('showmap', '/googlemap/?', Array
(
[1] => 1
[2] => 57
[3] => 8
[4] =>
[5] =>
[tpl] =>
)
), tpl - maps_map.html
[3362] => $PAGE["modules"]["maps"]->MapsPrototype('showsearchform', '/googlemap/?', Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - maps_searchform.html
[3468] => $PAGE["modules"]["scripts"] = new ScriptsPrototype('execute_script', '/map/poisk/?', Array
(
[1] => 6
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - scripts_content_output.html
[3369] => $PAGE["modules"]["banners"] = new BannersPrototype('showbanner', '/googlemap/', Array
(
[1] => 55
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[3524] => $PAGE["modules"]["catalog"] = new CatalogPrototype('showleaders', '/catalog/?', Array
(
[1] => 2
[2] => all
[3] => 1
[4] =>
[5] =>
[tpl] =>
)
), tpl - catalog_leaders.html
[1212] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/googlemap/', Array
(
[1] => 54
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[3525] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/googlemap/', Array
(
[1] => 58
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[3526] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/googlemap/', Array
(
[1] => 62
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[3373] => $PAGE["modules"]["article"] = new ArticlePrototype('showarticle', '/googlemap/', Array
(
[1] => 182
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[3364] => $PAGE["modules"]["news"] = new NewsPrototype('alist_archive', '/news/?', Array
(
[1] =>
[2] => 3
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - news_announces_archive.html
[3445] => $PAGE["modules"]["scripts"]->ScriptsPrototype('execute_script', '/map/poisk/?', Array
(
[1] => 1
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - scripts_content_output.html
[3367] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/googlemap/', Array
(
[1] => 34
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[-1] => $PAGE["modules"]["pages"] = new PagesPrototype('showmenu', '', Array
(
)
), tpl - pages_menu.html
[-2] => $PAGE["modules"]["pages"]->PagesPrototype('showsubmenu', '', Array
(
)
), tpl - pages_sub_menu.html
[-10] => $PAGE["modules"]["pages"]->PagesPrototype('showchilds', '', Array
(
)
)
[-3] => $PAGE["modules"]["pages"]->PagesPrototype('showheadtitle', '', Array
(
)
), tpl - pages_title.html
[-4] => $PAGE["modules"]["pages"]->PagesPrototype('showpath', '', Array
(
)
), tpl - pages_path.html
)
Переменные сессии:
Array
(
[session_cur_site_id] => 2
[session_cur_lang_id] => 2
[catalog_rates] => Array
(
[USD/USD] => 1
[RUR/RUR] => 1
[USD/RUR] => 29.5764
[RUR/USD] => 0.0338107409962
[EUR/EUR] => 1
[EUR/RUR] => 39.7152
[RUR/EUR] => 0.025179276448312
[EUR/USD] => 1.3428
[USD/EUR] => 0.7447125
ремонт металлической двери