Отладочная информация:
Время генерации страницы:
Time: 0.313 sec.
QUERY STRING:
lang=&link;=remont_computerov/
Шаблон страницы:
_index1.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM rems_rus_pages USE INDEX (PRIMARY) WHERE id = 286
[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 = 286
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 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 = 54 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] => SELECT id, title, commentable FROM rems_rus_articles WHERE id=54 AND commentable>0
[5] => SELECT * FROM rems_rus_comments_resource WHERE type=4 AND item_id=54
[6] => UPDATE rems_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='54'
[7] => SELECT p.*, DATE_FORMAT(begin_date,'%d.%m.%Y') as begin_date, DATE_FORMAT(end_date,'%d.%m.%Y') as end_date, 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_polls p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0) WHERE begin_date <= CURDATE() AND end_date >= CURDATE() 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 RAND() LIMIT 0,1
[8] => SELECT id,variant_text
FROM rems_rus_poll_other_results
WHERE poll_id=13
ORDER BY variant_text
[9] => UPDATE rems_rus_polls SET hits=IF(hits > 0, hits + 1, 1) WHERE id='0'
[10] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3438076626 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[11] => 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 = 53 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2012-07-02' 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
[12] => SELECT * FROM rems_rus_banners WHERE id=45
[13] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 45
[14] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3438076626 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[15] => 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 '2012-07-02' 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
[16] => SELECT * FROM rems_rus_banners WHERE id=47
[17] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 47
[18] => 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
[19] => SELECT id, title, commentable FROM rems_rus_articles WHERE id=34 AND commentable>0
[20] => SELECT * FROM rems_rus_comments_resource WHERE type=4 AND item_id=34
[21] => UPDATE rems_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='34'
[22] => UPDATE core_users SET onsite=0 WHERE last_visit 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
[24] => 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
[25] => 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 (137,135,134) AND rss_auto_update AND (DATE_ADD(`rss_last_update`, INTERVAL `rss_update_interval` MINUTE) < NOW() OR `rss_last_update` IS NULL)
[26] => SELECT f.*, IF(f.owner_id = 0, 1 , 0) as is_owner,
IF(f.owner_id = 0,
f.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(f.rights & 0xF0) >> 4,
f.rights & 0xF
)
) AS user_rights FROM rems_rus_forms f LEFT JOIN core_users_groups ug ON (ug.group_id = f.usr_group_id AND ug.user_id = 0) WHERE id = 9 AND active = 1 AND IF( f.owner_id = 0,
f.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(f.rights & 0xF0) >> 4,
f.rights & 0xF
)
) > 0
[27] => UPDATE rems_rus_forms SET hits=IF(hits > 0, hits + 1, 1) WHERE id='9'
[28] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3438076626 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[29] => 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 '2012-07-02' 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
[30] => SELECT * FROM rems_rus_banners WHERE id=42
[31] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 42
[32] => REPLACE INTO rems_rus_forum_online_user (sid, vtime, forum_id, topic_id, user_id, username) VALUES ('97da5401bd532f8800179d26f317fecd', NOW(), 0, 0, 0, '')
[33] => DELETE FROM rems_rus_forum_online_user WHERE vtime < DATE_SUB(NOW(), INTERVAL 30 MINUTE)
[34] => SELECT rems_rus_forum_posts.*,
rems_rus_forums.name as fname,
DATE_FORMAT(updated,'%d.%m.%Y %H:%i') as topic_updated
FROM rems_rus_forum_posts,
rems_rus_forums
WHERE topic_id = 0 AND
rems_rus_forum_posts.active = 1 AND
rems_rus_forums.id = forum_id AND
rems_rus_forums.active = 1
ORDER BY updated DESC
LIMIT 0,5
[35] => SELECT DISTINCT city_id, name, region, zone FROM counter_cities WHERE 3438076626 BETWEEN first_long_ip AND last_long_ip ORDER BY name
[36] => 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 = 59 AND ( ( max_showing = 0 AND ISNULL(show_from) AND ISNULL(show_to) ) OR showing < max_showing OR '2012-07-02' 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
[37] => SELECT * FROM rems_rus_banners WHERE id=49
[38] => UPDATE rems_rus_banners SET showing = showing + 1 WHERE id = 49
[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 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 = 4 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] => SELECT id, title, commentable FROM rems_rus_articles WHERE id=4 AND commentable>0
[41] => SELECT * FROM rems_rus_comments_resource WHERE type=4 AND item_id=4
[42] => UPDATE rems_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='4'
[43] => 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
[44] => SELECT id, parent_id, title, address
FROM rems_rus_pages USE INDEX (index_3)
WHERE parent_id IN (210,152,218,314,261,298,286,403,406,287,300,418,301,312,139,262,206,264,280,219,291,205,325,216,242,198,265,277,307,302,303,365,337,366,336,304,306,305,370,311,288,338,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,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,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
[45] => SELECT id, parent_id, title, address
FROM rems_rus_pages USE INDEX (index_3)
WHERE parent_id IN (210,152,218,314,261,298,286,403,406,287,300,418,301,312,139,262,206,264,280,219,291,205,325,216,242,198,265,277,307,302,303,365,337,366,336,304,306,305,370,311,288,338,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,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,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
(
[1716] => $PAGE["modules"]["article"] = new ArticlePrototype('showarticle', '/remont_computerov/?', Array
(
[1] => 54
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1660] => $PAGE["modules"]["poll"] = new PollPrototype('', '/remont_computerov/?', Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - poll.html
[1661] => $PAGE["modules"]["banners"] = new BannersPrototype('showbanner', '/remont_computerov/?', Array
(
[1] => 53
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[1783] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/remont_computerov/?', Array
(
[1] => 58
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[2613] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/remont_computerov/?', Array
(
[1] => 34
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[2262] => $PAGE["modules"]["siteusers"] = new SiteusersPrototype('loginform', '/community/?', Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - siteusers_loginform.html
[1662] => $PAGE["modules"]["news"] = new NewsPrototype('alist', '/news/?', Array
(
[1] =>
[2] => 3
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - news_announces.html
[1663] => $PAGE["modules"]["forms"] = new FormsPrototype('show', '/vyzov_mastera/?', Array
(
[1] => 9
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - forms.html
[1664] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/remont_computerov/?', Array
(
[1] => 54
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[1665] => $PAGE["modules"]["forum"] = new ForumPrototype('lasttopics', '/community/forum/?', Array
(
[1] =>
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - forum_last_topics.html
[1782] => $PAGE["modules"]["banners"]->BannersPrototype('showbanner', '/remont_computerov/?', Array
(
[1] => 59
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - banners_flash.html
[1666] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/remont_computerov/?', Array
(
[1] => 4
[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.74471254095919