Отладочная информация:
Время генерации страницы:
Time: 0.043 sec.
QUERY STRING:
lang=&link=about/news/98.html
Шаблон страницы:
_index1.html
SQL-запросы на странице:
Array
(
[0] => SELECT permission_type FROM www_rus_pages USE INDEX (PRIMARY) WHERE id = 269
[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 = 269
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] => SELECT n.*, t.title as theme_title, DATE_FORMAT(date,'%d.%m.%Y') as date, n.category_id, 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 www_rus_news n LEFT JOIN www_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.id = 98 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
[4] => SELECT id FROM www_rus_news WHERE category_id=23 AND id<98 ORDER BY id DESC LIMIT 1
[5] => SELECT id FROM www_rus_news WHERE category_id=23 AND id>98 ORDER BY id ASC LIMIT 1
[6] => UPDATE www_rus_news SET hits=IF(hits > 0, hits + 1, 1) WHERE id='98'
[7] => 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
[8] => 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 www_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
[9] => UPDATE www_rus_polls SET hits=IF(hits > 0, hits + 1, 1) WHERE id=''
[10] => 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
[11] => 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
[12] => 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
[13] => 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
[14] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=269
[15] => SELECT parent_id FROM www_rus_pages WHERE id=269
[16] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=218
[17] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=218
[18] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=218
[19] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=218
[20] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=218
[21] => 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
[22] => 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
[23] => SELECT id FROM www_rus_pages WHERE parent_id='0' AND id=269
[24] => SELECT parent_id FROM www_rus_pages WHERE id=269
[25] => 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
[26] => 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
[27] => SELECT permission_type FROM www_rus_pages USE INDEX (PRIMARY) WHERE id = 269
[28] => 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
(
[1302] => $PAGE["modules"]["news"] = new News('archive', '/about/news/?', Array
(
[1] =>
[2] =>
[3] =>
[4] => 269
[5] =>
)
)
[1179] => $PAGE["modules"]["poll"] = new Poll('showpoll', '/faq/poll/poll-result/?', Array
(
[1] =>
[2] =>
[3] =>
[4] => 269
[5] =>
)
)
[-1] => $PAGE["modules"]["pages"] = new Pages('showmenu', '', Array
(
[4] => 269
)
)
[-2] => $PAGE["modules"]["pages"]->Pages('showsubmenu', '', Array
(
[4] => 269
)
)
[-10] => $PAGE["modules"]["pages"]->Pages('showchilds', '', Array
(
[4] => 269
)
)
[-3] => $PAGE["modules"]["pages"]->Pages('showheadtitle', '', Array
(
[4] => 269
)
)
[-4] => $PAGE["modules"]["pages"]->Pages('showpath', '', Array
(
[4] => 269
)
)
)
Переменные сессии:
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:
Thu, 23 Feb 2012 09:08:55