Page Time: 0.2831s

Memory: 13.7679 MB (Peak: 14.8280 MB)

Queries (22, time: 0.0316s, 11.2%)

  1. SELECT data_key, data_value
    FROM xf_data_registry
    WHERE data_key IN ('options', 'languages', 'contentTypes', 'codeEventListeners', 'cron', 'simpleCache', 'routesPublic', 'nodeTypes', 'bannedIps', 'discouragedIps', 'styles', 'displayStyles', 'smilies', 'bbCode', 'threadPrefixes', 'trophyUserTitles', 'reportCounts', 'moderationCounts', 'notices', 'userFieldsInfo')
    Run Time: 0.007124
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryrangePRIMARYPRIMARY77 20Using where
  2. SELECT cache_value
    FROM xf_permission_combination
    WHERE permission_combination_id = ?
    Params: 1
    Run Time: 0.000156
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_permission_combinationconstPRIMARYPRIMARY4const1 
  3. SELECT thread.*
    	,
    		user.avatar_date, user.gravatar,
    		NULL AS thread_read_date,
    		0 AS thread_is_watched
    FROM xf_thread AS thread
    
    		LEFT JOIN xf_user AS user ON
    			(user.user_id = thread.user_id)
    WHERE thread.thread_id = ?
    Params: 10397
    Run Time: 0.000726
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEthreadconstPRIMARYPRIMARY4const1 
    SIMPLEuserconstPRIMARYPRIMARY4const1 
  4. SELECT node.*, forum.*
    	,
    	permission.cache_value AS node_permission_cache,
    		NULL AS forum_read_date
    FROM xf_forum AS forum
    INNER JOIN xf_node AS node ON (node.node_id = forum.node_id)
    
    	LEFT JOIN xf_permission_cache_content AS permission
    		ON (permission.permission_combination_id = 1
    			AND permission.content_type = 'node'
    			AND permission.content_id = forum.node_id)
    WHERE node.node_id = ?
    Params: 66
    Run Time: 0.000698
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEforumconstPRIMARYPRIMARY4const1 
    SIMPLEnodeconstPRIMARYPRIMARY4const1 
    SIMPLEpermissionconstPRIMARYPRIMARY85const,const,const1 
  5. SELECT data_value
    FROM xf_data_registry
    WHERE data_key = ?
    Params: dark_postrating_ratings
    Run Time: 0.000202
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_data_registryconstPRIMARYPRIMARY77const1 
  6. SELECT post.*
    	,
    	thread.*, thread.user_id AS thread_user_id, thread.username AS thread_username,
    	thread.post_date AS thread_post_date,
    	post.user_id, post.username, post.post_date,
    	user.*, IF(user.username IS NULL, post.username, user.username) AS username,
    	user_profile.*,
    	0 AS like_date, (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 1) as dark_postrating_1_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 14) as dark_postrating_14_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 15) as dark_postrating_15_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 2) as dark_postrating_2_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 3) as dark_postrating_3_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 4) as dark_postrating_4_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 5) as dark_postrating_5_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 6) as dark_postrating_6_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 7) as dark_postrating_7_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 8) as dark_postrating_8_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 9) as dark_postrating_9_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 10) as dark_postrating_10_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 11) as dark_postrating_11_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 12) as dark_postrating_12_count
    , (select count(*) from dark_postrating pr USE INDEX (`post_id_rating`) where pr.post_id = post.post_id and pr.rating = 13) as dark_postrating_13_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (1,14,15,2,4,5,6,7,8,10)) as positive_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (11,12,13)) as negative_rating_count
    
    	,(select sum(count_received) from dark_postrating_count where user_id = post.user_id and rating in (3,9)) as neutral_rating_count
    ,
    pr2.rating, session.view_date
    FROM xf_post AS post
    	
    	INNER JOIN xf_thread AS thread ON
    		(thread.thread_id = post.thread_id)
    	LEFT JOIN xf_user AS user ON
    		(user.user_id = post.user_id)
    	LEFT JOIN xf_user_profile AS user_profile ON
    		(user_profile.user_id = post.user_id)
    LEFT JOIN dark_postrating pr2 ON (post.post_id = pr2.post_id and pr2.user_id = 0)LEFT OUTER JOIN xf_session_activity AS session ON post.user_id = session.user_id
    WHERE post.thread_id = ?
    	AND (((post.message_state IN ('visible'))
    	 AND (post.position >= 0 AND post.position < 50) )
    	OR post.post_id = thread.first_post_id)
    ORDER BY post.position ASC, post.post_date ASC
    Params: 10397
    Run Time: 0.018149
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    PRIMARYthreadconstPRIMARYPRIMARY4const1Using temporary; Using filesort
    PRIMARYpostrefPRIMARY,thread_id_post_date,thread_id_positionthread_id_post_date4const2Using where
    PRIMARYusereq_refPRIMARYPRIMARY4blaney_xenforo.post.user_id1 
    PRIMARYuser_profileeq_refPRIMARYPRIMARY4blaney_xenforo.post.user_id1 
    PRIMARYpr2eq_refpost_id_user_id,post_id_rating,user_id_ratingpost_id_user_id8blaney_xenforo.post.post_id,const1 
    PRIMARYsessionALLPRIMARY   265 
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4blaney_xenforo.post.user_id2Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4blaney_xenforo.post.user_id2Using where
    DEPENDENT SUBQUERYdark_postrating_countrefuser_id_ratinguser_id_rating4blaney_xenforo.post.user_id2Using where
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
    DEPENDENT SUBQUERYprrefpost_id_ratingpost_id_rating8blaney_xenforo.post.post_id,const1Using index
  7. INSERT DELAYED INTO xf_thread_view
    	(thread_id)
    VALUES
    	(?)
    Params: 10397
    Run Time: 0.000354
  8. SELECT *
    FROM xf_node
    WHERE lft < ? AND rgt > ?
    ORDER BY lft ASC
    Params: 82, 85
    Run Time: 0.000732
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_nodeALLlft   101Using where; Using filesort
  9. SELECT *
    	FROM EWRporta_options
    WHERE option_id = ?
    Params: recentnews_forum
    Run Time: 0.000346
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRporta_optionsconstPRIMARYPRIMARY152const1 
  10. SELECT *
    	FROM EWRporta_promotes
    WHERE thread_id = ?
    Params: 10397
    Run Time: 0.000403
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Impossible WHERE noticed after reading const tables
  11. INSERT INTO `xf_session` (`session_id`, `session_data`, `expiry_date`) VALUES (?, ?, ?)
    Params: 90407e2908cbeabc0b83c44d35721c1c, a:5:{s:12:"sessionStart";i:1369468137;s:2:"ip";i:921877721;s:9:"userAgent";s:9:"CCBot/2.0";s:7:"isRobot";b:0;s:16:"previousActivity";i:0;}, 1369471737
    Run Time: 0.000246
  12. INSERT INTO xf_session_activity
    	(user_id, unique_key, ip, controller_name, controller_action, view_state, params, view_date)
    VALUES
    	(?, ?, ?, ?, ?, ?, ?, ?)
    ON DUPLICATE KEY UPDATE
    	ip = VALUES(ip),
    	controller_name = VALUES(controller_name),
    	controller_action = VALUES(controller_action),
    	view_state = VALUES(view_state),
    	params = VALUES(params),
    	view_date = VALUES(view_date)
    Params: 0, 921877721, 921877721, XenForo_ControllerPublic_Thread, Index, valid, thread_id=10397, 1369468137
    Run Time: 0.000282
  13. SELECT *
    	FROM EWRporta_layouts
    WHERE layout_id = ?
    Params: thread-10397
    Run Time: 0.000367
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Impossible WHERE noticed after reading const tables
  14. SELECT *
    	FROM EWRporta_layouts
    WHERE layout_id = ?
    Params: thread-forum-66
    Run Time: 0.000298
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Impossible WHERE noticed after reading const tables
  15. SELECT *
    	FROM EWRporta_layouts
    WHERE layout_id = ?
    Params: thread
    Run Time: 0.000180
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLE       Impossible WHERE noticed after reading const tables
  16. SELECT page_name FROM EWRcarta_pages WHERE page_slug = 'index'
    Run Time: 0.000174
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLEEWRcarta_pagesconstpage_slugpage_slug302const1 
  17. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('page_nav', 'bb_code_tag_code', 'bb_code_tag_php', 'bb_code_tag_html', 'bb_code_tag_quote', 'bb_code_tag_attach', 'thread_view', 'EWRporta_Navtabs', 'EWRcarta_Navtabs', 'PAGE_CONTAINER')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000373
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledrangePRIMARYPRIMARY160 10Using where
  18. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('home', 'wiki')
    Params: 1
    Run Time: 0.000122
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledrangePRIMARYPRIMARY231 2Using where
  19. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('message_user_online')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000189
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  20. SELECT title, phrase_text
    FROM xf_phrase_compiled
    WHERE language_id = ?
    	AND title IN ('offline')
    Params: 1
    Run Time: 0.000186
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_phrase_compiledconstPRIMARYPRIMARY231const,const1 
  21. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('dark_postrating_message_user_info')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000164
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 
  22. SELECT title, template_compiled
    FROM xf_template_compiled
    WHERE title IN ('dark_postrating')
    	AND style_id = ?
    	AND language_id = ?
    Params: 2, 1
    Run Time: 0.000120
    Select TypeTableTypePossible KeysKeyKey LenRefRowsExtra
    SIMPLExf_template_compiledconstPRIMARYPRIMARY160const,const,const1 

Included Files (136, XenForo Classes: 61)

  1. index.php
  2. library/XenForo/Autoloader.php
  3. library/XenForo/Application.php
  4. library/Zend/Registry.php
  5. library/Lgpl/utf8.php
  6. library/Zend/Config.php
  7. library/config.php
  8. library/XenForo/FrontController.php
  9. library/XenForo/Dependencies/Public.php
  10. library/XenForo/Dependencies/Abstract.php
  11. library/Zend/Controller/Request/Http.php
  12. library/Zend/Controller/Request/Abstract.php
  13. library/Zend/Uri.php
  14. library/Zend/Controller/Response/Http.php
  15. library/Zend/Controller/Response/Abstract.php
  16. library/XenForo/Model.php
  17. library/XenForo/Model/DataRegistry.php
  18. library/XenForo/CodeEvent.php
  19. library/Zend/Db.php
  20. library/Zend/Db/Adapter/Mysqli.php
  21. library/Zend/Db/Adapter/Abstract.php
  22. library/Zend/Db/Select.php
  23. library/Zend/Db/Expr.php
  24. library/Zend/Db/Profiler.php
  25. library/Zend/Db/Statement/Mysqli.php
  26. library/Zend/Db/Statement.php
  27. library/Zend/Db/Statement/Interface.php
  28. library/Zend/Db/Profiler/Query.php
  29. library/XenForo/Options.php
  30. library/XenForo/Link.php
  31. library/XenForo/Template/Helper/Core.php
  32. library/EWRcarta/Listener/Init.php
  33. library/XenForo/DataWriter/User.php
  34. library/XenForo/DataWriter.php
  35. library/Merc/DonationManager/Listener/InitDependencies.php
  36. library/XenPlus/Listener/InitDependencies.php
  37. library/XenPlus/Listener/Abstract.php
  38. library/EWRporta/Listener/Init.php
  39. library/EWRporta/Helper/Index.php
  40. library/XenForo/Router.php
  41. library/XenForo/Route/ResponseSuffix.php
  42. library/XenForo/Route/Interface.php
  43. library/XenForo/Route/Prefix.php
  44. library/XenForo/Route/Prefix/Threads.php
  45. library/EWRporta/Listener/Route.php
  46. library/EWRporta/Route/Thread.php
  47. library/XenForo/RouteMatch.php
  48. library/XenForo/ControllerPublic/Thread.php
  49. library/XenForo/ControllerPublic/Abstract.php
  50. library/XenForo/Controller.php
  51. library/TMS/Listener.php
  52. library/Dark/PostRating/EventListener.php
  53. library/EWRporta/Listener/Controller.php
  54. library/Merc/DonationManager/Listener/LoadClass.php
  55. library/XenPlus/Listener/LoadClass.php
  56. library/EWRporta/ControllerPublic/Thread.php
  57. library/XenForo/Input.php
  58. library/XenForo/Session.php
  59. library/XenForo/Visitor.php
  60. library/XenForo/Model/User.php
  61. library/EWRcarta/Listener/Model.php
  62. library/vb4ToXf11/Listener/ExtendModel.php
  63. library/Asp/OnlineStatus/Plugin/Plugin.php
  64. library/EWRporta/Listener/Model.php
  65. library/Dark/PostRating/Model/User.php
  66. library/XenForo/Permission.php
  67. library/XenForo/Phrase.php
  68. library/XenForo/Locale.php
  69. library/Merc/DonationManager/Listener/VisitorSetup.php
  70. library/XenPlus/Listener/VisitorSetup.php
  71. library/EWRporta/Model/Perms.php
  72. library/XenForo/ControllerHelper/ForumThreadPost.php
  73. library/XenForo/ControllerHelper/Abstract.php
  74. library/XenForo/Model/Thread.php
  75. library/XenForo/Model/Forum.php
  76. library/XenForo/Helper/String.php
  77. library/XenForo/Model/Post.php
  78. library/Dark/PostRating/Model/Post.php
  79. library/EWRcarta/Model/Post.php
  80. library/Asp/OnlineStatus/Model/AspPost.php
  81. library/EWRporta/Model/Post.php
  82. library/Dark/PostRating/Model.php
  83. library/XenForo/Model/Attachment.php
  84. library/EWRporta/Model/Attachment.php
  85. library/XenForo/Model/Node.php
  86. library/XenForo/Route/Prefix/Categories.php
  87. library/EWRporta/Route/Categories.php
  88. library/XenForo/Route/BuilderInterface.php
  89. library/XenForo/Route/Prefix/Forums.php
  90. library/XenForo/ControllerResponse/View.php
  91. library/XenForo/ControllerResponse/Abstract.php
  92. library/EWRporta/Model/Promotes.php
  93. library/XenForo/Helper/Cookie.php
  94. library/XenForo/ViewRenderer/HtmlPublic.php
  95. library/XenForo/ViewRenderer/Abstract.php
  96. library/XenForo/Template/Public.php
  97. library/XenForo/Template/Abstract.php
  98. library/XenForo/ViewPublic/Thread/View.php
  99. library/XenForo/ViewPublic/Base.php
  100. library/XenForo/View.php
  101. library/EWRporta/Listener/ViewPublic.php
  102. library/EWRporta/ViewPublic/Custom.php
  103. library/XenForo/BbCode/Parser.php
  104. library/XenForo/BbCode/Formatter/Base.php
  105. library/EWRporta/Listener/BbCode.php
  106. library/EWRcarta/Listener/BbCode.php
  107. library/EWRporta/BbCode/Formatter.php
  108. library/EWRcarta/BbCode/Formatter.php
  109. library/XenForo/ViewPublic/Helper/Message.php
  110. library/XenForo/BbCode/TextWrapper.php
  111. library/EWRporta/Model/Blocks.php
  112. library/EWRporta/Model/Layouts.php
  113. library/Merc/DonationManager/Listener/TemplateCreate.php
  114. library/XenPlus/Listener/TemplateCreate.php
  115. library/XenPlus/Helper/Listener.php
  116. library/EWRporta/Route/Index.php
  117. library/XenForo/Route/Prefix/Members.php
  118. library/EWRporta/Listener/NavTabs.php
  119. library/EWRporta/Route/Portal.php
  120. library/EWRporta/Route/Custom.php
  121. library/Merc/DonationManager/Listener/NavigationTabs.php
  122. library/XenPlus/Listener/NavigationTabs.php
  123. library/EWRcarta/Listener/NavTabs.php
  124. library/EWRcarta/Model/Perms.php
  125. library/EWRcarta/Model/Lists.php
  126. library/EWRporta/Listener/Template.php
  127. library/Merc/DonationManager/Listener/TemplateHook.php
  128. library/XenPlus/Listener/TemplateHook.php
  129. library/EWRcarta/Listener/Template.php
  130. library/XenForo/Route/Prefix/Posts.php
  131. library/XenForo/Model/Session.php
  132. library/Dark/PostRating/Model/Session.php
  133. library/XenForo/ViewPublic/Helper/User.php
  134. library/XenForo/Model/UserField.php
  135. library/XenForo/Debug.php
  136. library/XenForo/ViewRenderer/Json.php