Отладочная информация:
Время генерации страницы:
Time: 0,079 sec.
QUERY STRING:
lang=&link=reg/
Шаблон страницы:
_index29.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM tur_rus_pages USE INDEX (PRIMARY) WHERE id = 304
[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 tur_rus_pages as p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0 ) , tur_rus_pages_blocks as pb , tur_rus_pages_templates as pt , modules as m WHERE p.id = 304
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='tur' AND S.id = site_id AND M.id=module_id AND active
[3] => SELECT * FROM tur_rus_scripts WHERE `id` = '2'
[4] => SELECT pcm.*, pcmi.page_id, p.id, p.title, p.address, p.link, p.img1, p.img2, p.img3
FROM tur_rus_pages_context_menu as pcm, tur_rus_pages_context_menu_items as pcmi, tur_rus_pages as p
WHERE pcm.id = 10 AND pcmi.menu_id = 10 AND p.id = pcmi.page_id AND p.active = 1
ORDER BY pcmi.item_rank
[5] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 152 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
[6] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=152 AND commentable>0
[7] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=152
[8] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=152
[9] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='152'
[10] => SELECT p.*, 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 tur_rus_polls p LEFT JOIN core_users_groups ug ON (ug.group_id = p.usr_group_id AND ug.user_id = 0) WHERE id = 14 AND IF( p.owner_id = 0,
p.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(p.rights & 0xF0) >> 4,
p.rights & 0xF
)
) > 0
[11] => SELECT id,variant_text
FROM tur_rus_poll_other_results
WHERE poll_id=14
ORDER BY variant_text
[12] => UPDATE tur_rus_polls SET hits=IF(hits > 0, hits + 1, 1) WHERE id='0'
[13] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 72 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
[14] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=72 AND commentable>0
[15] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=72
[16] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=72
[17] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='72'
[18] => 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 tur_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` = 2 AND IF( C.owner_id = 0,
C.rights >> 8,
IF(ug.user_id IS NOT NULL ,
(C.rights & 0xF0) >> 4,
C.rights & 0xF
)
) > 0
[19] => SELECT count(*) as cnt FROM tur_rus_news_ctgr NC INNER JOIN tur_rus_news n ON NC.news_id=n.id LEFT JOIN tur_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 =2 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
[20] => 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 tur_rus_news_ctgr NC INNER JOIN tur_rus_news n ON NC.news_id=n.id LEFT JOIN tur_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 =2 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,4
[21] => SELECT C.id FROM tur_rus_news_ctgr NC INNER JOIN tur_rus_news_categories C ON C.id=NC.ctgr_id WHERE news_id IN (292,286,291,290) AND rss_auto_update AND (DATE_ADD(`rss_last_update`, INTERVAL `rss_update_interval` MINUTE) < NOW() OR `rss_last_update` IS NULL)
[22] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 77 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
[23] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=77 AND commentable>0
[24] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=77
[25] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=77
[26] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='77'
[27] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 125 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
[28] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=125 AND commentable>0
[29] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=125
[30] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=125
[31] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='125'
[32] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 119 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
[33] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=119 AND commentable>0
[34] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=119
[35] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=119
[36] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='119'
[37] => 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 tur_rus_articles a LEFT JOIN core_users_groups ug ON (ug.group_id = a.usr_group_id AND ug.user_id = 0) WHERE id = 126 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
[38] => SELECT id, title, commentable FROM tur_rus_articles WHERE id=126 AND commentable>0
[39] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=126
[40] => SELECT * FROM tur_rus_comments_resource WHERE type=4 AND item_id=126
[41] => UPDATE tur_rus_articles SET hits=IF(hits > 0, hits + 1, 1) WHERE id='126'
[42] => SELECT * FROM tur_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
[43] => SELECT id, parent_id, title, address
FROM tur_rus_pages USE INDEX (index_3)
WHERE parent_id IN (309,275,304,207) AND
active = 1
ORDER BY page_rank desc
)
Cache: use_cache =
Array
(
)
Вызываемые функции:
Array
(
[1628] => $PAGE["modules"]["scripts"] = new ScriptsPrototype('execute_script', '/reg/?', Array
(
[1] => 2
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - scripts_content_output.html
[1627] => $PAGE["modules"]["pages"] = new PagesPrototype('cmenu', '/reg/?', Array
(
[1] =>
[2] => 10
[3] =>
[4] =>
[5] =>
[tpl] => pages_cm_menu.html
)
), tpl - pages_cm_menu.html
[2271] => $PAGE["modules"]["article"] = new ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 152
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1629] => $PAGE["modules"]["poll"] = new PollPrototype('poll', '/poll-result/?', Array
(
[1] =>
[2] => 14
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - poll.html
[1626] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 72
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1631] => $PAGE["modules"]["news"] = new NewsPrototype('archive', '/news/?', Array
(
[1] => 2
[2] => 4
[3] =>
[4] =>
[5] =>
[tpl] => news_archive.html
)
), tpl - news_archive.html
[1859] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 77
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1630] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 125
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1632] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 119
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[1625] => $PAGE["modules"]["article"]->ArticlePrototype('showarticle', '/reg/?', Array
(
[1] => 126
[2] =>
[3] =>
[4] =>
[5] =>
[tpl] =>
)
), tpl - article.html
[-1] => $PAGE["modules"]["pages"]->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] => 1
[session_cur_lang_id] => 1
[catalog_rates] => Array
(
[USD/USD] => 1
[RUR/RUR] => 1
[USD/RUR] => 30,0785
[RUR/USD] => 0,033246338746945
[EUR/EUR] => 1
[EUR/RUR] => 44,0259
[RUR/EUR] => 0,022713902498302
[EUR/USD] => 1,4637
[USD/EUR] => 0,68320010931202
)
)
Last-modified:
Sat, 19 May 2012 09:54:01