SELECT *
FROM jos_session
WHERE session_id = '21v2060qbu3mnrfl8clpjan2r1'
DELETE
FROM jos_session
WHERE ( TIME < '1734779916' )
SELECT *
FROM jos_session
WHERE session_id = '21v2060qbu3mnrfl8clpjan2r1'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( '21v2060qbu3mnrfl8clpjan2r1','1734780816','','0','1','0' )
SELECT *
FROM jos_components
WHERE parent = 0
SELECT folder AS TYPE, element AS name, params
FROM jos_plugins
WHERE published >= 1
AND access <= 0
ORDER BY ordering
SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 10)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT c.*, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
FROM jos_phocagallery_categories AS c
WHERE c.id = 1
LIMIT 0, 1
SELECT a.*
FROM jos_phocagallery AS a
WHERE a.catid = 1
AND published = 1
ORDER BY a.ordering ASC
SELECT a.*
FROM jos_phocagallery AS a
WHERE a.catid = 1
AND published = 1
ORDER BY a.ordering ASC
SELECT c.params,c.access, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
FROM jos_phocagallery_categories AS c
WHERE c.id = 1
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories
WHERE id = 0
AND published = 1
AND id <> 1
ORDER BY ordering ASC
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories
WHERE id = 0
AND published = 1
AND id <> 1
ORDER BY ordering ASC
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories AS c
WHERE c.parent_id = 1
AND c.published = 1
AND c.id <> 1
GROUP BY c.id
ORDER BY c.ordering ASC
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 2
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 2
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 2
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 3
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 3
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 3
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 4
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 4
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 4
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 5
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 5
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 5
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 6
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 6
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 6
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 7
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 7
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 7
SELECT id, filename
FROM jos_phocagallery
WHERE catid = 8
AND published = 1
ORDER BY RAND()
LIMIT 0, 1
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 8
SELECT COUNT(id)
FROM jos_phocagallery
WHERE published = 1
AND catid = 8
SELECT a.*
FROM jos_phocagallery AS a
WHERE a.catid = 1
AND published = 1
ORDER BY a.ordering ASC
LIMIT 0, 100
SELECT *
FROM jos_phocagallery_categories
WHERE id = 0
AND published = 1
AND id <> 1
ORDER BY ordering ASC
LIMIT 0, 1
SELECT c.params,c.title, CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(':', c.id, c.alias) ELSE c.id END AS slug
FROM jos_phocagallery_categories AS c
WHERE c.id = 1
LIMIT 0, 1
UPDATE jos_phocagallery_categories
SET hits = ( hits + 1 )
WHERE id='1'
SELECT id, title, module, POSITION, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 10 OR mm.menuid = 0 )
ORDER BY POSITION, ordering
CREATE TABLE IF NOT EXISTS jos_vvisitcounter(id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, tm INT NOT NULL, ip VARCHAR(16) NOT NULL DEFAULT '0.0.0.0', userAgent VARCHAR(512) DEFAULT NULL, PRIMARY KEY (id), KEY userAgent (userAgent(512)), KEY tmIP (tm,ip)) ENGINE=MyISAM AUTO_INCREMENT=1
SELECT COUNT( * ) AS records, MAX( id ) AS MAX
FROM jos_vvisitcounter
DELETE
FROM jos_vvisitcounter
WHERE id<='87484'
SELECT COUNT(*)
FROM jos_vvisitcounter
WHERE ip='3.143.247.0'
AND ( ((unix_timestamp(NOW()) - tm ) / 60 ) < '15' )
INSERT INTO jos_vvisitcounter (id, tm, ip )
VALUES ('', unix_timestamp(NOW()) , '3.143.247.0' )
SELECT COUNT(*)
FROM jos_vvisitcounter
WHERE (YEAR(NOW())= YEAR(FROM_UNIXTIME(tm)))
AND (DAYOFYEAR(NOW())=DAYOFYEAR(FROM_UNIXTIME(tm)))
SELECT COUNT(*)
FROM jos_vvisitcounter
WHERE (YEAR(NOW())= YEAR(FROM_UNIXTIME(tm)))
AND (DAYOFYEAR(FROM_UNIXTIME(tm))=DAYOFYEAR(now())-1)