Select Queries (23)
Array
(
[0] => Array
(
[q] => SELECT * FROM cb_config
[timetook] => 0.00040102005004883
[memBefore] => 0.42437744140625
[memAfter] => 0.45085906982422
[memUsed] => 0.026481628417969
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/functions_db.php(10): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/my_queries.class.php(32): db_select()
#5 /srv/http/clipbucket/upload/includes/common.php(102): myquery->Get_Website_Details()
#6 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#7 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[1] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00018906593322754
[memBefore] => 0.45085906982422
[memAfter] => 0.62730407714844
[memUsed] => 0.17644500732422
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/lang.class.php(73): Language->getDefaultLanguage()
#6 /srv/http/clipbucket/upload/includes/common.php(152): Language->init()
#7 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#8 /srv/http/clipbucket/upload/view_item.php(5): 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.012980937957764
[memBefore] => 0.62730407714844
[memAfter] => 0.71932220458984
[memUsed] => 0.092018127441406
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(154): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/lang.class.php(215): Language->getAllTranslations()
#6 /srv/http/clipbucket/upload/includes/classes/lang.class.php(82): Language->loadTranslations()
#7 /srv/http/clipbucket/upload/includes/common.php(152): Language->init()
#8 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#9 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[3] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session ='267kl4a1fa84o7vhs482qj401o'
[timetook] => 0.00035595893859863
[memBefore] => 0.71932220458984
[memAfter] => 0.86328125
[memUsed] => 0.14395904541016
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/session.class.php(99): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/user.class.php(5200): Session->get_sessions()
#6 /srv/http/clipbucket/upload/includes/classes/user.class.php(931): userquery->get_sessions()
#7 /srv/http/clipbucket/upload/includes/common.php(165): userquery->init()
#8 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#9 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[4] => Array
(
[q] => SELECT * FROM cb_sessions WHERE session_string='guest' AND session ='267kl4a1fa84o7vhs482qj401o'
[timetook] => 0.00020503997802734
[memBefore] => 0.85059356689453
[memAfter] => 0.86697387695312
[memUsed] => 0.016380310058594
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/session.class.php(88): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/session.class.php(44): Session->get_user_session()
#6 /srv/http/clipbucket/upload/includes/classes/user.class.php(5207): Session->add_session()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(931): userquery->get_sessions()
#8 /srv/http/clipbucket/upload/includes/common.php(165): userquery->init()
#9 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#10 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[5] => Array
(
[q] => SELECT version.id, version.version, version.revision FROM cb_version AS version
[timetook] => 8.702278137207E-5
[memBefore] => 0.86697387695312
[memAfter] => 0.8682861328125
[memUsed] => 0.001312255859375
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/update.class.php(60): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/classes/update.class.php(770): Update->getDBVersion()
#6 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(39): Update->IsCurrentDBVersionIsHigherOrEqualTo()
#7 /srv/http/clipbucket/upload/includes/classes/user.class.php(969): UserLevel->getPermissions()
#8 /srv/http/clipbucket/upload/includes/common.php(165): userquery->init()
#9 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#10 /srv/http/clipbucket/upload/view_item.php(5): 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.00021600723266602
[memBefore] => 0.8682861328125
[memAfter] => 0.87289428710938
[memUsed] => 0.004608154296875
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(139): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/user_level.class.php(40): UserLevel->getAllPermissions()
#5 /srv/http/clipbucket/upload/includes/classes/user.class.php(969): UserLevel->getPermissions()
#6 /srv/http/clipbucket/upload/includes/common.php(165): userquery->init()
#7 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#8 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[7] => Array
(
[q] => SELECT tools.id_tool, language_key_label, language_key_description, elements_total, elements_done, COALESCE(NULLIF(language_key_title, ''), 'ready') as language_key_title, function_name, code,
CASE WHEN elements_total IS NULL OR elements_total = 0 THEN 0 ELSE elements_done * 100 / elements_total END AS pourcentage_progress, tools_histo.id_histo
,tools.is_automatable, tools.is_disabled, tools.frequency
FROM cb_tools AS tools
LEFT JOIN (
SELECT id_tool, MAX(date_start) AS max_date
FROM cb_tools_histo
GROUP BY id_tool
) tools_histo_max_date ON tools.id_tool = tools_histo_max_date.id_tool
LEFT JOIN cb_tools_histo AS tools_histo ON tools.id_tool = tools_histo.id_tool AND tools_histo.date_start = tools_histo_max_date.max_date
left JOIN cb_tools_histo_status AS tools_histo_status ON tools_histo_status.id_tools_histo_status = tools_histo.id_tools_histo_status
WHERE (tools_histo.id_tool IS NOT NULL OR tools_histo_max_date.id_tool IS NULL)
AND tools.code = 'automate'
ORDER BY tools.id_tool;
[timetook] => 0.010220050811768
[memBefore] => 0.87289428710938
[memAfter] => 0.93686676025391
[memUsed] => 0.063972473144531
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(107): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(258): AdminTool->getTools()
#5 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(65): AdminTool->getToolByCode()
#6 /srv/http/clipbucket/upload/includes/common.php(405): AdminTool->initByCode()
#7 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#8 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[8] => Array
(
[q] => SELECT tools_histo.date_start
FROM cb_tools_histo AS tools_histo
WHERE tools_histo.id_tool = 17
ORDER BY tools_histo.date_start DESC LIMIT 1
[timetook] => 0.013936042785645
[memBefore] => 0.93686676025391
[memAfter] => 0.93892669677734
[memUsed] => 0.0020599365234375
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/admin_tool.class.php(1113): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/common.php(405): AdminTool->getLastStart()
#5 /srv/http/clipbucket/upload/includes/config.inc.php(9): require_once()
#6 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[9] => Array
(
[q] => SELECT * FROM cb_plugins WHERE plugin_active='yes'
[timetook] => 0.00030183792114258
[memBefore] => 0.93892669677734
[memAfter] => 0.93888854980469
[memUsed] => -3.814697265625E-5
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/plugin.class.php(216): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/plugins.php(3): CBPlugin->getInstalledPlugins()
#6 /srv/http/clipbucket/upload/includes/config.inc.php(21): require_once()
#7 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[10] => Array
(
[q] => SELECT * FROM cb_languages WHERE language_default='yes'
[timetook] => 0.00020599365234375
[memBefore] => 0.93888854980469
[memAfter] => 0.94078826904297
[memUsed] => 0.0018997192382812
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/lang.class.php(317): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/includes/functions.php(1170): Language->getDefaultLanguage()
#6 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(24): get_current_language()
#7 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(126): CB_video_js->load_dependancies()
#8 /srv/http/clipbucket/upload/player/CB_video_js/cb_video_js.php(131): CB_video_js->__construct()
#9 /srv/http/clipbucket/upload/includes/plugins.php(35): include_once()
#10 /srv/http/clipbucket/upload/includes/config.inc.php(21): require_once()
#11 /srv/http/clipbucket/upload/view_item.php(5): require()
)
[11] => Array
(
[q] => SELECT collections.collection_id
, collections.collection_name
, collections.collection_description
, collections.userid
, collections.date_added
, collections.featured
, collections.broadcast
, collections.allow_comments
, collections.allow_rating
, collections.total_comments
, collections.last_commented
, collections.rating
, collections.rated_by
, collections.voters
, collections.active
, collections.public_upload
, collections.type
, collections.collection_id_parent
, collections.thumb_objectid
, collections.sort_type
, users.username AS user_username, users.email, users.dob
, collection_parent.collection_name AS collection_name_parent
, COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) AS total_objects
, sorts.label as sort_type_label
, sorts.id as sort_type
, GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS tags
, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category
, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ',') AS category_names
, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list
FROM cb_collections AS collections
LEFT JOIN cb_users AS users ON collections.userid = users.userid
LEFT JOIN cb_collection_items AS collection_items ON collections.collection_id = collection_items.collection_id
LEFT JOIN cb_video AS video ON collections.type = 'videos' AND collection_items.object_id = video.videoid AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public' OR (video.broadcast = 'unlisted' AND video.video_password = ''))))
LEFT JOIN cb_photos AS photos ON collections.type = 'photos' AND collection_items.object_id = photos.photo_id AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) LEFT JOIN cb_collections collection_parent ON collections.collection_id_parent = collection_parent.collection_id
LEFT JOIN cb_sorts AS sorts ON sorts.id = collections.sort_type
LEFT JOIN cb_collections AS collections_enfant ON collections.collection_id = collections_enfant.collection_id_parent
LEFT JOIN cb_collection_tags AS collection_tags ON collections.collection_id = collection_tags.id_collection
LEFT JOIN cb_tags AS tags ON collection_tags.id_tag = tags.id_tag
LEFT JOIN cb_collections_categories AS collections_categories ON collections.collection_id = collections_categories.id_collection
LEFT JOIN cb_categories AS categories ON collections_categories.id_category = categories.category_id WHERE collections.collection_id = 2
AND collections.type = 'photos'
AND (collections.active = 'yes' AND collections.broadcast = 'public')
GROUP BY collections.collection_id
HAVING COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) > 0
[timetook] => 0.001121997833252
[memBefore] => 0.94078826904297
[memAfter] => 0.96152496337891
[memUsed] => 0.020736694335938
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/collections.class.php(453): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/collections.class.php(515): Collection->getAll()
#5 /srv/http/clipbucket/upload/view_item.php(22): Collection->getOne()
)
[12] => Array
(
[q] => SELECT photos.photo_id, photos.photo_key, photos.photo_title, photos.photo_description, photos.userid, photos.date_added, photos.last_viewed, photos.views, photos.allow_comments, photos.allow_embedding, photos.allow_tagging, photos.featured, photos.reported, photos.allow_rating, photos.broadcast, photos.active, photos.total_comments, photos.last_commented, photos.total_favorites, photos.rating, photos.rated_by, photos.voters, photos.filename, photos.file_directory, photos.ext, photos.downloaded, photos.server_url, photos.owner_ip, photos.photo_details, photos.age_restriction, users.username, collection_items.collection_id , GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS photo_tags, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category , GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list, user_profile.disabled_channel
FROM cb_photos AS photos
LEFT JOIN cb_users AS users ON photos.userid = users.userid LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag LEFT JOIN cb_photos_categories AS photos_categories ON photos.photo_id = photos_categories.id_photo LEFT JOIN cb_categories AS categories ON photos_categories.id_category = categories.category_id LEFT JOIN cb_collection_items AS collection_items ON photos.photo_id = collection_items.object_id AND collection_items.type = 'photos' LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE photos.photo_key = 'SX6UGYBRWAS1' AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) GROUP BY collection_items.collection_id ,photos.photo_id,photos.photo_id,collection_items.collection_id,user_profile.disabled_channel
[timetook] => 0.0014560222625732
[memBefore] => 0.96152496337891
[memAfter] => 0.96644592285156
[memUsed] => 0.0049209594726562
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/photos.class.php(391): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/photos.class.php(103): Photo->getAll()
#5 /srv/http/clipbucket/upload/view_item.php(24): Photo->getOne()
)
[13] => Array
(
[q] => SELECT collections.collection_id
, collections.collection_name
, collections.collection_description
, collections.userid
, collections.date_added
, collections.featured
, collections.broadcast
, collections.allow_comments
, collections.allow_rating
, collections.total_comments
, collections.last_commented
, collections.rating
, collections.rated_by
, collections.voters
, collections.active
, collections.public_upload
, collections.type
, collections.collection_id_parent
, collections.thumb_objectid
, collections.sort_type
, users.username AS user_username, users.email, users.dob
, collection_parent.collection_name AS collection_name_parent
, COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) AS total_objects
, sorts.label as sort_type_label
, sorts.id as sort_type
, GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS tags
, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category
, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ',') AS category_names
, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list
FROM cb_collections AS collections
LEFT JOIN cb_users AS users ON collections.userid = users.userid
LEFT JOIN cb_collection_items AS collection_items ON collections.collection_id = collection_items.collection_id
LEFT JOIN cb_video AS video ON collections.type = 'videos' AND collection_items.object_id = video.videoid AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public' OR (video.broadcast = 'unlisted' AND video.video_password = ''))))
LEFT JOIN cb_photos AS photos ON collections.type = 'photos' AND collection_items.object_id = photos.photo_id AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) LEFT JOIN cb_collections collection_parent ON collections.collection_id_parent = collection_parent.collection_id
LEFT JOIN cb_sorts AS sorts ON sorts.id = collections.sort_type
LEFT JOIN cb_collections AS collections_enfant ON collections.collection_id = collections_enfant.collection_id_parent
LEFT JOIN cb_collection_tags AS collection_tags ON collections.collection_id = collection_tags.id_collection
LEFT JOIN cb_tags AS tags ON collection_tags.id_tag = tags.id_tag
LEFT JOIN cb_collections_categories AS collections_categories ON collections.collection_id = collections_categories.id_collection
LEFT JOIN cb_categories AS categories ON collections_categories.id_category = categories.category_id WHERE collections.collection_id = 2
AND (collections.active = 'yes' AND collections.broadcast = 'public')
GROUP BY collections.collection_id
HAVING COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) > 0
[timetook] => 0.0012240409851074
[memBefore] => 0.96644592285156
[memAfter] => 0.97543334960938
[memUsed] => 0.0089874267578125
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/collections.class.php(453): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/collections.class.php(1134): Collection->getAll()
#5 /srv/http/clipbucket/upload/view_item.php(35): Collections->is_viewable()
)
[14] => Array
(
[q] => SELECT photos.photo_id, photos.photo_key, photos.photo_title, photos.photo_description, photos.userid, photos.date_added, photos.last_viewed, photos.views, photos.allow_comments, photos.allow_embedding, photos.allow_tagging, photos.featured, photos.reported, photos.allow_rating, photos.broadcast, photos.active, photos.total_comments, photos.last_commented, photos.total_favorites, photos.rating, photos.rated_by, photos.voters, photos.filename, photos.file_directory, photos.ext, photos.downloaded, photos.server_url, photos.owner_ip, photos.photo_details, photos.age_restriction, users.username, collection_items.collection_id , GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS photo_tags, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category , GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list, user_profile.disabled_channel
FROM cb_photos AS photos
LEFT JOIN cb_users AS users ON photos.userid = users.userid LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag LEFT JOIN cb_photos_categories AS photos_categories ON photos.photo_id = photos_categories.id_photo LEFT JOIN cb_categories AS categories ON photos_categories.id_category = categories.category_id LEFT JOIN cb_collection_items AS collection_items ON photos.photo_id = collection_items.object_id AND collection_items.type = 'photos' LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE photos.photo_id = '18' AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) GROUP BY collection_items.collection_id ,photos.photo_id,photos.photo_id,collection_items.collection_id,user_profile.disabled_channel
[timetook] => 0.00074219703674316
[memBefore] => 0.97543334960938
[memAfter] => 0.97871398925781
[memUsed] => 0.0032806396484375
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/photos.class.php(391): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/photos.class.php(103): Photo->getAll()
#5 /srv/http/clipbucket/upload/includes/classes/photos.class.php(475): Photo->getOne()
#6 /srv/http/clipbucket/upload/view_item.php(39): Photo->isCurrentUserRestricted()
)
[15] => Array
(
[q] => SELECT ci_id FROM cb_collection_items WHERE object_id = 18 AND collection_id = 2
[timetook] => 0.00011801719665527
[memBefore] => 0.97871398925781
[memAfter] => 0.97488403320312
[memUsed] => -0.0038299560546875
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/collections.class.php(1298): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/view_item.php(40): Collections->get_collection_item_fields()
)
[16] => Array
(
[q] => SELECT users.*, users_categories.id_category FROM cb_users AS users LEFT JOIN cb_users_categories AS users_categories ON users.userid = users_categories.id_user WHERE users.userid = '3'
[timetook] => 0.0003359317779541
[memBefore] => 0.96277618408203
[memAfter] => 0.97901153564453
[memUsed] => 0.0162353515625
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/functions_db.php(106): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/user.class.php(1401): select()
#5 /srv/http/clipbucket/upload/view_item.php(79): userquery->get_user_details()
)
[17] => Array
(
[q] => SELECT collections.collection_id
, collections.collection_name
, collections.collection_description
, collections.userid
, collections.date_added
, collections.featured
, collections.broadcast
, collections.allow_comments
, collections.allow_rating
, collections.total_comments
, collections.last_commented
, collections.rating
, collections.rated_by
, collections.voters
, collections.active
, collections.public_upload
, collections.type
, collections.collection_id_parent
, collections.thumb_objectid
, collections.sort_type
, users.username AS user_username, users.email, users.dob
, collection_parent.collection_name AS collection_name_parent
, COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) AS total_objects
, sorts.label as sort_type_label
, sorts.id as sort_type
, GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS tags
, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category
, GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ',') AS category_names
FROM cb_collections AS collections
LEFT JOIN cb_users AS users ON collections.userid = users.userid
LEFT JOIN cb_collection_items AS collection_items ON collections.collection_id = collection_items.collection_id
LEFT JOIN cb_video AS video ON collections.type = 'videos' AND collection_items.object_id = video.videoid AND ( (video.active = 'yes' AND video.status = 'Successful' AND video.age_restriction IS NULL AND (video.broadcast = 'public' OR (video.broadcast = 'unlisted' AND video.video_password = ''))))
LEFT JOIN cb_photos AS photos ON collections.type = 'photos' AND collection_items.object_id = photos.photo_id AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) LEFT JOIN cb_collections collection_parent ON collections.collection_id_parent = collection_parent.collection_id
LEFT JOIN cb_sorts AS sorts ON sorts.id = collections.sort_type
LEFT JOIN cb_collections AS collections_enfant ON collections.collection_id = collections_enfant.collection_id_parent
LEFT JOIN cb_collection_tags AS collection_tags ON collections.collection_id = collection_tags.id_collection
LEFT JOIN cb_tags AS tags ON collection_tags.id_tag = tags.id_tag
LEFT JOIN cb_collections_categories AS collections_categories ON collections.collection_id = collections_categories.id_collection
LEFT JOIN cb_categories AS categories ON collections_categories.id_category = categories.category_id WHERE collections.type = 'photos'
AND collections.collection_id_parent IS NULL
AND collections.collection_id_parent IS NULL
AND collections.collection_id_parent IS NULL
AND (collections.active = 'yes' AND collections.broadcast = 'public')
GROUP BY collections.collection_id
HAVING COUNT( DISTINCT(CASE WHEN collections.type = 'videos' THEN video.videoid ELSE photos.photo_id END)) + COUNT(DISTINCT(collections_enfant.collection_id)) > 0 LIMIT 5
[timetook] => 0.0020089149475098
[memBefore] => 0.97901153564453
[memAfter] => 0.99308013916016
[memUsed] => 0.014068603515625
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/collections.class.php(453): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/view_item.php(97): Collection->getAll()
)
[18] => Array
(
[q] => SELECT photos.photo_id, photos.photo_key, photos.photo_title, photos.photo_description, photos.userid, photos.date_added, photos.last_viewed, photos.views, photos.allow_comments, photos.allow_embedding, photos.allow_tagging, photos.featured, photos.reported, photos.allow_rating, photos.broadcast, photos.active, photos.total_comments, photos.last_commented, photos.total_favorites, photos.rating, photos.rated_by, photos.voters, photos.filename, photos.file_directory, photos.ext, photos.downloaded, photos.server_url, photos.owner_ip, photos.photo_details, photos.age_restriction, users.username, collection_items.collection_id , GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS photo_tags, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category , GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, CONCAT('[', GROUP_CONCAT(DISTINCT JSON_OBJECT('id', categories.category_id, 'name', categories.category_name)),']') AS category_list, user_profile.disabled_channel
FROM cb_photos AS photos
LEFT JOIN cb_users AS users ON photos.userid = users.userid LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag LEFT JOIN cb_photos_categories AS photos_categories ON photos.photo_id = photos_categories.id_photo LEFT JOIN cb_categories AS categories ON photos_categories.id_category = categories.category_id LEFT JOIN cb_collection_items AS collection_items ON photos.photo_id = collection_items.object_id AND collection_items.type = 'photos' LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE photos.photo_id = '18' AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public' OR (photos.broadcast = 'unlisted')))) AND collection_items.collection_id IS NOT NULL ) GROUP BY collection_items.collection_id ,photos.photo_id,photos.photo_id,collection_items.collection_id,user_profile.disabled_channel
[timetook] => 0.00066709518432617
[memBefore] => 0.99308013916016
[memAfter] => 1.0001449584961
[memUsed] => 0.0070648193359375
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/photos.class.php(391): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/photos.class.php(103): Photo->getAll()
#5 /srv/http/clipbucket/upload/includes/classes/photos.class.php(552): Photo->getOne()
#6 /srv/http/clipbucket/upload/view_item.php(101): Photo->getPhotoRelated()
)
[19] => Array
(
[q] => SELECT GROUP_CONCAT(DISTINCT (photo_id)) as ids FROM (
SELECT photo_id, 2 as score, photos.date_added FROM cb_photos AS photos
LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo
LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag
WHERE photo_id != 18
AND (MATCH(photos.photo_title) AGAINST ('' IN NATURAL LANGUAGE MODE) OR LOWER(photos.photo_title) LIKE '%%')
UNION
SELECT photo_id, 1 as score, photos.date_added FROM cb_photos AS photos
LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo
LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag
WHERE photo_id != 18
AND (MATCH(photos.photo_title) AGAINST ('' IN NATURAL LANGUAGE MODE) OR LOWER(photos.photo_title) LIKE '%%' OR MATCH(tags.name) AGAINST ('' IN NATURAL LANGUAGE MODE) OR LOWER(tags.name) LIKE '%%')
) AS R
ORDER BY score DESC,date_added DESC
[timetook] => 0.00089216232299805
[memBefore] => 1.0001449584961
[memAfter] => 1.0020446777344
[memUsed] => 0.0018997192382812
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/photos.class.php(579): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/view_item.php(101): Photo->getPhotoRelated()
)
[20] => Array
(
[q] => SELECT photos.photo_id, photos.photo_key, photos.photo_title, photos.photo_description, photos.userid, photos.date_added, photos.last_viewed, photos.views, photos.allow_comments, photos.allow_embedding, photos.allow_tagging, photos.featured, photos.reported, photos.allow_rating, photos.broadcast, photos.active, photos.total_comments, photos.last_commented, photos.total_favorites, photos.rating, photos.rated_by, photos.voters, photos.filename, photos.file_directory, photos.ext, photos.downloaded, photos.server_url, photos.owner_ip, photos.photo_details, photos.age_restriction, users.username, collection_items.collection_id , GROUP_CONCAT( DISTINCT(tags.name) SEPARATOR ',') AS photo_tags, GROUP_CONCAT( DISTINCT(categories.category_id) SEPARATOR ',') AS category , GROUP_CONCAT( DISTINCT(categories.category_name) SEPARATOR ', ') AS category_names, user_profile.disabled_channel
FROM cb_photos AS photos
LEFT JOIN cb_users AS users ON photos.userid = users.userid LEFT JOIN cb_photo_tags AS photo_tags ON photos.photo_id = photo_tags.id_photo LEFT JOIN cb_tags AS tags ON photo_tags.id_tag = tags.id_tag LEFT JOIN cb_photos_categories AS photos_categories ON photos.photo_id = photos_categories.id_photo LEFT JOIN cb_categories AS categories ON photos_categories.id_category = categories.category_id LEFT JOIN cb_collection_items AS collection_items ON photos.photo_id = collection_items.object_id AND collection_items.type = 'photos' LEFT JOIN cb_user_profile AS user_profile ON user_profile.userid = users.userid WHERE photos.photo_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34) AND (((photos.active = 'yes' AND photos.age_restriction IS NULL AND (photos.broadcast = 'public'))) AND collection_items.collection_id IS NOT NULL ) GROUP BY collection_items.collection_id ,photos.photo_id,photos.photo_id,collection_items.collection_id,user_profile.disabled_channel LIMIT 8
[timetook] => 0.0015101432800293
[memBefore] => 1.0020446777344
[memAfter] => 1.0259170532227
[memUsed] => 0.023872375488281
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/photos.class.php(391): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/photos.class.php(580): Photo->getAll()
#5 /srv/http/clipbucket/upload/view_item.php(101): Photo->getPhotoRelated()
)
[21] => Array
(
[q] => SELECT * FROM cb_sorts WHERE is_default = TRUE AND type = 'photos'
[timetook] => 0.00017404556274414
[memBefore] => 1.0259170532227
[memAfter] => 1.0346374511719
[memUsed] => 0.0087203979492188
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/sort_type.class.php(37): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/functions.php(2051): SortType->getDefaultByType()
#5 /srv/http/clipbucket/upload/includes/functions.php(1238): sort_link()
#6 /srv/http/clipbucket/upload/view_item.php(143): cblink()
)
[22] => Array
(
[q] => SELECT userid FROM cb_users WHERE username='anonymous' AND email='anonymous@website' LIMIT 1
[timetook] => 0.00014901161193848
[memBefore] => 1.0346374511719
[memAfter] => 1.0361175537109
[memUsed] => 0.0014801025390625
[use_cache] => no
[backtrace] => #1 /srv/http/clipbucket/upload/includes/classes/db.class.php(236): devWitch()
#2 /srv/http/clipbucket/upload/includes/classes/db.class.php(120): Clipbucket_db->execute()
#3 /srv/http/clipbucket/upload/includes/classes/db.class.php(169): Clipbucket_db->_select()
#4 /srv/http/clipbucket/upload/includes/classes/user.class.php(4278): Clipbucket_db->select()
#5 /srv/http/clipbucket/upload/view_item.php(153): userquery->get_anonymous_user()
)
)
Comment (0)