// // //
//

ФОТО (7)

Спорт
Общага
  • Общага (46)
  • Життя гуртожитку в усіх його проявах
Розважальні заходи
Природа
Спільний альбом
  • Спільний альбом (4)
  • Будь-який зареєстрований користувач може додати свою фотографію до цього альбому.
Флагман освітиКоментарі0Дата публікації30 листопада 2015 Флагман освітиКоментарі0Дата публікації30 листопада 2015  
Час генерації сторінки: 0.9911 сек.
Запити до бази: 74
SET NAMES cp1251

SELECT * FROM cms_menu ORDER BY id ASC

SELECT id, title, link, config, internal, published, version, system FROM cms_components

SELECT p.id, p.plugin, p.config, e.event FROM cms_plugins p, cms_event_hooks e WHERE p.published = 1 AND e.plugin_id = p.id

SELECT id FROM cms_user_groups WHERE alias = 'guest'

DELETE FROM cms_online WHERE lastdate <= DATE_SUB(NOW(), INTERVAL 3 MINUTE)

SELECT id as getfield FROM cms_online WHERE sess_id = '1kjihb8staa86l3u1eplcmhl20' AND ip = '54.145.124.143' LIMIT 1

INSERT INTO cms_online (ip, sess_id, lastdate, user_id, agent, viewurl) VALUES ('54.145.124.143', '1kjihb8staa86l3u1eplcmhl20', NOW(), '0', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '/photos')

SELECT id FROM cms_stats WHERE (ip = '54.145.124.143' AND page = '/photos')

INSERT INTO cms_stats (ip, logdate, page, agent, refer) VALUES ('54.145.124.143', NOW(), '/photos', 'CCBot/2.0 (http://commoncrawl.org/faq/)', '')

SELECT NSLeft, NSRight FROM cms_menu WHERE id = '20'

SELECT id, title, link, linktype
                           FROM cms_menu
                           WHERE NSLeft <= 36 AND NSRight >= 41 AND parent_id > 0
                           ORDER BY NSLeft

SELECT id, title FROM cms_photo_albums WHERE parent_id=0 AND NSDiffer='' ORDER BY id ASC LIMIT 1

SELECT * FROM cms_photo_albums WHERE id = '100' ORDER BY id ASC LIMIT 1

SELECT NSDiffer as getfield FROM cms_photo_albums WHERE id='100' LIMIT 1

SELECT a.*, IFNULL(COUNT(f.id), 0) as content_count
                FROM cms_photo_albums a
                LEFT JOIN cms_photo_files f ON f.album_id = a.id AND f.published = 1
                WHERE (a.parent_id=100) AND a.published = 1 AND a.NSDiffer = ''
                GROUP BY a.id
                ORDER BY pubdate desc

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 254 AND NSRight < 255

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1173 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1173
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 250 AND NSRight < 251

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1155 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1155
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 240 AND NSRight < 247

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1136 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1136
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 238 AND NSRight < 239

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1134 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1134
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 228 AND NSRight < 237

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1123 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1123
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 226 AND NSRight < 227

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1121 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1121
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 192 AND NSRight < 223

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1073 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1073
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 188 AND NSRight < 191

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1067 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1067
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 184 AND NSRight < 187

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1045 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1045
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 170 AND NSRight < 183

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1044 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1044
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 64 AND NSRight < 157

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1042 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1042
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 56 AND NSRight < 63

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1041 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1041
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 6 AND NSRight < 55

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1040 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1040
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 4 AND NSRight < 5

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1034 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1034
				ORDER BY RAND()
				LIMIT 1

SELECT 1 FROM cms_photo_albums WHERE NSLeft > 2 AND NSRight < 3

SELECT COUNT(id) as getfield FROM cms_photo_files WHERE DATE_FORMAT(pubdate, '%d-%m-%Y') = '20-11-2017' AND album_id=1 LIMIT 1

SELECT f.file
				FROM cms_photo_files f, cms_photo_albums a
				WHERE f.published = 1 AND f.album_id = a.id AND f.album_id = 1
				ORDER BY RAND()
				LIMIT 1

SELECT f.*,
                            IFNULL(r.total_rating, 0) as rating
					FROM cms_photo_files f
					LEFT JOIN cms_ratings_total r ON r.item_id=f.id AND r.target='photo'
					WHERE f.album_id = 100  AND f.published = 1
					 ORDER BY title asc 
LIMIT 0, 15

SELECT 1 FROM cms_photo_files WHERE album_id = 100

SELECT id FROM cms_comments WHERE target = 'photo' AND target_id = '3493' AND published = 1

SELECT id FROM cms_comments WHERE target = 'photo' AND target_id = '3494' AND published = 1

SELECT m.access_list
            FROM cms_modules m, cms_modules_bind mb
            WHERE mb.position = 'top' AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '20' OR mb.menu_id = 0)

SELECT m.access_list
            FROM cms_modules m, cms_modules_bind mb
            WHERE mb.position = 'sidebar' AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '20' OR mb.menu_id = 0)

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'topmenu') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '20' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC

SELECT NSLeft, NSRight, NSLevel FROM cms_menu WHERE id = '20' ORDER BY id ASC LIMIT 1

SELECT id as getfield FROM cms_menu WHERE parent_id=0 LIMIT 1

SELECT * FROM cms_menu WHERE id = 1 AND NSDiffer = ''

SELECT * FROM cms_menu WHERE NSLeft > 1 AND NSRight < 64 AND NSDiffer = '' ORDER BY NSLeft,ordering

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'maintop') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '20' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC

SELECT *, m.id as mid, m.template as tpl
            FROM cms_modules m, cms_modules_bind mb
            WHERE (mb.position = 'mainbottom') AND
                  m.published = 1 AND
                  m.id = mb.module_id AND
                  (mb.menu_id = '20' OR mb.menu_id = 0)
                  
            ORDER BY m.ordering ASC