SELECT *
FROM jos_session
WHERE session_id = '2dacmvhvjdvufftgtifm5k2gt7'
DELETE
FROM jos_session
WHERE ( TIME < '1733833072' )
SELECT *
FROM jos_session
WHERE session_id = '2dacmvhvjdvufftgtifm5k2gt7'
INSERT INTO `jos_session` ( `session_id`,`time`,`username`,`gid`,`guest`,`client_id` )
VALUES ( '2dacmvhvjdvufftgtifm5k2gt7','1733833972','','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 = 4
LIMIT 0, 1
SELECT a.*
FROM jos_phocagallery AS a
WHERE a.catid = 4
AND published = 1
ORDER BY a.ordering ASC
SELECT *
FROM jos_phocagallery_categories AS c
WHERE c.id = 1
AND c.published = 1
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 = 4
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories
WHERE id = 1
AND published = 1
AND id <> 4
ORDER BY ordering ASC
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories
WHERE id = 1
AND published = 1
AND id <> 4
ORDER BY ordering ASC
LIMIT 0, 1
SELECT *
FROM jos_phocagallery_categories AS c
WHERE c.parent_id = 4
AND c.published = 1
AND c.id <> 4
GROUP BY c.id
ORDER BY c.ordering ASC
SELECT a.*
FROM jos_phocagallery AS a
WHERE a.catid = 4
AND published = 1
ORDER BY a.ordering ASC
LIMIT 0, 100
SELECT *
FROM jos_phocagallery_categories
WHERE id = 1
AND published = 1
AND id <> 4
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 = 4
LIMIT 0, 1
UPDATE jos_phocagallery_categories
SET hits = ( hits + 1 )
WHERE id='4'
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<='85237'
SELECT COUNT(*)
FROM jos_vvisitcounter
WHERE ip='18.97.14.0'
AND ( ((unix_timestamp(NOW()) - tm ) / 60 ) < '15' )
INSERT INTO jos_vvisitcounter (id, tm, ip )
VALUES ('', unix_timestamp(NOW()) , '18.97.14.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)