Select Queries (16)
Array
(
[0] => Array
(
[q] => SELECT * FROM cb_config
[timetook] => 0.0020730495452881
[memBefore] => 0.515380859375
[memAfter] => 0.55764007568359
[memUsed] => 0.042259216308594
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/functions_db.php(10): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/my_queries.class.php(32): db_select()
#5 /var/www/html/clipbucket-v5/upload/includes/common.php(102): myquery->Get_Website_Details()
#6 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#7 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[1] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00047707557678223
[memBefore] => 0.55764007568359
[memAfter] => 0.85884094238281
[memUsed] => 0.30120086669922
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(73): Language->getDefaultLanguage()
#5 /var/www/html/clipbucket-v5/upload/includes/common.php(152): Language->init()
#6 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#7 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[2] => Array
(
[q] => SELECT language_key, translation FROM cb_languages_keys AS LK
LEFT JOIN cb_languages_translations AS LT ON LK.id_language_key = LT.id_language_key AND LT.language_id = 1 ORDER BY CASE WHEN LT.translation IS NULL THEN concat('aaaaaaaaaaaaaaaaaaaa',language_key) ELSE LK.language_key END
[timetook] => 0.0082099437713623
[memBefore] => 0.85884094238281
[memAfter] => 1.6396408081055
[memUsed] => 0.78079986572266
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(154): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(215): Language->getAllTranslations()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(82): Language->loadTranslations()
#6 /var/www/html/clipbucket-v5/upload/includes/common.php(152): Language->init()
#7 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#8 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[3] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session ='l3bnrn9ma5t9t3kgj89af1nqm1'
[timetook] => 0.00078296661376953
[memBefore] => 1.6396408081055
[memAfter] => 1.1064987182617
[memUsed] => -0.53314208984375
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(99): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(5145): Session->get_sessions()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(856): userquery->get_sessions()
#7 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#8 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#9 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[4] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session_string='guest' AND session ='l3bnrn9ma5t9t3kgj89af1nqm1'
[timetook] => 0.00064492225646973
[memBefore] => 1.0950622558594
[memAfter] => 1.1114730834961
[memUsed] => 0.016410827636719
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(88): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/session.class.php(44): Session->get_user_session()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(5152): Session->add_session()
#7 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(856): userquery->get_sessions()
#8 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#9 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#10 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[5] => Array
(
[q] => SELECT version.id, version.version, version.revision FROM cb_version AS version
[timetook] => 0.00038290023803711
[memBefore] => 1.1114730834961
[memAfter] => 1.097900390625
[memUsed] => -0.013572692871094
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/update.class.php(60): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/update.class.php(761): Update->getDBVersion()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(39): Update->IsCurrentDBVersionIsHigherOrEqualTo()
#6 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(894): UserLevel->getPermissions()
#7 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#8 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#9 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[6] => Array
(
[q] => SELECT user_levels_permissions.id_user_levels_permission, user_levels_permissions.id_user_permission_types, user_levels_permissions.permission_name, user_levels_permissions.permission_description, user_levels_permissions_values.user_level_id, user_levels_permissions_values.id_user_levels_permission, user_levels_permissions_values.permission_value
FROM cb_user_levels_permissions AS user_levels_permissions INNER JOIN cb_user_levels_permissions_values AS user_levels_permissions_values ON user_levels_permissions.id_user_levels_permission = user_levels_permissions_values.id_user_levels_permission WHERE user_levels_permissions_values.user_level_id = 4
[timetook] => 0.0011889934539795
[memBefore] => 1.097900390625
[memAfter] => 1.1218185424805
[memUsed] => 0.023918151855469
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(139): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/user_level.class.php(40): UserLevel->getAllPermissions()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(894): UserLevel->getPermissions()
#6 /var/www/html/clipbucket-v5/upload/includes/common.php(165): userquery->init()
#7 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(9): require_once()
#8 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[7] => Array
(
[q] => SELECT * FROM cb_plugins WHERE plugin_active='yes'
[timetook] => 0.00071620941162109
[memBefore] => 1.1218185424805
[memAfter] => 1.2972869873047
[memUsed] => 0.17546844482422
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/plugin.class.php(216): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/plugins.php(3): CBPlugin->getInstalledPlugins()
#5 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(10): require_once()
#6 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[8] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00052213668823242
[memBefore] => 1.2972869873047
[memAfter] => 1.3238296508789
[memUsed] => 0.026542663574219
[use_cache] => yes
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(110): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#4 /var/www/html/clipbucket-v5/upload/includes/functions.php(1169): Language->getDefaultLanguage()
#5 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(24): get_current_language()
#6 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(141): CB_video_js->load_dependancies()
#7 /var/www/html/clipbucket-v5/upload/player/CB_video_js/cb_video_js.php(146): CB_video_js->__construct()
#8 /var/www/html/clipbucket-v5/upload/includes/plugins.php(35): include_once()
#9 /var/www/html/clipbucket-v5/upload/includes/config.inc.php(10): require_once()
#10 /var/www/html/clipbucket-v5/upload/videos.php(4): require()
)
[9] => Array
(
[q] => SELECT id_category_type, name FROM cb_categories_type AS categories_type
[timetook] => 0.00080609321594238
[memBefore] => 1.3238296508789
[memAfter] => 1.3467864990234
[memUsed] => 0.022956848144531
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/category.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/category.class.php(37): Category->getAllCategoryTypes()
#5 /var/www/html/clipbucket-v5/upload/includes/classes/category.class.php(43): Category->__construct()
#6 /var/www/html/clipbucket-v5/upload/videos.php(15): Category->getInstance()
)
[10] => Array
(
[q] => SELECT categories.category_id, categories.parent_id, categories.id_category_type, categories.category_name, categories.category_order, categories.category_desc, categories.date_added, categories.category_thumb, categories.is_default
FROM cb_categories AS categories WHERE parent_id = 10 ORDER BY category_order ASC
[timetook] => 0.00081896781921387
[memBefore] => 1.3467864990234
[memAfter] => 1.3502883911133
[memUsed] => 0.0035018920898438
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/category.class.php(132): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/category.class.php(419): Category->getAll()
#5 /var/www/html/clipbucket-v5/upload/videos.php(15): Category->getChildren()
)
[11] => Array
(
[q] => SELECT video.videoid, video.videokey, video.video_password, video.video_users, video.username, video.userid, video.title, video.file_name, video.file_type, video.file_directory, video.description, video.broadcast, video.location, video.datecreated, video.country, video.allow_embedding, video.rating, video.rated_by, video.voter_ids, video.allow_comments, video.comment_voting, video.comments_count, video.last_commented, video.featured, video.featured_date, video.allow_rating, video.active, video.favourite_count, video.playlist_count, video.views, video.last_viewed, video.date_added, video.flagged, video.duration, video.status, video.default_thumb, video.embed_code, video.downloads, video.uploader_ip, video.video_files, video.file_server_path, video.video_version, video.thumbs_version, video.re_conv_status, video.subscription_email, video.is_castable, video.bits_color, video.age_restriction, video.default_poster, video.default_backdrop, video.fov, video.convert_percent, users.username AS user_username, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_videos_categories AS videos_categories ON video.videoid = videos_categories.id_video LEFT JOIN cb_categories AS categories ON videos_categories.id_category = categories.category_id WHERE ( video.date_added IS NOT NULL ) AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public'))) AND categories.category_id IN (10) GROUP BY video.videoid,video.videokey,video.video_password,video.video_users,video.username,video.userid,video.title,video.file_name,video.file_type,video.file_directory,video.description,video.broadcast,video.location,video.datecreated,video.country,video.allow_embedding,video.rating,video.rated_by,video.voter_ids,video.allow_comments,video.comment_voting,video.comments_count,video.last_commented,video.featured,video.featured_date,video.allow_rating,video.active,video.favourite_count,video.playlist_count,video.views,video.last_viewed,video.date_added,video.flagged,video.duration,video.status,video.default_thumb,video.embed_code,video.downloads,video.uploader_ip,video.video_files,video.file_server_path,video.video_version,video.thumbs_version,video.re_conv_status,video.subscription_email,video.is_castable,video.bits_color,video.age_restriction,video.default_poster,video.default_backdrop,video.fov,video.convert_percent,users.username,video.videoid,video.date_added ORDER BY video.date_added DESC LIMIT 1650,30
[timetook] => 0.34879422187805
[memBefore] => 1.3502883911133
[memAfter] => 1.4106216430664
[memUsed] => 0.060333251953125
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(502): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/videos.php(28): Video->getAll()
)
[12] => Array
(
[q] => SELECT * FROM cb_sorts WHERE type = 'videos'
[timetook] => 0.0007321834564209
[memBefore] => 1.4106216430664
[memAfter] => 1.469367980957
[memUsed] => 0.058746337890625
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/sort_type.class.php(17): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(261): SortType->getSortTypes()
#5 /var/www/html/clipbucket-v5/upload/videos.php(31): Video->getSortList()
)
[13] => Array
(
[q] => SELECT * FROM cb_sorts WHERE is_default = TRUE AND type = 'videos'
[timetook] => 0.00066113471984863
[memBefore] => 1.469367980957
[memAfter] => 1.4707107543945
[memUsed] => 0.0013427734375
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/sort_type.class.php(34): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/videos.php(33): SortType->getDefaultByType()
)
[14] => Array
(
[q] => SELECT COUNT(DISTINCT video.videoid) AS count
FROM cb_video AS video
LEFT JOIN cb_users AS users ON video.userid = users.userid LEFT JOIN cb_videos_categories AS videos_categories ON video.videoid = videos_categories.id_video LEFT JOIN cb_categories AS categories ON videos_categories.id_category = categories.category_id WHERE ( video.date_added IS NOT NULL ) AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public'))) AND categories.category_id IN (10)
[timetook] => 0.020102024078369
[memBefore] => 1.4707107543945
[memAfter] => 1.4749069213867
[memUsed] => 0.0041961669921875
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/video.class.php(502): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/videos.php(44): Video->getAll()
)
[15] => Array
(
[q] => SELECT userid FROM cb_users WHERE username='anonymous' AND email='anonymous@website' LIMIT 1
[timetook] => 0.00059413909912109
[memBefore] => 1.4749069213867
[memAfter] => 1.4742660522461
[memUsed] => -0.000640869140625
[use_cache] => no
[backtrace] => #1 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(236): devWitch()
#2 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /var/www/html/clipbucket-v5/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /var/www/html/clipbucket-v5/upload/includes/classes/user.class.php(4223): Clipbucket_db->select()
#5 /var/www/html/clipbucket-v5/upload/videos.php(46): userquery->get_anonymous_user()
)
)